opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(server): add unix domain socket support

Open dan-myles opened this issue 3 months ago • 2 comments

  • 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: https://github.com/sst/opencode/issues/2119

dan-myles avatar Aug 20 '25 18:08 dan-myles

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?

sollidsnake avatar Aug 28 '25 17:08 sollidsnake

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

dan-myles avatar Aug 28 '25 17:08 dan-myles