GeezerVison is showing github.com — fix(server): refresh PR metadata with Git fetch disabled by juliusmarminge · Pull Request #10081 · pingdotgg/t3code
Conversation
Problem
With automatic Git fetch set to zero, a subscribed workspace loads remote status once and then stops checking for externally opened pull requests. The server already has a metadata-only refresh path, but the periodic loop never calls it in this mode.
HUMAN HOLD: prepared for review, not for automatic merge.
Change
Use that existing path on the existing 30-second subscription tick when Git fetch is disabled. Keep Background activity gating, initial-load retry, nonzero fetch intervals, remote-write serialization, PR cache/backoff and subscriber cleanup. Metadata-only ticks do not fetch Git remotes, invalidate Git status or trigger auto-pull. Clarify the setting's explanation without promising that provider CLI calls never prompt.
Closes #4106. Credit Kevin Beier / tonoizer for the original proposal in #4108. That proposal was closed because its orchestration base became obsolete; this is a narrowed port on current main, not a reopening of the non-editable fork.
Verification
- Original before-test base c843c1929; refreshed by a normal merge of 09aac7156. All three proposal files remained byte-identical to the audited candidate. Seven new production-broadcaster controls: 6 FAIL / 1 PASS before, all 7 PASS after. Before, an external PR appearance leaves the workflow read count at one after the scheduled tick. After, the stream publishes the new PR with no fetch, invalidation or pull.
- 27 focused tests pass, including prior broadcaster behavior and real disposable GitManager cache controls with mocked provider responses. Covers feature/default branches, pause/resume, subscriber sharing/cancellation/reopen, error backoff/recovery, cached null results and zero/nonzero interval transitions. No sleeps or polling loops in new tests.
- Server typecheck, changed-file lint and formatting pass. Lint retains one existing Settings effect warning.
- An independent review reran the same 27 focused tests successfully and read the complete three-file diff, refresh loop, locking, cache and policy callers.
Settings copy evidence
Actual client captures on September 5, 2026, with the same 1280×900 viewport, scroll and displayed interval of 30. The before file matches both the original base and refreshed main; the after is the exact proposal paragraph. These images demonstrate the explanation only, not live PR discovery or the zero-interval server behavior.
Before:

After:

Human hold
Keep unmerged until a maintainer accepts the extra provider API traffic and the meaning of a zero Git fetch interval. This does not fix lookup certainty, branch provenance or unsafe Create PR eligibility from the broader issue. It does not add independent 30-second metadata polling when Git fetch has a nonzero interval. The held HEAD-watcher proposal is not included.
The server evidence uses typed workflow/policy fixtures and local Git with mocked provider output. No live provider account, native platform or end-to-end external GitHub/GitLab PR creation was tested. Settings images demonstrate copy only.
Prepared by GPT 6 Astra via Codex in T3 Code.
Note
Continue PR metadata polling when Git fetch interval is zero in VcsStatusBroadcaster
- Removes the early return in
VcsStatusBroadcaster.make that skipped all polling when the fetch interval was zero; after the initial full remote load, later cycles now call refreshPullRequestStatus to refresh pull-request metadata without fetching Git remotes.
- Nonzero intervals continue to perform full remote refreshes with upstream refresh enabled; polling still pauses when there is no eligible background demand or when the background-work policy disallows it.
- Updates the source-control settings UI to explain that a zero interval stops automatic Git fetches but pull-request metadata may still refresh under the Background activity policy.
- Adds a reusable
makePollingFixture test helper and six parameterized polling tests covering PR discovery, background-policy pause/resume, shared poller interruption, failed-poll backoff, cached non-repository results, and fetch-interval switching.
- Behavioral Change: workspaces that set the fetch interval to zero will now see periodic background metadata reads that were not performed before; existing consumers expecting no remote activity at zero interval should review the poller logic in VcsStatusBroadcaster.ts.
Macroscope summarized d54377a.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Credit Kevin Beier (@tonoizer) for the original metadata-polling proposal in [#4108](#4108). This narrowed port preserves current lookup and background policy behavior.
Approvability
Verdict: Approved at d54377a
Macroscope's review found this PR approvable — The server change reuses the existing metadata-only PR refresh path when Git fetches are disabled, without enabling fetches, pulls, or cache invalidation, and is covered by focused polling tests. The web edit is explanatory copy; no defaults, schemas, sensitive packages, deployment settings, or static-analysis overrides are changed.
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.
Thread transfer impact
✅ Thread transfer remains within every enforced ceiling.
| Provider |
Metric |
Main baseline |
This PR |
Impact |
PR ceiling |
|
| Codex |
Total thread wire |
13.5 KiB |
13.5 KiB |
−15 B (−0.1%) |
15.1 KiB |
✅ |
| Codex |
Thread snapshot wire |
7.0 KiB |
7.0 KiB |
−11 B (−0.2%) |
7.3 KiB |
✅ |
| Codex |
Live turn WebSocket wire |
6.5 KiB |
6.5 KiB |
−4 B (−0.1%) |
7.8 KiB |
✅ |
| Codex |
Live turn WebSocket decoded |
57.0 KiB |
57.0 KiB |
0 B (0.0%) |
66.4 KiB |
✅ |
| Codex |
Live turn messages |
8 |
8 |
0 (0.0%) |
21 |
✅ |
| Claude |
Total thread wire |
13.5 KiB |
13.6 KiB |
+62 B (+0.4%) |
15.1 KiB |
✅ |
| Claude |
Thread snapshot wire |
7.0 KiB |
7.0 KiB |
−2 B (−0.0%) |
7.3 KiB |
✅ |
| Claude |
Live turn WebSocket wire |
6.5 KiB |
6.6 KiB |
+64 B (+1.0%) |
7.8 KiB |
✅ |
| Claude |
Live turn WebSocket decoded |
57.8 KiB |
57.9 KiB |
+88 B (+0.1%) |
66.4 KiB |
✅ |
| Claude |
Live turn messages |
8 |
10 |
+2 (+25.0%) |
21 |
✅ |
Baseline: 09aac71 · PR result: d54377a · Source CI: success
Scenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 113.8 KiB
- Claude decoded thread snapshot: 114.5 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Superseded by #10101, which landed server-side ThreadPullRequestReactor discovery/persistence for thread branch PRs (the architectural fix for #4106). Closing this VcsStatusBroadcaster metadata-refresh approach as superseded.
|
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
size:S
10-29 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or 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.
|