Reproduction steps
Running Zed on Linux (Debian) with Fish as my shell.
I think this is triggered by applying a self-update? I've seen it a few times recently.
I get an error in the status bar "Failed to load environment variables"
The Zed.log shows:
2026-01-08T05:23:27-08:00 INFO [auto_update] downloaded update. path:"/tmp/zed-auto-updateWJoB7a/zed.tar.gz"
2026-01-08T05:24:02-08:00 INFO [gpui::platform::blade::blade_renderer] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8Unorm, alpha: PreMultiplied }
2026-01-08T05:24:02-08:00 INFO [zed::zed] Using GPU: GpuSpecs { is_software_emulated: false, device_name: "AMD Ryzen 9 9950X3D 16-Core Processor (RADV RAPHAEL_MENDOCINO)", driver_name: "radv", driver_info: "Mesa 25.3.2-2" }
2026-01-08T05:24:02-08:00 WARN [task::vscode_format] Skipping deserializing of a task `Build Server and Extension` with the unsupported `dependsOn` key
2026-01-08T05:24:02-08:00 WARN [task::vscode_format] Skipping deserializing of a task `Build Server (Release) and Extension` with the unsupported `dependsOn` key
2026-01-08T05:24:02-08:00 ERROR [project::environment] Failed to load shell environment for directory "/home/mbp/src/rust": capturing shell environment with "/usr/bin/fish": login shell exited with exit status: 127. stdout: "Welcome to fish, the friendly interactive shell\nType \u{1b}[32mhelp\u{1b}[m for instructions on how to use fish\n\u{1b}]7;file://amorfati/home/mbp\u{7}\u{1b}]7;file://amorfati/home/mbp/src/rust\u{7}", stderr: "/home/mbp/.local/zed.app/libexec/zed-editor (deleted): command not found\nfish: \nemit fish_prompt;cd '/home/mbp/src/rust';'/home/mbp/.local/zed.app/libexec/zed-editor (deleted)' --printenv >&0\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^\n"
2026-01-08T05:24:02-08:00 ERROR [project::git_store] failed to get working directory environment for repository "/home/mbp/src/rust"
2026-01-08T05:24:04-08:00 ERROR [crates/gpui/src/window.rs:1107] window not found
2026-01-08T05:24:04-08:00 ERROR [crates/gpui/src/window.rs:1119] window not found
2026-01-08T05:24:04-08:00 INFO [project::lsp_store] Worktree "/home/mbp/src/adventofcode" is trusted, starting language server rust-analyzer
There are some other bugs about "failed to load environment variables" (#45798, #35759), perhaps this is distinct in occurring after a self-update.
/home/mbp/.local/zed.app/libexec/zed-editor (deleted): command not found
I guess, after applying the update Zed is looking at /proc/self/exe which contains the suffix (deleted), and using that to try to reinvoke itself.
Current vs. Expected behavior
No error after restarting.
Zed version and system specs
Zed: v0.218.6+stable.114.e8b0ac131bc2bf80056f3769317ef57ebf32d0d1 (Zed)
OS: Linux Wayland debian unknown
Memory: 123.4 GiB
Architecture: x86_64
GPU: AMD Ryzen 9 9950X3D 16-Core Processor (RADV RAPHAEL_MENDOCINO) || radv || Mesa 25.3.2-2
Attach Zed log file
Zed.log
2026-01-08T05:30:51-08:00 INFO [gpui::platform::linux::platform] Restarting process, using app path: "/home/mbp/.local/zed.app/libexec/zed-editor"
2026-01-08T05:30:51-08:00 INFO [zed] ========== starting zed version 0.218.6+stable.114.e8b0ac131bc2bf80056f3769317ef57ebf32d0d1, sha e8b0ac1 ==========
2026-01-08T05:30:51-08:00 INFO [crashes] spawning crash handler process
2026-01-08T05:30:52-08:00 INFO [util] set environment variables from shell:/usr/bin/fish, path:/home/mbp/.local/bin:/home/mbp/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/usr/local/games:/usr/games
2026-01-08T05:30:52-08:00 INFO [extension_host] extensions updated. loading 3, reloading 0, unloading 0
2026-01-08T05:30:52-08:00 INFO [gpui::platform::linux::platform] activate is not implemented on Linux, ignoring the call
2026-01-08T05:30:52-08:00 INFO [auto_update] Auto Update: checking for updates
2026-01-08T05:30:52-08:00 INFO [gpui::platform::blade::blade_renderer] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8Unorm, alpha: PreMultiplied }
2026-01-08T05:30:52-08:00 INFO [workspace] Rendered first frame
2026-01-08T05:30:52-08:00 INFO [zed::zed] Using GPU: GpuSpecs { is_software_emulated: false, device_name: "AMD Ryzen 9 9950X3D 16-Core Processor (RADV RAPHAEL_MENDOCINO)", driver_name: "radv", driver_info: "Mesa 25.3.2-2" }
2026-01-08T05:30:52-08:00 INFO [client] set status on client 0: Authenticating
2026-01-08T05:30:52-08:00 INFO [crashes] connected to crash handler process after 100ms
2026-01-08T05:30:52-08:00 INFO [crashes] crash handler registered
2026-01-08T05:30:52-08:00 WARN [task::vscode_format] Skipping deserializing of a task `Build Server and Extension` with the unsupported `dependsOn` key
2026-01-08T05:30:52-08:00 WARN [task::vscode_format] Skipping deserializing of a task `Build Server (Release) and Extension` with the unsupported `dependsOn` key
2026-01-08T05:30:52-08:00 INFO [client] set status on client 50359: Authenticated
2026-01-08T05:30:53-08:00 ERROR [crates/language_models/src/provider/cloud.rs:131] failed to fetch Zed models
Caused by:
Failed to create LLM token.
Status: 500
Body: {"message":"An internal server error occurred."}
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
Reproduction steps
Running Zed on Linux (Debian) with Fish as my shell.
I think this is triggered by applying a self-update? I've seen it a few times recently.
I get an error in the status bar "Failed to load environment variables"
The Zed.log shows:
There are some other bugs about "failed to load environment variables" (#45798, #35759), perhaps this is distinct in occurring after a self-update.
I guess, after applying the update Zed is looking at
/proc/self/exewhich contains the suffix(deleted), and using that to try to reinvoke itself.Current vs. Expected behavior
No error after restarting.
Zed version and system specs
Zed: v0.218.6+stable.114.e8b0ac131bc2bf80056f3769317ef57ebf32d0d1 (Zed)
OS: Linux Wayland debian unknown
Memory: 123.4 GiB
Architecture: x86_64
GPU: AMD Ryzen 9 9950X3D 16-Core Processor (RADV RAPHAEL_MENDOCINO) || radv || Mesa 25.3.2-2
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