Repository navigation
Description
Problem
Active PR watches are too easy to miss when scanning thread status. On desktop, a thread watching two PRs while a child was active showed:
Waiting on 1 subagent and 2 monitors
The adjacent description named the child task. The watches worked and delivered updates, but a maintainer scanning for “watch PR” could reasonably read this as a thread waiting on its child and overlook the PR work entirely.
Eye icons in PR rows and details behind the information control provide more information, but require knowing where to look. This is a visibility and wording problem; the observed watches were active.
Desired behavior
Make PR watching explicit in the thread's normal, visible status. A quick scan should reveal that the thread is watching PRs, which PRs it is watching, and whether other work is also outstanding. PR watches should remain identifiable when a subagent or another background activity is present.
LastCode prioritizes scannability over hiding operational detail. Tooltips, information panels, and expandable lists should add detail rather than carry the only explanation of what the thread is waiting for. Choose the final wording and layout during implementation; a generic monitor count alone does not meet this goal.
Acceptance
- A desktop thread watching one or multiple PRs visibly identifies PR watching and the watched PRs without opening a tooltip or another panel.
- With a simultaneous child task, both the child work and the PR watches remain apparent. The child's title does not obscure the meaning of the watch count.
- Watch-only and mixed-work states remain readable in the normal compact layout. If space requires a summary, it still explicitly identifies PR watches and makes additional watches apparent.
- Stopping a watch updates the visible status accurately; existing watch behavior and Stop controls remain intact.
- Verify the result in the desktop app with a real mixed-work scenario. Apply the shared presentation consistently to web and mobile where it is used.
Starting points
packages/client-runtime/src/state/threadExecution.ts:presentPendingBackgroundWorkgroups multiple activities into generic kind counts, including “monitors”.apps/web/src/components/chat/ThreadActivityBanners.tsx: background-work presentation.apps/web/src/components/chat/ThreadDetailsPrRow.tsxandapps/web/src/components/pullRequest/ThreadPullRequestsPanel.tsx: existing watch eye icons.
Related: #482 tracks delegated continuation ownership. This issue concerns how existing active watches are presented, independently of that orchestration change.
Activity