Skip to content

Sidebar: nest forks under their parent and keep a delegating family on Working - #1421

Merged
currentbits merged 3 commits into
mainfrom
fix/sidebar-fork-families
Oct 3, 2026
Merged

currentbits merged 3 commits into
mainfrom
fix/sidebar-fork-families

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Two sidebar bugs:

  1. Forks weren't grouped. Only agent workers (orchWorker) nested under the thread that started them. Forks from suggestion chips and the Fork button showed as separate rows, so a running fork could sit on the Working shelf apart from its parent.
  2. A parent with running work looked done. The Inbox vs Working shelf only checked the lead's own status. A lead that had finished its turn (shown as "Delegating · 1 worker · 1 running") stayed in the inbox.

Changes

  • isFamilyChild (any handoffFrom) now drives renderer grouping: crewAncestorIds, nestWorkerFamilies, workerIdsByRoot, search context and the settled/pinned nesting. isCrewWorker keeps its backend meaning, so crew notices, spend caps and peer messaging are untouched.
  • buildFlatSidebar files a family as one unit. It goes on Working while any member is running, unless a member is waiting on the user, stalled or failed. A family with nothing running, for example all workers stopped, stays in the inbox.
  • buildWaitStates counts plain forks, so a parent with a running fork reads Delegating.
  • A nested plain fork keeps its full "Fork: …" title.
  • Stay on the current thread when starting a suggested-work chip #1415's chip test now expands the source's family before looking for the started fork, because the fork nests (collapsed) under its source.

Behaviour to note: an old thread whose plain fork was stopped mid-run and never restarted will now show "Waiting on 1 worker · stopped" instead of Done. That already happened for agent workers.

Verification: npm run test:renderer passes 2674/2674, npm run typecheck and npx vite build are clean. New tests: an idle lead with a running fork or worker files to Working; a family with a blocked or failed member stays in the inbox.

🤖 Generated with Claude Code

Willem and others added 3 commits October 3, 2026 17:09
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]>
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]>
#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]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@currentbits
currentbits merged commit b149eba into main Oct 3, 2026
6 checks passed
@currentbits
currentbits deleted the fix/sidebar-fork-families branch October 3, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant