Repository navigation
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — PR check updates can continue when comment reads fail, while failures are logged and comments remain eligible for retry. The change is confined to watch error handling and preserves existing detail-failure safeguards. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Note Written by Verified in a real dev environmentverified unchanged head on after stopping main, the exact pr head ran against a copy of that same app-created state. with the identical network failure, it logged nearby behavior: rewatching did not duplicate the check wake during another comments failure. after restoring network access, the next watch sweep successfully read comments without a duplicate wake; the timeline loaded the two real comments. the ui's stop control removed the watch. blacksmith passed the six focused existing runtime tests and Not verifiedno new live ci pending-to-success transition was triggered; the runtime case used completed checks first observed by a fresh watch. the focused existing test covers completion after the no-checks notice. the host was git.cafe; a github-specific outage was not exercised. native desktop/mobile, remote/tunnel connections, live provider cancellation, and permanent detail-read failures were not exercised here. permanent failure cases passed in the existing focused tests. |



Problem
The watch reads PR detail (checks, head, mergeability) and PR activity (comments) together. If the activity read fails, the whole sweep is treated as failed, so check results that were read successfully are thrown away. A check finishing during a period of comment-read errors does not wake the agent.
Change
The detail read decides whether the sweep succeeded. An activity failure is logged, clears the cached comment tail for that PR, and leaves activity unavailable for that sweep; check, conflict and head updates still apply. Interrupts still propagate, and permanent detail-read failures are handled as before.
Scope and approval
A small, focused fix for an obvious failure-isolation defect in the existing check wakes. It adds no wake reason, alert policy or setting.
Verification
runtimeLayer.test.ts"wakes for checks that complete after…": onmainit observes one notification instead of two (expected [...] to have a length of 2 but got 1), the completion wake is missing; passes with the fix, along with the existing repeated host-read-failure cases (6 focused tests).vp run check:changedpasses.Not checked: a live run where GitHub's comments endpoint fails.
Code written by gpt-6.1-sol in Codex (via T3 Code); split, reviewed and filed by Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code