Repository navigation
feat(ui): list every waiting agent in a needs-you inbox - #460
Open
DeadWaveWave wants to merge 3 commits into
Open
DeadWaveWave wants to merge 3 commits into
DeadWaveWave wants to merge 3 commits into
Conversation
The navigation panel opens with the agents waiting for you across all projects: project tile, title, project and Space, and how long ago it started waiting. One click switches to that project and focuses the agent. Waits are timed only from a transition this window saw, so restored agents show "Waiting" instead of an invented duration. The project tile becomes a shared component. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
💡 Change Scope
📝 What Does This PR Do?
Tide Phase 2.5, fourth step: the "needs you" inbox at the top of the sidebar panel, as the Tide Spec describes.
Inbox: one row per agent waiting for you, across every project. Each row shows:
One click switches to that project and focuses the agent, the same path as the sidebar rows and the top-bar chip (on mobile it only centres the agent).
The whole block is hidden when no agent is waiting. Hidden agents are included, because they still need you.
Wait time:
Shared project tile: the rail's coloured tile becomes
ProjectTile(with a small size), so the rail and inbox, and later the command center, show the same project identity.🏗️ Large Change Spec (Required if "Large Change" is checked)
1. Context & Business Logic
Approved Tide Spec, app shell:
and its state table:
GitHub's and Linear's inboxes follow the same pattern: one list across all sources, a relative age, and one click to the item.
2. State Ownership & Invariants
useAgentWaitingSinceTrackerin the shell, and never persisted.Invariants:
summarizeAgentActivityandbuildSidebarAgentItems. They update in the same render.3. Verification Plan & Regression Layer
agentWaitingSince.spec.tscovers stamping, keeping the stamp, no guess after restore or first sight, clearing and forgetting, and no change when nothing changed.waitDuration.spec.tscovers unknown, now, minutes, hours and a clock moving backwards.SidebarAttentionInbox.spec.tsxcovers empty, rows with place and wait, accessible names, and the click target.agentActivitySummary.spec.tschecks the project and Space names.workspace-canvas.attention-inbox.spec.tslaunches a real Claude hook agent in one project, switches to another and drives it to waiting. It then checks:✅ Delivery & Compliance Checklist
pnpm verify:quick/pnpm pre-commitis green; any additional focused tests are reported above.CLA.md).DEVELOPMENT.mdarchitectural boundaries.Local (macOS arm64):
pnpm verify:quickpassed: related Vitest 192 files / 910 tests, native contracts 6 / 9, representative E2E 15 tests.First full CI run (39025693440, on
0dc403e9): every job passed exceptci-macos (2), wherecolor-identity.spec:282andpixel-light.spec:167failed in the shared wheel-zoom helper (zoom stayed at 1). That is the same failure seen on main before the rail change (spatial-pixel.materials:223), and it does not touch the sidebar. All three passed 9/9 locally on this build. Rerunning the failed job.Full CI on the final revision: running.
📸 Screenshots / Visual Evidence
Inbox crops in Cove dark, Cove light, Pixel and Pixel light, from the real agent flow, are on the review page shown to the owner (who asked for review pages to be shown without waiting for approval).
🤖 Generated with Claude Code