Skip to content

fix(web): a PR watch keeps a thread Waiting, not Done or Continue - #5

Merged
Ali-Al1 merged 1 commit into
base/upstream-main-920ffcdd04-hosted-cifrom
fix/sidebar-done-vs-waiting-hold
Nov 9, 2026
Merged

Ali-Al1 merged 1 commit into
base/upstream-main-920ffcdd04-hosted-cifrom
fix/sidebar-done-vs-waiting-hold

Conversation

@Ali-Al1

@Ali-Al1 Ali-Al1 commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Threads with a live pull request watch showed Done in the sidebar, and interrupted ones still offered Continue.

  • Sidebar status: resolveSidebarThreadStatus now returns waiting when backgroundWorkHoldsCompletion(pendingBackgroundTasks), the same hold the status pill already reads. Done can no longer win while an awaited hold exists.
  • Direct-link shells: presentThreadShellFromProjection now passes deriveThreadPendingBackgroundTasks(projection), so pendingBackgroundTasks agrees with the runtime that already parks on PR watches.
  • Continue: new deriveContinuableRunId wraps deriveResumableRunId. It hides an interrupted run's resume while a hold is active. Interrupted runs with no hold, usage-limit resumes and held queued runs are unchanged.

Out of scope: turn-item watch_pull_request results that never reached thread.pullRequests.watch still get no hold.

Tests: vp test run --project unit for Sidebar.logic, ChatView.logic and the new ChatView.waitingHold (128 pass). Client-runtime entities and threadExecution pass (42). effect-tsgo on web reports no errors.

🤖 Generated with Claude Code

- Sidebar status reads the same awaited-background-work hold as the status
  pill, so a completed, unread thread with a live PR watch shows Waiting.
- Direct-link thread shells carry the derived pending background roster, so
  the field agrees with the runtime that already parks on it.
- Continue is not offered for an interrupted run while a hold is active;
  interrupted runs with no hold still resume, as do held queued runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for 89d964e.

This comment will update automatically after the next completed run.

@Ali-Al1
Ali-Al1 merged commit 58a1bcd into base/upstream-main-920ffcdd04-hosted-ci Nov 9, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant