feat(openai): add responses websocket transport (#29477)

This commit is contained in:
Aiden Cline 2026-05-27 15:02:37 -05:00 committed by GitHub
commit 62da1e7682
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 1326 additions and 45 deletions

View file

@ -63,6 +63,7 @@ describe("RuntimeFlags", () => {
expect(flags.experimentalWorkspaces).toBe(true)
expect(flags.experimentalIconDiscovery).toBe(true)
expect(flags.experimentalNativeLlm).toBe(false)
expect(flags.experimentalWebSockets).toBe(false)
expect(flags.client).toBe("desktop")
}),
)
@ -91,6 +92,16 @@ describe("RuntimeFlags", () => {
}),
)
it.effect("enables WebSockets via dedicated flag only", () =>
Effect.gen(function* () {
const explicit = yield* readFlags.pipe(Effect.provide(fromConfig({ OPENCODE_EXPERIMENTAL_WEBSOCKETS: "true" })))
const umbrella = yield* readFlags.pipe(Effect.provide(fromConfig({ OPENCODE_EXPERIMENTAL: "true" })))
expect(explicit.experimentalWebSockets).toBe(true)
expect(umbrella.experimentalWebSockets).toBe(false)
}),
)
it.effect("layer accepts partial test overrides and fills defaults from Config definitions", () =>
Effect.gen(function* () {
const flags = yield* readFlags.pipe(