Skip to content

Zed CLI fails silently when opening symlinked files with existing instance #45442

@ichoosetoaccept

Description

@ichoosetoaccept

Reproduction steps

Version: Zed 0.218.3+preview.104 (macOS)

  1. Ensure Zed Preview is already running
  2. Run zed ~/.aliases.zsh where ~/.aliases.zsh is a symlink to another file
  3. Observe Zed icon briefly appears in dock then immediately closes

Current vs. Expected behavior

Expected behavior:
File should open in the existing Zed instance (symlink should be resolved automatically)

Actual behavior:

  • CLI detects existing instance and logs "zed is already running"
  • Instead of sending the file to the existing instance, the process exits
  • Application briefly appears and disappears from dock

Workarounds:

  • Use zed $(readlink -f <file>) to resolve symlink first
  • Use open -a "Zed Preview" <file> instead of CLI

Note: This appears to be a combination of two issues:

  1. Symlink resolution failing in the CLI
  2. Single-instance communication not working properly when symlinks are involved

Zed version and system specs

Zed: 0.218.3+preview.104
OS: macOS 26.2
Memory: 96GB
Architecture: aarch64

Attach Zed log file

N/A - This is not a crash, but a silent failure when using CLI with symlinks.

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

Labels

area:cliCommand-line interface feedbackarea:editorFeedback for code editing, formatting, editor iterations, etcfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P2Average run-of-the-mill bugsstate:needs infoIssue that needs more information from the userstate:needs reproNeeds reproduction steps / someone to reproduce

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions