You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Lineage list mixes working and finished threads instead of putting working ones first #29485
orderWebThreadLineageRows in packages/client-runtime/src/state/threadRelationships.ts sorts by pin rank (parent, then merge target), then newest createdAt, then thread id. Status is not part of the sort.
ThreadRelationshipsControl.tsx only splits rows by status for subagent edges (active vs previous). Forks and transfers all land in related and keep the status-blind order, so a working fork sits among finished ones.
Inside active, every status not in the done list counts as active, and rows keep the same created-at order, so running rows do not lead.
A fix could add a status rank after the pin rank (running or pending first, then idle, then done or failed), using threadRelationshipRowStatus or the edge status, so it applies to every group.
Impact
Minor friction. Threads that delegate a lot of work have long lineage lists, and finding the children still running means reading every row.
Hi! I'd like to work on this issue. I'll look into the lineage row sorting logic and explore adding status-based prioritization so that running and pending threads appear before completed or failed ones. I'll investigate the existing implementation and submit a PR with the fix. Thanks!
Related ask for the same sort: within each status group, show the newest row first.
With many delegated children, new ones land at the bottom of the scrolling Lineage list. They stay hidden until you scroll, so a just-started child waiting on a question is easy to miss.
Activity
meutex commentedon Nov 2, 2026
Hi! I'd like to work on this issue. I'll look into the lineage row sorting logic and explore adding status-based prioritization so that running and pending threads appear before completed or failed ones. I'll investigate the existing implementation and submit a PR with the fix. Thanks!
fix(web): Lineage lists working threads above finished ones
Abdullah97128 commentedon Nov 4, 2026
Related ask for the same sort: within each status group, show the newest row first.
With many delegated children, new ones land at the bottom of the scrolling Lineage list. They stay hidden until you scroll, so a just-started child waiting on a question is easy to miss.
fix(web): Lineage lists working threads above finished ones