Skip to content

Support multiple Zed instances with port range#1

Open
antont wants to merge 1 commit intoEtanHey:mainfrom
antont:fix/multi-instance-port-range
Open

Support multiple Zed instances with port range#1
antont wants to merge 1 commit intoEtanHey:mainfrom
antont:fix/multi-instance-port-range

Conversation

@antont
Copy link

@antont antont commented Mar 8, 2026

Summary

  • Replace hardcoded default WebSocket port (59792) with auto-selection from range 59790-59799
  • Each Zed instance gets the first available port, allowing up to 10 simultaneous instances
  • Previously, a second instance would fail to bind and destroy the first instance's lock file

Test plan

  • Tested with two Zed instances running simultaneously — each gets its own port and lock file
  • Claude Code CLI /ide command discovers both instances
  • cargo build compiles cleanly

🤖 Generated with Claude Code

Instead of a hardcoded default port (59792), auto-select the first
available port from range 59790-59799. This allows up to 10 Zed
instances to run simultaneously, each with its own WebSocket server
and lock file.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant