# terminal_view: Prevent local path resolution for remote terminals \(\#50268\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8f684fcb95dcce267aeba9d53d4cf9ecdd06dcd3)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8f684fcb95dcce267aeba9d53d4cf9ecdd06dcd3

Requested commit: 8f684fcb95dcce267aeba9d53d4cf9ecdd06dcd3

Commit: 8f684fcb95dcce267aeba9d53d4cf9ecdd06dcd3

Tree: 6b51d8c7456442a268c36a319ad4fd2b26e03450

Author: Kunall Banerjee

Committer: GitHub

## Message

```
terminal_view: Prevent local path resolution for remote terminals (#50268)

When opening a terminal in a remote project, skip local-only path
operations (home dir fallback, shell expansion, is_dir checks) so the
remote shell opens in the remote user’s home directory by default.

Closes #49613.

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Prevent local path resolution for remote terminals
```

## Parents

- [0ae6b4c61a4acc58c292a96d9d4b1e3ebe4b78b6](https://git.cafe/gitcafe/zed/commit/0ae6b4c61a4acc58c292a96d9d4b1e3ebe4b78b6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8f684fcb95dcce267aeba9d53d4cf9ecdd06dcd3?format=markdown)
