Repository navigation
Sidebar: attach orchestration worker threads under their source thread - #11
Merged
currentbits merged 1 commit intoAug 14, 2026
Merged
Conversation
buildSidebarGroups now reorders each project group depth-first so any thread with handoffFrom sits directly below the thread that started it (orchestration workers, manual forks). The child card indents with an elbow connector when its source renders in the same sublist; forks whose source is settled/missing keep their normal flat position. Co-Authored-By: Claude Fable 5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
currentbits
deleted the
coder/when-we-are-running-a-project-using-orch-1c4972
branch
October 3, 2026 16:07
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.
What changed
Worker threads spawned by orchestration (
thread_fork) were rendered as unrelated top-level rows in the sidebar, sorted purely by creation time. Since workers are created after the orchestrator, they appeared above the thread that started them, reading as separate forks — easy to confuse with independent work.buildSidebarGroups(src/sidebarGroups.ts) now reorders each project group depth-first: any thread whosehandoffFrompoints at another thread in the same group renders directly below it. One rule covers both orchestration workers and manual forks. A fork whose source is absent (settled, archived elsewhere, deleted) keeps its normal flat position, and a corrupt-data guard re-emits stranded rows so a badhandoffFromcan never drop a thread from the list.ThreadCard(src/components/Sidebar.tsx) gets anestedprop, set when the source row renders in the same sublist (attention vs archived), styled inSidebar.module.cssas a 14px indent with an elbow connector into the parent card.test/sidebarGroups.test.ts: workers follow their orchestrator; a fork with a missing source keeps sort order.Why
When running a project with orchestration, workers should visibly belong to the thread that started them so the sidebar reflects the actual team structure instead of a flat list of look-alike forks.
Verification
sidebarGroupstests 13/13 pass,tsc --noEmitclean, renderer suite 707/708 — the one failure (appWiringmemory-scoping slug-vs-path) also fails on the clean base tree and predates this change.