Skip to content

feat(opencode): add OpenAI WebSocket transport with incremental follow-up handling#15038

Open
nick-potts wants to merge 5 commits intoanomalyco:devfrom
nick-potts:dev
Open

feat(opencode): add OpenAI WebSocket transport with incremental follow-up handling#15038
nick-potts wants to merge 5 commits intoanomalyco:devfrom
nick-potts:dev

Conversation

@nick-potts
Copy link

@nick-potts nick-potts commented Feb 25, 2026

Issue for this PR

Closes #14891

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds an experimental WebSocket transport for Responses API streaming and follow-up turns, including incremental input handling with Codex/OpenAI dialect safeguards.

Note: the incremental logic is quite crude and meant more as a proof of concept. I've put both features behind experimental flags.

How did you verify your code works?

Tested both openai and codex auth.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

opencode and others added 5 commits February 25, 2026 07:12
# Conflicts:
#	bun.lock
#	packages/app/package.json
#	packages/console/app/package.json
#	packages/console/core/package.json
#	packages/console/function/package.json
#	packages/console/mail/package.json
#	packages/desktop/package.json
#	packages/enterprise/package.json
#	packages/extensions/zed/extension.toml
#	packages/function/package.json
#	packages/opencode/package.json
#	packages/plugin/package.json
#	packages/sdk/js/package.json
#	packages/slack/package.json
#	packages/ui/package.json
#	packages/util/package.json
#	packages/web/package.json
#	sdks/vscode/package.json
@nick-potts
Copy link
Author

https://gist.github.com/nick-potts/2d0b5af88e5d0909f8a3204b98fa1a2f

helpful with debuggin codex vs openai

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.

[FEATURE]:Add Support for Realtime API with WebSocket from OpenAI

1 participant