Repository navigation
Stay on the current thread when starting a suggested-work chip - #1415
Merged
Merged
Conversation
Clicking a suggestion chip forked the thread and selected the fork, so the view jumped to the new agent. The chip now forks with select: false: the worker starts in the background and appears in the sidebar, and the user stays on the thread they clicked from. forkThread gains an optional `select` (default true), so card Fork and hand-off still switch to the new thread. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
currentbits
added a commit
that referenced
this pull request
Oct 3, 2026
…n Working (#1421) * Sidebar: nest plain forks under their source and file families as one A fork (handoffFrom without orchWorker) now groups under the thread that started it, like an orchestration worker. A family sits on the Working shelf while any member is quietly working, unless a member needs the user, so a lead that finished its turn no longer reads done while its fork runs. orchWorker keeps its backend meaning. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Sidebar: keep a nested fork's Fork: title; expand families in fork tests A plain fork is titled "Fork: <lead title>". Nested rows strip that prefix for orchWorkers, which made a nested fork read as a copy of its lead. Only strip it for orchWorkers. Tests that click a fork card now expand the lead's family first, since forks start collapsed like workers. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Suggested-work chip: expect the started fork nested under its source #1415 asserts the chip-started thread is visible in the sidebar. With plain forks now nested (collapsed) under their source, the test expands the source's family first; the comments in handleStartSuggestion say where the worker shows up. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Willem <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Clicking a suggested-work chip ("Start a thread") forked the thread and switched the view to the new agent. The user should stay on the thread they clicked it from.
Change
useCoder.forkThreadtakes an optionalselect(defaulttrue). Card Fork and hand-off keep switching to the new thread, as before.App.tsxhandleStartSuggestion) forks withselect: false. The worker still gets its own worktree and starts its run in the background, the chip resolves asstarted, and the new thread appears in the sidebar.startRunalready targets the fork explicitly and refreshes the visible detail only when that thread is selected, so the source view is untouched.thread:selectonly on notification clicks, never on fork, so nothing else pulls focus.Verification
test/suggestedWorkChips.test.tsxnow asserts the source card stays active and the started thread is in the sidebar. It failed before the fix (actual: 't-fork-…') and passes after.tsc --noEmitclean. Renderer suite 2671/2671.vite buildok.🤖 Generated with Claude Code