Skip to content

Fix terminal doesn't switch to project directory when opening remote project on Windows#45328

Merged
Veykril merged 1 commit intozed-industries:mainfrom
feeiyu:fix_remote_terminal
Dec 19, 2025
Merged

Fix terminal doesn't switch to project directory when opening remote project on Windows#45328
Veykril merged 1 commit intozed-industries:mainfrom
feeiyu:fix_remote_terminal

Conversation

@feeiyu
Copy link
Contributor

@feeiyu feeiyu commented Dec 19, 2025

Closes #45253

Release Notes:

  • Fixed terminal doesn't switch to project directory when opening remote project on Windows

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 19, 2025
@Veykril Veykril self-assigned this Dec 19, 2025
Comment on lines +1547 to +1552

// The command needs to be executed in a new shell, so it requires quoting again
let exec_after_quote = ssh_shell_kind
.try_quote(&exec)
.context("shell quoting")?
.into();
Copy link
Member

@Veykril Veykril Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem right, the shell builder should already be taking care of this See my comment below

@Veykril
Copy link
Member

Veykril commented Dec 19, 2025

After reading through the linked issue. I thought we rolled back the ssh changes from https://github.com/zed-industries/zed/pull/42382/changes#diff-b99ed7bdf450d3faca488eec030a9bb40e0ed83598b50aa12a6bc1c7e2c41c6e but I guess we did not. I think we just want to undo that part from that PR. Iirc we did not intend to do that.

@feeiyu feeiyu force-pushed the fix_remote_terminal branch from 4fb5e5a to 4a05f7b Compare December 19, 2025 13:30
@feeiyu
Copy link
Contributor Author

feeiyu commented Dec 19, 2025

@Veykril Already undo the ssh part from that PR.

@Veykril Veykril merged commit ea34cc5 into zed-industries:main Dec 19, 2025
23 checks passed
@baldwindavid
Copy link
Contributor

Probably you know now that this is not specific to Windows. I'm on Mac and had the same issue SSH'd into a local Docker container. This fixes it. Thanks!

@Veykril
Copy link
Member

Veykril commented Dec 19, 2025

/cherry-pick preview
/cherry-pick stable

github-actions bot pushed a commit that referenced this pull request Dec 19, 2025
…project on Windows (#45328)

Closes #45253

Release Notes:

- Fixed terminal doesn't switch to project directory when opening remote
project on Windows
@zed-zippy
Copy link
Contributor

zed-zippy bot commented Dec 19, 2025

🍒💥 Cherry-pick did not succeed
https://github.com/zed-industries/zed/actions/runs/20379933524

zed-zippy bot added a commit that referenced this pull request Dec 19, 2025
…project on Windows (#45328) (cherry-pick to preview) (#45390)

Cherry-pick of #45328 to preview

----
Closes #45253

Release Notes:

- Fixed terminal doesn't switch to project directory when opening remote
project on Windows

Co-authored-by: feeiyu <158308373+feeiyu@users.noreply.github.com>
rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
…project on Windows (#45328)

Closes #45253

Release Notes:

- Fixed terminal doesn't switch to project directory when opening remote
project on Windows
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…project on Windows (zed-industries#45328)

Closes zed-industries#45253

Release Notes:

- Fixed terminal doesn't switch to project directory when opening remote
project on Windows
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…project on Windows (zed-industries#45328)

Closes zed-industries#45253

Release Notes:

- Fixed terminal doesn't switch to project directory when opening remote
project on Windows
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Feb 15, 2026
…project on Windows (zed-industries#45328)

Closes zed-industries#45253

Release Notes:

- Fixed terminal doesn't switch to project directory when opening remote
project on Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

Development

Successfully merging this pull request may close these issues.

windows: Terminal doesn't switch to project directory when opening remote project

3 participants