feat(sidebar): expandable worker tree under each thread #49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/sidebar-worker-tree"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Each root thread in the sidebar gets a chevron that expands to every worker it spawned (Coder, Codex, Claude Code, child threads), sweatshop-style.
Stacked on #48 (uses its status tokens). Merge #48 first, then retarget this to
main.Behaviour
#worker-<toolCallId>). The card opens and scrolls into view.Data
No new tables or server code. The list comes from the thread's saved transcript (
GET /api/harness/transcript), parsed with the delegation card's ownparseDelegationResult/delegationOutcome(pure, inlib/worker-tree.ts, unit-tested). Liveness comes from the snapshot's activeagentoperations, matched to calls with the card's existingmatchLiveAgents. An expanded, running thread is re-read every 5 s.Verification
pnpm typecheckandpnpm testpass (1295 passed, 5 new worker-tree tests, sidebar-threads test rewritten).workerRowsFromTranscripton three real transcripts from the live instance (Codex, Coder ×5, Claude Code). It gave the same outcomes the cards show: interrupted runs failed, finished runs done.#d97757even when failed.Known limits
waiting. Its card still says waiting.start_threadchild; the unit tests cover its shape.Screenshots
Light:
Dark: