[BUG] PR badge and statusline `pr` field never appear for GHE.com SSH remotes with a non-"git" SSH user
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
On a repository hosted on a GitHub Enterprise Cloud with data residency tenant (*.ghe.com), Claude Code never
shows the footer PR badge, and the statusline JSON never contains the pr field, even on a branch with an
open PR.
The origin remote is the SSH URL GitHub gives for this tenant: <tenant>@<tenant>.ghe.com:<org>/<repo>.git.
On GHE.com the SSH user must be the tenant name: ssh -T <tenant>@<tenant>.ghe.com authenticates, whilessh -T git@<tenant>.ghe.com is rejected with "Permission denied (publickey)". So the remote cannot be
changed to the usual git@ form.
Claude Code fails to parse this remote ("Parsed repository: null") and treats the directory as not being a
GitHub repository, so the PR status check never runs. GH_HOST=<tenant>.ghe.com is set (via settings.json env)
and gh auth status shows an active login for that host, yet there is not even the
"gh auth login for PR status" hint the docs describe for a GH_HOST host without a token.
What Should Happen?
scp-style SSH remotes with any user (user@host:owner/repo.git) should be parsed, not only git@host:owner/repo.git.
Claude Code should then detect the open PR on the *.ghe.com host, show the PR badge in the footer, and populate
the statusline pr field.
Error Messages/Logs
[DEBUG] Git remote URL: <tenant>@<tenant>.ghe.com:<org>/<repo>.git
[DEBUG] Parsed repository: null from URL: <tenant>@<tenant>.ghe.com:<org>/<repo>.git
[DEBUG] Not in a GitHub repository, skipping path mapping update
Steps to Reproduce
- Clone a repository from a *.ghe.com tenant over SSH using the URL GitHub provides:
git clone <tenant>@<tenant>.ghe.com:<org>/<repo>.git
- Authenticate gh for the host: gh auth login --hostname <tenant>.ghe.com
- Set GH_HOST=<tenant>.ghe.com (e.g. in ~/.claude/settings.json under "env").
- Check out a branch that has an open pull request.
- Start
claude --debugin the repository and send a prompt. - Observe: no PR badge in the footer, no
prfield in the statusline JSON, and the debug log shows
"Parsed repository: null".
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.285 (Claude Code)
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_