Repository navigation
Fix lineage child count order below agents - #2574
Merged
brennanb2025 merged 1 commit intoMay 22, 2026
Merged
Conversation
Co-authored-by: Orca <[email protected]>
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
Co-authored-by: Orca <[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.
Summary
n childrenlineage toggle.WorktreeListrender regression that builds parent -> child -> grandchild lineage and asserts the nested agent row precedes the nested1 childtoggle.Design
Design doc:
docs/lineage-child-agent-status-order.md(local pipeline artifact; ignored by repo policy for design/planning docs).Design-review outcome:
auto-design-review-fixcompleted clean after 3 review iterations. It kept the scope narrow to the nestedrenderLineageChildCardpath because top-levelWorktreeCardalready had the correct order.Implementation
Changed
src/renderer/src/components/sidebar/WorktreeList.tsxto mountWorktreeCardAgentsbefore the nested lineage child-count toggle. No changes to lineage grouping, agent-row derivation, collapse behavior, SSH reconnect lookup, or label copy.Deviation from design: none.
Completeness Verification
Initial completeness review found the first regression was only source-order based. I replaced it with a DOM/server-rendered
WorktreeListtest. The rerun completed clean with no findings.Code Review
Round 1 ran two independent
review-codereviewers in parallel. Both returned clean with only residual live UI/SSH validation gaps noted; no second round was needed.Brennan Test Changes
Verdict: land.
Live Electron validation:
brennankbenson/child-indicator-agent-status-child-swappedand this workspace root.demo-project.Lineage proof agent rowabove the1 childtoggle.agentTop=353,toggleTop=413).1 childtoggle; it collapsed the grandchild, changed toShow 1 child workspace, and the agent row remained above the toggle.Screenshot proof captured locally, not committed per repo policy:
/Users/thebr/orca/workspaces/orca/child-indicator-agent-status-child-swapped/.playwright-cli/lineage-child-agent-status-order-current.pngChecks
pnpm run typecheckpassedpnpm run lintpassedgit diff --checkpassedpnpm vitest run --config config/vitest.config.ts src/renderer/src/components/sidebar/WorktreeList.lineage-child-card.test.ts src/renderer/src/components/sidebar/worktree-list-groups.test.ts src/renderer/src/components/sidebar/WorktreeCard.lineage.test.tsx src/renderer/src/components/sidebar/useWorktreeAgentRows.test.tspassed: 4 files, 48 testspnpm exec oxlint src/renderer/src/components/sidebar/WorktreeList.tsx src/renderer/src/components/sidebar/WorktreeList.lineage-child-card.test.tspassedpnpm exec oxfmt --check src/renderer/src/components/sidebar/WorktreeList.tsx src/renderer/src/components/sidebar/WorktreeList.lineage-child-card.test.tspassedResidual Risk
Made with Orca 🐋