Repository navigation
fix(server): a fork uses the repository gh repo set-default chose - #524
Merged
Merged
Conversation
A checkout with both remotes is identified as upstream, and the repository gh opens pull requests in is only recorded as webUrl. The menu listed upstream, so a number offered the upstream pull request. It now requests that webUrl repository, which the list accepts and nothing else. Grok 4.7 via Cursor Co-authored-by: Cursor <[email protected]>
Typecheck rejected reading the identity after the web URL guard. Grok 4.7 via Cursor Co-authored-by: Cursor <[email protected]>
A project's repository identity always named the `upstream` remote, so in a fork whose `gh repo set-default` is `origin` the pull request list, the `#` menu and branch pull request discovery used upstream. #433 patched `#123` links with a separate `webUrl`, and the previous commits on this branch patched the `#` menu the same way. The identity resolver now picks the remote gh marked (`remote.<name>.gh-resolved base`) before upstream's order, so every consumer sees the fork. The `webUrl` workarounds are reverted. Delegating to another machine matches projects by repository group, which names a fork the same way whichever remote each machine's gh prefers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
In a fork with an
upstreamremote, T3 Code always treated upstream as the project's repository, even aftergh repo set-default origin. Typing#522offeredpingdotgg/t3code#522, the pull request list showed upstream, and the fork's own pull requests were never matched to their threads.The repository resolver now uses the remote
gh repo set-defaultchose, and falls back to the existing order when none is set. Every feature that reads the project's repository follows it: the#menu, the pull request list,#123links, branch pull request discovery, and thread settlement.This replaces the earlier workarounds that stored the fork separately in
webUrl(#433 and this branch's first two commits). The last commit is the whole change againstmain.Delegating a task to another machine now matches projects by repository group, so the same fork still matches when only one machine has the
ghdefault set.Test plan
gh-resolved baseonoriginresolves to the fork (fails onmain)vp run check:changed#522in this checkout, and confirm it offersadampeterhiggins/t3code#522Claude Opus 5.5 via Claude Code
🤖 Generated with Claude Code