Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

The regression was introduced in 7087ef4 when adding Local/Worktree/SSH distinction. The onChange handler for runtime selection was changed from:

mode === LOCAL ? '' : props.sshHost

to:

mode === SSH ? props.sshHost : ''

This cleared the SSH host when switching away from SSH mode, losing the user's configured host when switching back.

Fix

The SSH host is now stored in a separate localStorage key (lastSshHost:{projectPath}) that persists independently of the runtime mode. This ensures the SSH host is remembered when switching runtime modes:

  • SSH → Local → SSH
  • SSH → Worktree → SSH

Testing

  • Existing tests pass
  • All static checks pass

Generated with mux

The regression was introduced in 7087ef4 when adding Local/Worktree/SSH
distinction. The onChange handler for runtime selection was changed from:
  mode === LOCAL ? '' : props.sshHost
to:
  mode === SSH ? props.sshHost : ''

This cleared the SSH host when switching away from SSH mode, losing the
user's configured host when switching back.

The fix stores the SSH host in a separate localStorage key (lastSshHost)
that persists independently of the runtime mode. This ensures the SSH
host is remembered when:
1. Switching from SSH → Local → SSH
2. Switching from SSH → Worktree → SSH

_Generated with `mux`_
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@ammario ammario merged commit d3cc283 into main Dec 2, 2025
13 checks passed
@ammario ammario deleted the fix-ssh-host-regression branch December 2, 2025 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants