From 6143af13a3a4eb4ea84f545af34ea4d3cf54207b Mon Sep 17 00:00:00 2001 From: KyleBarton Date: Fri, 10 Apr 2026 10:56:48 -0700 Subject: [PATCH] Use stored home_dir in Docker struct, not literal $HOME (#53642) Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Closes #ISSUE Release Notes: - N/A --- crates/remote/src/transport/docker.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/remote/src/transport/docker.rs b/crates/remote/src/transport/docker.rs index 6322cd9193d383cfcd3e9ff5cb93670bcd136023..872d1d460ec82cb3eab2233a0af3161bbf2ec1b2 100644 --- a/crates/remote/src/transport/docker.rs +++ b/crates/remote/src/transport/docker.rs @@ -761,7 +761,8 @@ impl RemoteConnection for DockerExecConnection { const TILDE_PREFIX: &'static str = "~/"; if working_dir.starts_with(TILDE_PREFIX) { let working_dir = working_dir.trim_start_matches("~").trim_start_matches("/"); - parsed_working_dir = Some(format!("$HOME/{working_dir}")); + parsed_working_dir = + Some(format!("{}/{}", self.remote_dir_for_server, working_dir)); } else { parsed_working_dir = Some(working_dir); }