| … | … | @@ -1805,7 +1837,7 @@ export const make = Effect.gen(function* () { | |
| 1806 | 1838 | headContext.headBranch === details.branch || | |
| 1807 | 1839 | !upstreamHeadIsDefault || | |
| 1808 | - | headContext.isCrossRepository | |
| 1840 | + | isPullRequestWorktreeLocalBranchName(details.branch) | |
🟡 Medium git/GitManager.ts:1840
A fork PR is reported as missing when its local branch uses an ordinary alias, such as review-main tracking contributor/main: this condition skips the cross-repository lookup, and the missing review-main remote ref makes resolveLookupHeadContext return lookup: false without querying the provider. Preserve the cross-repository exemption alongside the synthetic worktree-name check.
🤖 Copy this AI Prompt to have your agent fix this:
| 1 | In file @apps/server/src/git/GitManager.ts around line 1840: |
| 2 | |
| 3 | A fork PR is reported as missing when its local branch uses an ordinary alias, such as `review-main` tracking `contributor/main`: this condition skips the cross-repository lookup, and the missing `review-main` remote ref makes `resolveLookupHeadContext` return `lookup: false` without querying the provider. Preserve the cross-repository exemption alongside the synthetic worktree-name check. |
Fixed in 509c4c0c. The lookup guard now preserves both conditions: cross-repository heads and synthetic t3code/pr-/... worktree branches. I also added a regression test for an ordinary local alias (review-main tracking the forks main) and updated the existing git-command expectation for the new gh-resolved base-remote read.
Sorry, I'm unable to act on this request because you do not have permissions within this repository.