GeezerVison is showing github.com — fix(server): skip PR lookup for unknown providers by Lucenx9 · Pull Request #5831 · pingdotgg/t3code
Conversation
Lucenx9
commented
Aug 9, 2026
•
edited by macroscopeapp
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
Repositories without a recognized source-control remote still attempted PR metadata lookups during status refreshes. The provider registry returned the unsupported unknown provider, so each lookup failed and emitted repeated findLatestPrForHeadContext and PR lookup failed trace entries.
Fix
Resolve the source-control provider once per PR lookup and return a tagged, non-definitive result before calling listChangeRequests when its kind is unknown. That result starts on the short 20-second cache cadence, then follows the existing exponential backoff while provider detection remains non-definitive, capped at the healthy two-minute PR lookup cadence, and falls back to the last known PR instead of overwriting it. A definitive result clears the streak; known providers keep the existing lookup behavior. Focused regression tests cover repositories without remotes, provider refinement after the first short TTL, preserving backoff across a detection hiccup, and preserving an existing PR badge.
Testing
node_modules/.bin/vp test run apps/server/src/git/GitManager.test.ts (78 passed)
node_modules/.bin/vp lint --report-unused-disable-directives apps/server/src/git/GitManager.ts apps/server/src/git/GitManager.test.ts
node_modules/.bin/vp fmt --check apps/server/src/git/GitManager.ts apps/server/src/git/GitManager.test.ts
node_modules/.bin/vp run --filter t3 typecheck
Model: GPT-5.6 Sol
Harness: Codex in T3 Code
Note Low Risk
Scoped to git status PR metadata caching and lookup gating; behavior for known providers is unchanged aside from clearer outcome tagging.
Overview
Git status no longer calls hosting APIs when the source-control provider is unresolved, avoiding repeated failed listChangeRequests lookups for repos without a recognized remote.
GitManager now models PR lookup results with a PrLookupOutcome (Complete vs ProviderUnknown). When the resolved provider kind is unknown, findLatestPrForHeadContext returns ProviderUnknown immediately instead of hitting gh/similar. lookupStatusPr keeps showing the last known PR on that outcome rather than clearing the badge, and the PR lookup cache treats ProviderUnknown like a non-definitive attempt: short retry cadence with existing failure backoff, capped at the normal healthy lookup interval. Definitive Complete results still use the standard TTL and clear the failure streak.
Tests extend makeManager with a configurable provider kind and add coverage for no-remote repos, provider refinement after backoff, backoff preservation across detection hiccups, and sticky PR display while the provider is temporarily unknown.
Reviewed by Cursor Bugbot for commit c7bc695. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Skip PR lookup API calls for unknown providers in GitManager
- Adds
PrLookupOutcome discriminated union (Complete | ProviderUnknown) so the cache can distinguish a definitive PR result from an unresolved provider state
findLatestPrForHeadContext now returns ProviderUnknown early when provider.kind is "unknown", avoiding any listChangeRequests calls
- Cache TTL for unknown-provider outcomes uses
Duration.min(nextPrLookupFailureTtl, PR_LOOKUP_CACHE_TTL) and does not clear the failure streak; only definitive results reset the streak
lookupStatusPr returns the last known PR (via resolveLastKnownPr) when the provider is unknown, instead of attempting a provider call
- Behavioral Change: the backoff streak in
prLookupCache is no longer cleared on unknown-provider results, so repeated unknown states will continue to increase backoff up to the healthy TTL cap
Macroscope summarized c7bc695.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] and ben-vargas reacted with thumbs up emoji
coderabbitai
Bot
commented
Aug 9, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: ba460634-9444-469a-b4bb-002ccd50ffa9
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Comment @coderabbitai help to get the list of available commands.
|
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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bbb1467018
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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.
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.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit bbb1467. Configure here.
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.
macroscopeapp
Bot
commented
Aug 9, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at c7bc695
Macroscope's review found this PR approvable — This is a focused GitManager bug fix that suppresses guaranteed PR API failures for unknown providers while preserving known behavior and last-known status. The localized production change is supported by targeted regression tests and introduces no schema, security, billing, or deployment impact.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. Breezy!
Reviewed commit: 54e8fc3b5c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9e51853128
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. You're on a roll.
Reviewed commit: 7b1ad6e860
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Would be great to see this fixed, it's annoying seeing these errors for projects without a git remote (i.e. when using t3 more as a cowork agent than on a coding project).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Updated this PR onto the current main branch. The conflict resolution preserves the default-branch cache key and inherited-upstream guard added by #7317 while carrying the unknown-provider outcome through those paths.
Local verification:
vp test run apps/server/src/git/GitManager.test.ts (91 passed)
vp lint --report-unused-disable-directives apps/server/src/git/GitManager.ts apps/server/src/git/GitManager.test.ts
vp fmt --check apps/server/src/git/GitManager.ts apps/server/src/git/GitManager.test.ts
vp run --filter t3 typecheck
|
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:M
30-99 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|