GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): skip PR lookup for unknown providers by Lucenx9 · Pull Request #5831 · pingdotgg/t3code

Conversation

@Lucenx9

@Lucenx9 Lucenx9 commented Aug 9, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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
All reactions
  • 👍 2 reactions
@Lucenx9
fix(server): skip PR lookup for unknown providers
bbb1467
@coderabbitai

coderabbitai Bot commented Aug 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list. labels Aug 9, 2026
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Aug 9, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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.

All reactions
Comment thread apps/server/src/git/GitManager.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Aug 9, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Fix All in Cursor

❌ 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.

All reactions
Comment thread apps/server/src/git/GitManager.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@macroscopeapp

macroscopeapp Bot commented Aug 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Lucenx9
fix(server): preserve PR state during provider detection
54e8fc3
@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). and removed size:XS 0-9 changed lines (additions + deletions). labels Aug 9, 2026
@Lucenx9

Lucenx9 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 9, 2026

Copy link
Copy Markdown

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".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Lucenx9
fix(server): preserve PR lookup backoff
9e51853
@Lucenx9

Lucenx9 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Aug 9, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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.

All reactions
Comment thread apps/server/src/git/GitManager.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Lucenx9
fix(server): cap unknown provider retry backoff
7b1ad6e
@Lucenx9

Lucenx9 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 9, 2026

Copy link
Copy Markdown

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".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Aug 9, 2026
View reviewed changes
@Lucenx9 Lucenx9 closed this Aug 14, 2026
@ben-vargas

ben-vargas commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

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).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Lucenx9 Lucenx9 reopened this Aug 26, 2026
@Lucenx9 Lucenx9 closed this Aug 26, 2026
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. and removed vouch:unvouched Author is not yet trusted in the VOUCHED list. labels Aug 26, 2026
@Lucenx9
chore: merge upstream main into PR branch
c7bc695
@Lucenx9 Lucenx9 reopened this Aug 27, 2026
@macroscopeapp
macroscopeapp Bot dismissed their stale review August 27, 2026 03:15

Dismissing prior approval to re-evaluate c7bc695

@github-actions github-actions Bot added size:L 100-499 changed lines (additions + deletions). and removed size:M 30-99 changed lines (additions + deletions). labels Aug 27, 2026
@Lucenx9

Lucenx9 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

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
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot approved these changes Aug 27, 2026
View reviewed changes
@Lucenx9 Lucenx9 closed this Aug 27, 2026
@Lucenx9 Lucenx9 reopened this Aug 27, 2026
@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). and removed size:L 100-499 changed lines (additions + deletions). labels Aug 27, 2026
@Lucenx9 Lucenx9 closed this Aug 29, 2026
@mikesulsenti mikesulsenti mentioned this pull request Sep 2, 2026
Unknown-provider PR polling still floods server logs; closed PR #5831 had a tested fix #9170
Closed
@AdEx-Partners-DE AdEx-Partners-DE mentioned this pull request Oct 13, 2026
fix(server): a repository on an unrecognized host no longer fails every PR status lookup #19030
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@cursor cursor[bot] cursor[bot] left review comments
@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

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.

Projects

None yet

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.

2 participants

@Lucenx9 @ben-vargas
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.