Skip to content

fix(core): prefer websocket with request hooks - #43234

Merged
nexxeln merged 4 commits into
v2from
websocket-headers
Aug 18, 2026
Merged

nexxeln merged 4 commits into
v2from
websocket-headers

Conversation

@nexxeln

@nexxeln nexxeln commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add narrow transport-neutral Session model request hooks for endpoint and header changes
  • scope model-aware hooks by provider so GitHub Copilot HTTP middleware does not disable OpenAI WebSockets
  • preserve ChatGPT OAuth headers and Codex endpoint rewriting across HTTP and WebSocket
  • verify WebSocket selection with the built-in OpenAI and GitHub Copilot hooks enabled
  • keep the experimental WebSocket flag disabled by default

Testing

  • Plugin typecheck and build
  • Core typecheck and build
  • Provider, Promise adapter, and Session generation tests
  • WebSocket selection and HTTP-hook policy tests
  • 28 Session WebSocket manager and local-server tests
  • Workspace typecheck

@nexxeln
nexxeln merged commit cb39ea1 into v2 Aug 18, 2026
7 of 8 checks passed
@nexxeln
nexxeln deleted the websocket-headers branch August 18, 2026 20:51
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
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