Skip to content

fix: reuse current window for SSH connections instead of opening new one#496

Merged
j4rviscmd merged 1 commit into
mainfrom
fix/ssh-reuse-window
May 9, 2026
Merged

fix: reuse current window for SSH connections instead of opening new one#496
j4rviscmd merged 1 commit into
mainfrom
fix/ssh-reuse-window

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

  • SSH remote connection now reuses the current window by default (page navigation), matching VS Code's QuickOpen behavior where Enter reuses the window
  • Ctrl+click or forceNewWindow option still opens a new window as before
  • Fixed session restore for SSH windows: decodeURIComponent() was missing when extracting the remote authority from vscode-remote:// URIs, causing the app to hang on "Opening Remote..." after restart
  • Changed handleExpectedShutdown visibility from private to protected in BrowserHostService to allow TauriHostService to flush state before navigation

Test plan

  • SSH connection reuses current window (normal selection)
  • SSH connection opens new window (Ctrl+click)
  • Session restore works for SSH windows after app restart
  • Local workspace behavior unchanged
  • TypeScript compilation passes (compile-check-ts-native)
  • Rust build passes (cargo build)

🤖 Generated with Claude Code

When connecting to a remote workspace via SSH, the default behavior now
navigates the current window to the new workspace (matching VS Code's
QuickOpen behavior where Enter reuses the window). A new window is only
opened when explicitly requested (Ctrl+click or forceNewWindow option).

Also fixes session restore for SSH windows by adding decodeURIComponent()
when extracting the remote authority from vscode-remote:// URIs. The
percent-encoded authority (e.g. ssh-remote%2Braspi) was not being decoded,
causing the remote connection to hang on "Opening Remote...".

Changes handleExpectedShutdown visibility from private to protected in
BrowserHostService so TauriHostService can call it before navigation.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@j4rviscmd j4rviscmd added bug Something isn't working tauri Tauri 2.0 移行関連 labels May 9, 2026
@j4rviscmd j4rviscmd merged commit 05fc0eb into main May 9, 2026
7 checks passed
@j4rviscmd j4rviscmd deleted the fix/ssh-reuse-window branch May 9, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working tauri Tauri 2.0 移行関連

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant