Repository navigation
Jump to any earlier prompt in long threads with a tick rail and /jump - #1667
Conversation
One tick per user prompt on the transcript's right edge (threads with 8+ prompts). Hover or focus expands it into a labeled outline; clicking mounts the prompt if it is windowed out, scrolls it to the top and flashes it. The current prompt follows scroll. `/jump <filter>` opens the same outline filtered and never reaches the model. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b26d61ca8a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| const submitSend = () => { | ||
| if (!canSend) return; | ||
| const jump = ask ? null : parseJumpCommand(readDraft()); |
There was a problem hiding this comment.
Intercept /jump in Ask threads
When thread.ask is true, the static slash palette still offers /jump, but this condition skips parsing it. Submitting the command in an Ask thread therefore sends the literal /jump ... prompt to the provider instead of opening the thread outline, even though ThreadView supplies onJump and renders the rail for these threads.
Useful? React with 👍 / 👎.
| const needle = query?.trim().toLowerCase() ?? ""; | ||
| const shown = needle | ||
| ? turns.filter((t) => t.label.toLowerCase().includes(needle)) | ||
| : turns; |
There was a problem hiding this comment.
Filter against the complete prompt text
For /jump auth, this filters only the displayed label, which is the prompt's first nonempty line and may even be replaced by a pin label. A prompt such as Investigate login\nThe auth middleware is failing will not be found, despite the command being documented as filtering prompts containing the query; retain the full prompt text separately for matching.
Useful? React with 👍 / 👎.
| setJumpMessageId(id); | ||
| setTopJump({ id }); |
There was a problem hiding this comment.
Expand collapsed runs before jumping
If the user has collapsed a completed run, its user prompt remains in railTurns, but the runCollapsed rendering branch suppresses that prompt's [data-message-id] element. This handler only sets reveal state and never removes the prompt's run from collapsedRuns, so selecting that rail tick cannot find or scroll to the target.
Useful? React with 👍 / 👎.
After an hour the scrollbar is useless for finding "the prompt where we decided to rewrite auth". Threads with 8 or more prompts now get a slim tick rail on the right edge, one mark per prompt.
/jump <filter>opens the same outline filtered. Closes #487.Changes
jumpMessageId) rather than adding a second scroll path./jump auth: the composer intercepts it on send, opens the outline filtered to "auth", and never sends it to the model. Enter jumps to the first match and Esc closes./jumpalso works on short threads.Verification
test/turnRail.test.tsx(4 tests):/jump authfilters to one prompt, sends nothing, and Enter jumps and closes;--test-concurrency=3: green.tsc --noEmitis clean. ThreadView, pins, composer, slash-command and onboarding renderer suites pass, and so do the site docs electron tests.vite buildsucceeded. The one failure was a store async-flush tempdir ENOENT race inthreadHeader.test.tsx. That file passed 78/78 run alone, twice.Notes for reviewers
useStickToBottom. That hook's nearest-reveal would otherwise pull a prompt taller than the viewport down to its bottom edge./jumponly works in ThreadView's composer. Other composers don't passonJump, so there/jump xis still sent to the model as text.claude-opus-5-5 via Claude Code
🤖 Generated with Claude Code