Repository navigation
Description
Operating system
Windows
Orca version
v1.4.141.0
Details
Short summary
Claude account switching works correctly for local projects, but it does not work for projects opened through Remote SSH.
In a Remote SSH project, newly opened Claude tabs always use the remote system default Claude account, regardless of which account is selected in Orca's status bar.
Environment
- Local OS: Windows 11
- Orca version: v1.4.141.0
- Connection type: Remote SSH
- Two Claude accounts are registered in Orca
The account selector shows three options:
- System Default
- Account A
- Account B
The current system default Claude account on the remote host is Account A.
Case 1: Local project — works correctly
- Select Open Local Project.
- Select Account A from the account selector in the status bar.
- Open a new tab and start Claude.
- Claude starts with Account A active.
- Select Account B from the account selector in the status bar.
- Open another new tab and start Claude.
- Claude starts with Account B active.
Account switching works as expected in the local environment.
Case 2: Remote SSH project — does not work
- Select Add Project → Remote Host.
- Connect to the remote host and open a remote project.
- Select Account A from the account selector in the status bar.
- Open a new tab and start Claude.
- Claude starts with the remote system default account, which is currently Account A.
- Select Account B from the account selector in the status bar.
- Open another new tab and start Claude.
- Claude still starts with the remote system default account, Account A.
The account selected in Orca's status bar is not applied to Claude sessions created in the Remote SSH environment.
Expected behavior
When Account B is selected in Orca's status bar, a new Claude tab opened in a Remote SSH project should start with Account B, just as it does in a local project.
Alternatively, if account switching is not supported for Remote SSH projects, the account selector should indicate that limitation instead of appearing to switch accounts successfully.
Actual behavior
In Remote SSH projects, all new Claude sessions use the Claude account already authenticated as the remote system default.
Changing the selected account in Orca's status bar has no effect on the account used by the remote Claude session.
Additional information
This appears similar to issue #7973, but the issue is still reproducible in Orca v1.4.141.0 when using the Remote SSH project workflow.
Activity
OrcaWin commentedon Jul 17, 2026
Agent reproduction package (Windows orchestration 2026-07-16)
Host context: Windows 11 / Orca 1.4.143.0 / repo path used:
docs/bug-reproductions/Labels applied: see issue labels (
has_reproorcannot_repro).Security: Do not run user-uploaded binaries from issue attachments. Recreate fixtures from the steps/scripts below.
Issue 8795 — Claude account switching does not work in Remote SSH projects
Status:
needs_setupHost: Windows 11, Orca 1.4.143
Label: none
Summary
Reporter: Claude account selector works for local projects but Remote SSH sessions always start with the remote system-default Claude account (Account A), ignoring Account B selected in the status bar.
Environment gates (this host)
orca environment list→ empty; no~/.ssh/config)C:\Users\neil\.local\bin\claude.exe2.1.211Source notes
claudeAccounts:list|select(src/main/ipc/claude-accounts.ts,ClaudeAccountService)CLAUDE_CONFIG_DIR/ managed auth paths (src/main/rate-limits/claude-fetcher.ts,src/main/daemon/pty-subprocess.ts)Repro needs (another agent)
Evidence
docs/bug-reproductions/issues/8795.jsondocs/bug-reproductions/evidence/env-list.json(empty environments)docs/bug-reproductions/evidence/project-list.json(local github:stablyai/orca only)Why blocked
Cannot exercise Remote SSH Claude launch path without a paired remote and multi-account credentials.
How another agent should use this
%LOCALAPPDATA%\Programs\orca).--json, screenshots, logs) under a local folder; optionally comment results back here.cannot_repro/ needs_setup, satisfy the listed prerequisites first, then re-attempt and flip labels: removecannot_repro, addhas_reprowhen conclusive.choihjin commentedon Jul 23, 2026
Reproduced on macOS (recent build), so this is not Windows-specific.
Repro: switch the selected Claude account in the desktop app → open a new Claude tab in an SSH worktree → the session authenticates as the remote host's default
~/.claudeaccount, not the selected one. (Already-running sessions keeping their auth is expected; new tabs picking the wrong account is the bug.)Why (from source): account selection is applied as a managed
CLAUDE_CONFIG_DIRby the local PTY provider only —local-pty-provider.tseven forwards it through WSLENV for managed WSL. The SSH spawn path (ssh-pty-spawn-env.ts) has no Claude-account handling at all, so the selection never reaches remote spawns and the remote CLI falls back to the host's default config dir. Same shape as the Codex-side #8711.Happy to contribute the Claude-side implementation once the Codex remote-account/home pattern you're landing settles — if there's a direction you'd bless for Claude (managed remote config dirs vs something else), I'd take it up.
OrcaWin commentedon Oct 11, 2026
Update after the SSH relay was retired (#27214, #27215): SSH terminals now start inside the host's managed Orca server rather than through the desktop's PTY provider. The symptom still applies. The status-bar switcher targets this computer (or a paired server), so a new Claude tab in an SSH workspace still uses the host's default
~/.claudeaccount.AmoabaKelvin commentedon Nov 17, 2026
This is fixed on main and shipped in v1.4.261: SSH workspaces now run on the host's managed server, and the Claude account switcher selects and adds accounts on that host (#27687, #31461).
Please update to the latest Orca and try again. If you still see it, comment here and we'll reopen.