GeezerVison is showing github.com — fix(server): a PR watch the host refuses to show ends at once and says why by shredderts2000 · Pull Request #21636 · pingdotgg/t3code
Conversation
Problem
When the host refuses to show a watched pull request, the watch retries it as if the failure were transient. This happens when GitHub answers 404 because the selected gh account cannot see a private repository, or when the host has no working credential. watch_pull_request returns watching: true, every pass then fails at warning level, and the agent hears nothing until the 8th failure, about 20 minutes later. Even then the message only says "failed to read it". No retry can fix these failures.
Observed on a server where gh's active github.com account could not see the private repository. Over ten minutes of traces, 376 of 384 GitHub requests failed with GitHubApiNotFoundError, and every PullRequestWatchReactor.readGroup failed. After 17 minutes the agent called unwatch_pull_request and got wakes: 0, reads: 0. It was never told why.
Change
PullRequestWatchReactor now treats a lasting refusal as final: PullRequestUnavailableError (CLI missing or unauthenticated, or provider unsupported) or PullRequestOperationError with reason: "not-found". The watch ends on the first such read, and the wake gives the host's reason and points to Settings → Source Control. Other failures still get 8 tries in a row, and a rate limit still only pauses the watch. The watch_pull_request description and docs/user/source-control.md now describe this rule.
This doesn't fix #19549. A field-level FORBIDDEN on a requested reviewer is classified as a plain response error, not not-found (isNotFoundOnly requires every GraphQL error to be NOT_FOUND), so it keeps the 8-try budget. The new test checks this.
Scope
This is a focused fix for an obvious bug: the server keeps a watch silent for 8 passes even though it knows the read can never succeed. It adds no new setting, contract, or client change.
Verification
- New
runtimeLayer.test.ts case, "ends a watch the host refuses to show on the first pass, and says why". A read with a field-level forbidden error leaves the watch on after one pass. A not-found read then ends it, and one failed wake carries the host's reason. The test fails on main and passes with this change. As a mutation check, classifying every operation error as lasting makes it fail.
vp test run src/orchestration-v2/runtimeLayer.test.ts src/mcp/toolkits/pullRequests/handlers.test.ts src/orchestration-v2/pullRequestWatch.test.ts: 126 passed. This includes the existing 8-failure and rate-limit tests.
vp lint and vp fmt --check on the changed files are clean. tsc-rs --noEmit in apps/server exits 2: 59 diagnostics in unchanged root scripts/lib, starting with missing module declarations for @effect/vitest, effect/*, @t3tools/shared/HostProcess and typescript-legacy, followed by dependent type errors. It reports no errors under apps/server/src/. This is a validation gap; a clean baseline typecheck was not established.
- Not checked: a live run against GitHub with this build. The evidence above comes from the installed build's traces.
Not addressed here: #19183, #16924, #15924.
Written by Claude Opus 5.5 (Claude Agent SDK harness in T3 Code); reviewed by a GPT-6.1-Sol (Codex) parent agent.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…s why
A watched pull request whose host answered "not found" (GitHub's answer when the
credential cannot see a private repository) or had no working credential was
retried like a transient failure: the agent heard nothing for 8 passes, about
20 minutes, and then only "failed to read it". The watch now ends on the first
such read and the wake carries the host's reason and where to pick the account.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approvability
Verdict: Approved at e546e98
Macroscope's review found this PR approvable — This is a contained server bug fix that distinguishes permanent pull-request access failures from transient read errors, with targeted runtime coverage and documentation updates. Existing retry and rate-limit behavior remains unchanged for recoverable failures.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 19, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 713b5a2 and ea74f27.
Files selected for processing: 5
-
apps/server/src/orchestration-v2/PullRequestWatchReactor.ts
apps/server/src/orchestration-v2/runtimeLayer.test.ts
docs/user/source-control.md
packages/source-control-github/src/server/GitHubPullRequestApi.test.ts
packages/source-control-github/src/server/GitHubPullRequestApi.ts
Limit details: You’ve used all 10 included reviews currently available.
Walkthrough
-
The GitHub fingerprint API now reports missing pull requests as errors. The watch reactor stops watches for lasting access failures, while other read failures retain their retry behavior. Tests and documentation cover these outcomes.
Changes: Pull request watch access failures
| Layer / File(s) |
Summary |
Fingerprint not-found handling packages/source-control-github/src/server/GitHubPullRequestApi.ts, packages/source-control-github/src/server/GitHubPullRequestApi.test.ts |
Fingerprint reads now fail when a lookup returns no pull request or a GraphQL not-found error. Batched-read tests cover missing and readable pull requests, including null fingerprints. |
Watch stop and retry behavior apps/server/src/orchestration-v2/PullRequestWatchReactor.ts, apps/server/src/orchestration-v2/runtimeLayer.test.ts, docs/user/source-control.md |
The reactor stops watches immediately for lasting failures from fingerprint or detail reads. Other read failures retain the existing retry limit. Tests cover unavailable errors and guidance messages. Documentation describes the additional stop conditions. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Possibly related issues
Suggested reviewers: juliusmarminge
Merge Risk: Minimal · up to ea74f
-
Unsupported-provider failures now give appropriate recovery guidance, and no remaining merge-blocking issue is established. Merge after normal checks.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title is concise, specific, and accurately describes the main change: pull-request watches now stop immediately and explain host refusal errors. |
| Description check |
 |
The description covers the problem, implementation, scope rationale, verification results, test coverage, and known validation gaps. The "Scope" heading differs from the template's "Scope and approval… |
| Linked Issues check |
 |
Directly linked issue #19549 is closed and supplies historical context only. No active directly linked issue remains. Therefore, no linked-issue coding requirements apply. The PR also states that fiel… |
| Out of Scope Changes check |
 |
The changes remain within the stated watch-recovery scope. PullRequestWatchReactor ends watches for lasting access failures and preserves retry and rate-limit behavior. Tests cover the new classific… |
Full details: Description check
-
Explanation
The description covers the problem, implementation, scope rationale, verification results, test coverage, and known validation gaps. The "Scope" heading differs from the template's "Scope and approval" heading, but the required scope information is present and the focused-bug exemption is explained.
Full details: Linked Issues check
-
Explanation
Directly linked issue #19549 is closed and supplies historical context only. No active directly linked issue remains. Therefore, no linked-issue coding requirements apply. The PR also states that field-level FORBIDDEN remains outside this change.
Full details: Out of Scope Changes check
-
Explanation
The changes remain within the stated watch-recovery scope. PullRequestWatchReactor ends watches for lasting access failures and preserves retry and rate-limit behavior. Tests cover the new classifications and existing behavior. The GitHub API test, documentation, and tool description support the same behavior. No unrelated change is shown.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Usage-based review receipt
Note This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
maria-rcks
commented
Oct 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
updated the existing contributor branch to ea74f27fd11b7a2996442fcfc94e1c3a0c527f99 without force. merged current main and resolved the two conflicts, preserving main's transport-failure retries and the immediate stop for permanent refusals. unsupported providers now get support-specific guidance instead of account advice.
blacksmith vp run check:changed 30084f0018c5751a07291222e8d04e16d513700a passed: formatting, lint, both knip passes, graphql checks, typechecks for 11 packages, and 234 tests. both unsupported-provider read-path regressions failed before the fix and pass after it. two independent read-only reviews found no blocker or should findings on this head.
github reports CLEAN and MERGEABLE. all 28 cafe contexts are successful, with no pending or failing checks; github confirms all applicable jobs passed and the remaining jobs were skipped by policy. the bot finding was fixed and its github thread is resolved. no new test files or unrelated changes.
this pass did not repeat live provider/client verification or native-client checks. the captures below are historical evidence from the earlier takeover, retained for context.



|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
Verified in a real dev environment
verified the exact head c165d36660dd672c8fe147da212fd86fb8d9d37b as-is on this linux boat vm. no source changes or pushes.
- installed
github/main (570d4b03eef879bd60be3d74444046858c94dacd) in ../main with vp i, then installed the exact contributor head with vp i. ran real background vp run dev servers with isolated state. drove chrome at /usr/bin/google-chrome using the repo's playwright dependency.
- created the project and thread through the web ui and selected codex
gpt-6.1-sol through the local provider proxy. asked the agent to call watch_pull_request for an inaccessible/nonexistent github repository. main logged GitHubApiNotFoundError on its sweep but kept the watch active and silent.
- stopped main and copied that app-created development state into the stopped pr environment. the exact pr head ended the same watch on its first startup fingerprint refusal:
reason: unreadable, wakes: 1, reads: 0. the real codex provider received the wake and explained missing access, settings → source control, and calling watch_pull_request again.
- neighboring behavior: the real codex agent successfully started a readable watch for this pr, https://git.cafe/pingdotgg/t3code/pulls/21636. the web client displayed its title/checks and "watching pull request https://git.cafe/pingdotgg/t3code/pulls/21636". clicking "stop watching https://git.cafe/pingdotgg/t3code/pulls/21636" removed the watch and returned the thread from waiting to idle.
short server transcript


Not verified
native ios/android, electron, macos/windows, missing-cli/unauthenticated/unsupported-host cases, field-level forbidden responses, transient eight-read exhaustion, rate limiting, and later readable-watch check/comment notifications were not exercised live. the real github refusal cannot distinguish a nonexistent repository from a private repository hidden from the credential; both use the same not-found path.
interaction recording was attempted, but vm overload caused long stalls and the inspected exported clip contained loading frames. no usable recording or latency claim is supplied. screenshots and server/provider observations above were inspected directly. no new automated checks were run in this verification-only pass; git.cafe reported six successful head contexts, which are not a substitute for this runtime verification.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 30, 2026
|
This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.
See the conflict window.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note 🤖 Claude Opus 5.5 responding on behalf of Theo
Closing. This PR has been open for more than 3 weeks, and main has moved a long way since then. If the change still matters, open a fresh PR from current main.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
bugfix
Fix PR opened by an issue lead; enters the PR loop
needs-rebase
Conflicts with its base branch. Closes after 7 days with no activity.
pr:needs-julius
Needs Julius: route gate, unverifiable surface, or blocked
size:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
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.
|