| … | … | @@ -653,7 +664,9 @@ export const make = Effect.gen(function* () { | |
| 654 | 665 | remoteName, | |
| 655 | 666 | remoteUrl, | |
| 656 | - | ...(filter.host !== undefined && isSshRemoteUrl(remoteUrl) | |
| 667 | + | ...(filter.host !== undefined && | |
🟠 High pullRequest/PullRequestService.ts:667
A host-filtered inbox drops GitHub SSH aliases such as git@github-work:owner/repo.git, even though the checkout appears in the unfiltered inbox. These aliases are detected as unknown, so this branch passes requestedHost; resolveHandle then skips SSH alias resolution and the later host comparison rejects the checkout. Resolve the SSH alias before deciding whether to pass requestedHost.
🤖 Copy this AI Prompt to have your agent fix this:
| 1 | In file @apps/server/src/pullRequest/PullRequestService.ts around line 667: |
| 2 | |
| 3 | A host-filtered inbox drops GitHub SSH aliases such as `git@github-work:owner/repo.git`, even though the checkout appears in the unfiltered inbox. These aliases are detected as `unknown`, so this branch passes `requestedHost`; `resolveHandle` then skips SSH alias resolution and the later host comparison rejects the checkout. Resolve the SSH alias before deciding whether to pass `requestedHost`. |
eed63bdOpen thread🟠 High
For a same-repository PR, checkout can fetch the fork’s branch and sync the local branch to the wrong commit when the upstream remote uses an SSH alias. resolveRepository resolves aliases, but remoteFor compares the raw alias host with base.host, misses the upstream remote, and falls back to resolvePrimaryRemoteName, which prefers origin; resolve aliases in checkout’s remote matching while retaining each remote’s name.
🤖 Copy this AI Prompt to have your agent fix this:
| 1 | In file @packages/source-control-github/src/server/GitHubSourceControlProvider.ts around line 744: |
| 2 | |
| 3 | For a same-repository PR, checkout can fetch the fork’s branch and sync the local branch to the wrong commit when the upstream remote uses an SSH alias. `resolveRepository` resolves aliases, but `remoteFor` compares the raw alias host with `base.host`, misses the upstream remote, and falls back to `resolvePrimaryRemoteName`, which prefers `origin`; resolve aliases in checkout’s remote matching while retaining each remote’s name. |