[BUG] Desktop SSH sessions: diff stats/pane never show remote edits; chat diff links fail to load (still reproduces after #51331)
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet (closest match #51331 was closed as not planned/stale; #73338 is a different file-path regression)
- [x] This is a single bug report
- [x] I am using the latest version of Claude Code
What's Wrong?
In Claude Desktop SSH sessions, none of the code-change UI surfaces work, even for edits made inside the session's own working folder:
- No diff-stats indicator (
+N −M) ever appears after Claude edits files - The diff pane (Cmd+Shift+D) shows no changes
- Clicking a diff/file link in the chat fails to load the file
The edits themselves are real: on the remote host, git status shows the modification (e.g. M DESKTOP_DIFF_TEST.md, +2 −1) and the file contents are correct. Only the Desktop client's rendering of them is broken.
This is the same symptom set as #51331, which was closed as stale without a fix. It still reproduces on current versions, on two independent client→server pairs:
- macOS Desktop → Ubuntu-based Linux workstation (SSH)
- Windows Desktop → separate personal Linux server (SSH)
What Should Happen?
Per the docs (https://code.claude.com/docs/en/desktop), the file pane is "available in local and SSH sessions", and the diff view/stats indicator should appear when Claude changes files. SSH sessions should show diffs like local sessions do.
Steps to Reproduce
- Claude Desktop → Code tab → new SSH session to a Linux remote.
- Ask Claude to modify an existing tracked file inside the session's working directory (we tested both a brand-new file and a tracked-file modification producing a
+2 −1diff). - Observe: no diff-stats indicator appears; Cmd+Shift+D shows no changes; clicking the file/diff reference in chat fails to load.
- On the remote host,
git status/git diffconfirm the change exists.
Claude Code Version
Remote host: 2.1.191 (Claude Code). Desktop clients: latest available as of 2026-07-14, on both macOS and Windows.
Is this a regression?
I don't know (per #51331 this has been broken for SSH sessions for some time).
Platform
Anthropic API
Operating System
Client: macOS (also reproduced from Windows). Remote: Ubuntu-based Linux.
Terminal/Shell
Claude Desktop app (SSH session)
Additional Information
- Related: #51331 (identical symptoms, closed as not planned/stale), #73338 (different: local file-path regression).
- Local sessions on the same machines show diffs fine — this is specific to SSH sessions.
- PR status bar also never appears in the SSH session. Caveat for triage: in our repro the PR was opened via the
ghCLI from a different checkout/branch than the session's worktree branch, so if the CI status bar only attaches to PRs on the session's own branch, this part may be expected behavior rather than a bug — but if it's meant to surface any PR opened during the session (docs: "After you open a pull request, a CI status bar appears in the session"), it doesn't.ghis installed and authenticated on the remote host.