Skip to content

Conversation

dan-myles
Copy link

  • Add --unix option to serve and tui commands
  • Update Server.listen() to accept unix socket path
  • Unix socket overrides port/hostname when specified
  • Enables parallel testing with isolated instances

Fixes issue where multiple opencode instances needed unique socket addresses for parallel testing. Unix sockets provide deterministic addresses without port conflicts. Addresses: #2119

- Add --unix option to serve and tui commands
- Update Server.listen() to accept unix socket path
- Unix socket overrides port/hostname when specified
- Enables parallel testing with isolated instances

Fixes issue where multiple opencode instances needed unique
socket addresses for parallel testing. Unix sockets provide
deterministic addresses without port conflicts.
@dan-myles dan-myles force-pushed the feature/unix-socket-support-clean branch from 0dca094 to bde754b Compare August 20, 2025 19:17
@sollidsnake
Copy link

Is it possible to use this socket to stream to a client in real time the text being generated in the opencode in real time?

@dan-myles
Copy link
Author

Is it possible to use this socket to stream to a client in real time the text being generated in the opencode in real time?

yes, however this is also possible with SSE & the current client server arch that opencode has

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.

3 participants