Replace session wall clock with completed sub-agent durations - #320
Conversation
Status bar no longer shows whole-session elapsed time. It sums finished sub-agent wall times instead, and the Agents strip shows per-agent duration. Closes CL-5346
Code review (parent — multi-agent fleet unavailable)Verdict: approve with nits Correctness
Nits
Tests
|
Review — request changesDirection is good (session wall clock was noisy; completed-agent totals are more useful), but this PR currently breaks existing unit tests and leaves running durations non-ticking. Verdict: request changes Blocking issues
Other correctness / quality notes
Test gaps
Merge conflicts
Please fix the broken call sites/tests and decide whether running durations should tick before merge. |
Drop live Date.now() duration from running strip labels so formatSessionLabel stays deterministic. Update chrome-zone StatusBar props and agents-strip expectations for finishedAt durations.
|
Addressed multi-agent review:
|
The status bar no longer shows a session timer, so drop useSessionClock, its tests, and the unread sessionStartedAt prop/state chain.
Multi-agent review (blended: cto / greybeard / neckbeard / critique / bruckheimer)Verdict: Approve (after post-review fixes) Fixed from review
Ready for human review/merge. |
Reuse the in-flight indicator duration formatter for the agents strip and completed-agents label so three near-copies do not drift. Compute completedAgentsLabel once above the return instead of an IIFE spread.
Hard review (greybeard + CTO)Verdict: APPROVE GreybeardSession wall clock is gone. Completed sub-agent durations use CTOProduct intent matches: bottom-right is useful again (agents work, not session age). Tests cover strip + status-bar labels. No blockers. |
Summary
agents Xm Ys) when any worker has finishedTest plan
agents …totalCloses CL-5346