Skip to content

serve: add socket listener mode#27820

Open
thdxr wants to merge 13 commits into
devfrom
serve-socket-mode
Open

serve: add socket listener mode#27820
thdxr wants to merge 13 commits into
devfrom
serve-socket-mode

Conversation

@thdxr
Copy link
Copy Markdown
Member

@thdxr thdxr commented May 16, 2026

Summary

  • Add opencode serve --socket for Unix socket paths and Windows named pipes.
  • Extend Server.listen to accept and return socket while preserving TCP listener behavior.
  • Add listener coverage for serving HTTP over a socket path.

Testing

  • bun typecheck
  • bun test test/server/httpapi-listen.test.ts -t "listens on a socket path"

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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