[BUG] SSH remote sessions disconnect immediately — Epoch mismatch 409 loop regression since 1.1.9493
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?
Environment:
- Claude Desktop for Mac: 1.1.9493 (b58a0b) — 2026-03-29
- macOS Apple Silicon
- Multiple remote servers affected (VPS/dedicated), all using SSH key authentication
- All servers worked correctly before this version
What's wrong:
After updating to 1.1.9493, SSH remote sessions in the Code tab connect for less than a second and immediately disconnect. The session shows "Disconnected" right after connecting. The issue affects every single remote server previously working.
What still works:
- SSH from terminal ✅
- SSH from VS Code Remote-SSH ✅
claudeCLI directly on the remote server ✅
What does NOT work:
- SSH remote sessions from Claude Desktop Code tab ❌
Related Issues:
- #40186 — same Epoch mismatch 409 pattern, same regression
- #38850 — same area:desktop regression, silent session close
What Should Happen?
Claude Desktop should maintain SSH remote sessions as it did before updating to 1.1.9493. Sessions should connect and stay connected without triggering the Epoch mismatch 409 loop.
Error Messages/Logs
[error] [transport:ccr] Epoch mismatch (409), invoking onEpochMismatch handler
[info] [transport:bridge] epoch superseded (409) — closing for poll-loop recovery
[info] [sessions-bridge] Transport permanently closed — code=4090
[info] [sessions-bridge] Reconnecting transport (attempt 1/6)
[info] [sessions-bridge] Reconnecting transport (attempt 2/6)
...
[info] [sessions-bridge] Reconnecting transport (attempt 6/6)
(gives up after 6 attempts)
Steps to Reproduce
- Open Claude Desktop (macOS) version 1.1.9493
- Go to Code tab → New SSH session
- Enter any remote server credentials (SSH key auth)
- Observe: session connects for <1 second then immediately disconnects
- Check ~/Library/Logs/Claude/main.log — shows Epoch mismatch 409 loop repeating 6 times
Note: Happens with every remote server. SSH from terminal and VS Code Remote-SSH works fine on the same servers.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
1.1.9310 (approx. 2026-03-22, before the update of ~2026-03-23/24)
Claude Code Version
1.1.9493 (b58a0b) — Claude Desktop for Mac
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
This issue affects multiple paid subscribers (Claude Max plan). Rollback via Time Machine was attempted but the app auto-updates on launch, making version pinning impossible. DISABLE_AUTOUPDATER=1 and claude config set -g autoUpdates disabled (returns unknown option '-g' error) did not prevent the update. A hotfix or ability to pin to a previous version would be greatly appreciated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗