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): identify clones by origin, not upstream by shubhxho · Pull Request #7686 · pingdotgg/t3code

Conversation

@shubhxho

@shubhxho shubhxho commented Aug 20, 2026 •
edited by cursor Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Repository identity preferred the upstream remote over origin. A renamed fork with upstream pointing at the original repo showed up under the original's name, so you couldn't tell them apart in the sidebar.

Origin is this clone. Use that first.

Fixes #4880


Note

Medium Risk
Changes how repository identity keys and display names are derived for clones that have both origin and upstream remotes; existing sidebar grouping/keys may shift for those repos.

Overview
Repository identity now prefers origin over upstream when both remotes exist, so a clone is identified as this repo rather than the original.

That fixes renamed forks showing up under the upstream name in the sidebar. Tests assert origin-based canonicalKey/displayName, including a renamed-fork case.

Repos that already had both remotes may get a new identity key after this change.

Reviewed by Cursor Bugbot for commit 9d05273. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Prefer origin over upstream in pickPrimaryRemote for repo identity

The resolver now selects origin as the primary remote when both origin and upstream are configured, instead of choosing upstream first. Tests in RepositoryIdentityResolver.test.ts are updated to assert identity derives from origin, including a new case for a renamed fork.

  • Behavioral Change: repos with both origin and upstream remotes will now resolve to the origin identity rather than upstream; existing identity keys may change for affected repositories.

Macroscope summarized 9d05273.

Sorry, something went wrong.

Uh oh!

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

All reactions
@shubhxho
fix(server): identify clones by origin, not upstream
3a1f210
We preferred the upstream remote, so a renamed fork looked identical to the original repo in the sidebar.

Fixes pingdotgg#4880
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 20, 2026

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Aug 20, 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: dfca3081-100b-4ff6-9903-656f119c1fb5

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

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

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 vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Aug 20, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Aug 20, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 3a1f210

Macroscope's review found this PR approvable — This PR makes a targeted one-line change to prefer 'origin' over 'upstream' when identifying cloned repositories. The change is well-tested with updated and new test cases, has clear intent as a bug fix, and is self-contained with minimal risk.

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.

@shubhxho
Merge branch 'main' into fix/prefer-origin-for-repo-identity
9d05273
@t3dotgg

t3dotgg commented Aug 27, 2026

Copy link
Copy Markdown
Member

Note

🤖 GPT-5.6 Sol responding on behalf of Theo

We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together.

Closing this global repository-identity change. It fixes a fork label by reversing origin and upstream precedence for every identity consumer, including project grouping. The display problem is valid, but a sidebar name should not silently redefine canonical repository identity. Keep the fork-name reproduction for a narrower fix.

If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed. If GitHub does not let you reopen it, leave a comment here and we'll take another look.

All reactions

Sorry, something went wrong.

Uh oh!

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

@t3dotgg t3dotgg closed this Aug 27, 2026
@juliusmarminge juliusmarminge mentioned this pull request Sep 5, 2026
[Bug]: the name of forks are the same title as the upstream repo #4880
Closed
2 tasks done
@Project516 Project516 mentioned this pull request Sep 9, 2026
fix(server): keep forks separate from their upstream repository in project grouping #11011
Closed
2 of 4 tasks
@Project516 Project516 mentioned this pull request Oct 1, 2026
fix(server): keep forks separate from their upstream repository in project grouping #14639
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@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:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: the name of forks are the same title as the upstream repo

Uh oh!

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

2 participants

@shubhxho @t3dotgg
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.