feat(desktop): add a clickable session timeline above the transcript - #7771
Open
HUQIANTAO wants to merge 1 commit into
Open
feat(desktop): add a clickable session timeline above the transcript#7771HUQIANTAO wants to merge 1 commit into
HUQIANTAO wants to merge 1 commit into
Conversation
Render the conversation's structural history as a rail above the transcript: each user turn is a numbered node, compactions appear as diamond markers on the connecting line. Clicking a turn scrolls the transcript to it, the current turn is highlighted, and rewind checkpoints carry a ring. The rail is hidden for sessions with fewer than two turns.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Long conversations lose their shape. Once a session spans many turns and several compactions, there is no way to see where you are in the conversation — how many exchanges happened, where the context got compressed, or which turns are rewind checkpoints. You scroll, and scroll. The transcript already carries all of this structure (user turns,
compactionitems, rewindcheckpointTurnmarkers), but nothing surfaces it.What this PR does
Adds a compact, clickable session timeline rail above the transcript:
It is derived entirely from the existing
itemsarray (user items +compactionitems) and reuses the transcript's ownquestionAnchorIdanchors, so nothing about the transcript or controller changes.Files changed
desktop/frontend/src/components/SessionTimeline.tsx— new componentdesktop/frontend/src/App.tsx— render above the transcriptdesktop/frontend/src/styles.css— rail, node, and compaction-marker stylesVerification
pnpm typecheck— no new errorspnpm lint:hooks— cleannode scripts/check-css-syntax.mjs/check-z-index-tokens.mjs— passDocumentation-impact: none - a UI navigation aid derived from existing transcript data; no documented behavior changes.