Skip to content

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

@feeiyu

Description

@feeiyu

Reproduction steps

When opening a remote project in Zed editor and then launching the terminal, the working directory remains at ~ instead of automatically switching to the project directory. This requires manual navigation to the project folder each time.

Steps to Reproduce:

  • Open a remote project in Zed
  • Open the terminal
  • Observe that the current directory is still ~ instead of the project directory

Current vs. Expected behavior

Expected Behavior: The terminal should automatically switch to the project directory when opened in a remote project, similar to how local projects behave.
Actual Behavior: The terminal opens in the home directory (~) regardless of which remote project is currently open.
Impact:
This creates inconvenience and reduces workflow efficiency, as users need to manually navigate to their project directory every time they open a terminal in a remote project.

Zed version and system specs

Zed: v0.219.0+nightly.2021.af3902a33f86d6d7d030a1167f6151912a697c11 (Zed Nightly af3902a)
OS: Windows 10.0.26200
Memory: 31.4 GiB
Architecture: x86_64
GPU: Intel(R) Arc(TM) 140T GPU (16GB) || Intel Corporation || 32.0.101.7026

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    frequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageplatform:remoteRemote development, SSH and zed-remote-serverplatform:windowshappens only on Windows, not other OSpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:needs reproNeeds reproduction steps / someone to reproduce

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions