[GH-ISSUE #8157] [Feature]: Branch graph window from the Chat Branches panel #7585

Closed
opened 2026-10-24 04:04:32 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @ylli-selmani on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8157

Originally assigned to: @ylli-selmani on GitHub.

What problem does this solve?

Since #8114, the chat list shows a chat's branches as a small tree. That works for a handful of
branches, but it has no room for long histories or deep chains. It also only says which chat a branch
came from, not where: the message it split off at. Community feedback on Discord asked for exactly
that: "it is sick (and handy) to see the long branch of messages and where they specifically branched
off!"

The Chat Branches panel doesn't help either. It's a flat list sorted by recent activity, which is
right for quick switching but shows no shape at all.

Proposed solution

A branch graph window, opened from a new tree button in the Chat Branches panel's header:

  • Time runs left to right, one dot per message, coloured by role.
  • Each branch is its own lane, joined to its parent's lane at the message it was forked from.
  • Fork points show the message number, speaker and a short snippet.
  • Long runs of messages collapse into an expandable "··· N ···" marker, so very long chats and deep
    chains stay readable.
  • Clicking a lane switches to that branch, and the current branch is highlighted.
  • It uses the same resizable, movable window as the rest of the chat tools.

The Chat Branches list itself stays as it is, for quick switching.

The data is already recorded: every Engine-made branch stores its source chat and the fork message.
The graph needs one read-only endpoint that returns, per chat, its fork position, message count, the
roles of its own messages, and the fork and latest message snippets. No schema change.

Alternatives considered

  • A bigger tree in the chat list. No room for it there; the sidebar tree stays compact on purpose.
  • Turning the Chat Branches list into the tree. Cramped in a small window, and it makes quick
    switching slower.
  • Fetching every branch's full transcript in the client. Branches copy their history, so this
    would load the shared part once per branch.

Additional context

  • Builds on #8025 / #8114 (the chat-list branch tree) and reuses its tree-ordering helper.
  • A user shared a SillyTavern extension's message graph as the reference for the look.
  • Branches created before branch lineage existed, and imported ones, have no recorded fork message.
    They show as a lane from the start with an "unknown fork" joint.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @ylli-selmani on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8157 Originally assigned to: @ylli-selmani on GitHub. ## What problem does this solve? Since #8114, the chat list shows a chat's branches as a small tree. That works for a handful of branches, but it has no room for long histories or deep chains. It also only says which chat a branch came from, not **where**: the message it split off at. Community feedback on Discord asked for exactly that: "it is sick (and handy) to see the long branch of messages and where they specifically branched off!" The Chat Branches panel doesn't help either. It's a flat list sorted by recent activity, which is right for quick switching but shows no shape at all. ## Proposed solution A **branch graph window**, opened from a new tree button in the Chat Branches panel's header: - Time runs left to right, one dot per message, coloured by role. - Each branch is its own lane, joined to its parent's lane at the message it was forked from. - Fork points show the message number, speaker and a short snippet. - Long runs of messages collapse into an expandable "··· N ···" marker, so very long chats and deep chains stay readable. - Clicking a lane switches to that branch, and the current branch is highlighted. - It uses the same resizable, movable window as the rest of the chat tools. The Chat Branches list itself stays as it is, for quick switching. The data is already recorded: every Engine-made branch stores its source chat and the fork message. The graph needs one read-only endpoint that returns, per chat, its fork position, message count, the roles of its own messages, and the fork and latest message snippets. No schema change. ## Alternatives considered - **A bigger tree in the chat list.** No room for it there; the sidebar tree stays compact on purpose. - **Turning the Chat Branches list into the tree.** Cramped in a small window, and it makes quick switching slower. - **Fetching every branch's full transcript in the client.** Branches copy their history, so this would load the shared part once per branch. ## Additional context - Builds on #8025 / #8114 (the chat-list branch tree) and reuses its tree-ordering helper. - A user shared a SillyTavern extension's message graph as the reference for the look. - Branches created before branch lineage existed, and imported ones, have no recorded fork message. They show as a lane from the start with an "unknown fork" joint. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-11-07 16:42:10 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7585
No description provided.