Repository navigation
feat(sidebar): Smart Done means finished and unread (dark) - #30425
Conversation
Owner decision Q1: with ORCA_SIDEBAR_INPUTS=main, a Done row holds its tier only while the workspace unread flag is set, so opening the workspace or sending the next prompt ends it. Reuses the existing flag; no new state or timer. Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
ELI5
In the new sidebar build (still switched off for everyone), Smart sort puts "Done" workspaces (an agent finished) near the top. Until now a Done row stayed there until the next prompt, even after you had looked at it. The owner decided Done should mean "finished and you haven't looked yet". So opening the workspace now moves it back down, the same moment its unread dot goes away.
What Changed
Behind the build switch
ORCA_SIDEBAR_INPUTS=mainonly:tierRankinsrc/shared/sidebar-list/stamp-order.ts: a row counts as Done only while the existing workspace unread flag is set. A Done you have seen rests among the other rows by its Recent time, which puts a just-finished row at the top of that part of the list.unreadfield into the same rule (workspace-list-ordering.ts).Before (switch on): finish in a background workspace, open it, read the reply: the row stays in Done until the next prompt.
After: the row leaves Done when you open it. A finish in the workspace you are looking at never shows as Done.
Why
Owner decision Q1 (2026-10-18). Every product checked clears "done" on view; several also clear on the next prompt. Reusing the unread flag means the sidebar dot and Smart's Done always agree, with nothing new to persist or expire.
Linked Issue
Follow-up to the sidebar sort stamps plan (#30284, #30401, #30404).
Visual Proof
N/A: dark behind a build switch; no shipped build changes.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
stamp-order.test.ts: unread Done ranks above Working; a seen Done, and a row from an older host without the flag, rest by Recent.stamp-order-scenarios.test.ts(the design note's before/after rows): Done holds while unread with no fade; opening the workspace ends Done; the next prompt ends Done; a finish in the open workspace is never Done.use-sort-order-stamps.test.tsx: clearing the flag re-sorts the live list.Switch-on stamp golden re-recorded (the seen Done row moves below Working); switch-off goldens unchanged.
Mobile:
workspace-list-stamp-order.test.tsadds a seen Done; mobiletsc, tests and format check pass.e2e on a switch-on build, hidden window: sort-stamps order, sort-stamps, workspace rows: pass.
pnpm tc, allcheck:*ratchet*scripts,check:code-quality:changed, anti-slop lint, oxlint: pass. macOS only.Review
Opus review in the foreground. Added from review: the live re-sort test.
Agent skill upstream boundary
Notes
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)