fix(openai): preserve websocket idle state (#30586)

This commit is contained in:
Aiden Cline
2026-06-03 12:23:00 -05:00
committed by GitHub
parent a22c0a2d29
commit 138c0b9bdf
3 changed files with 116 additions and 2 deletions
@@ -362,6 +362,10 @@ export async function CodexAuthPlugin(input: PluginInput, options: CodexAuthPlug
for (const websocketFetch of websocketFetches) websocketFetch.close()
websocketFetches.length = 0
},
async event(input) {
if (input.event.type !== "session.deleted") return
for (const websocketFetch of websocketFetches) websocketFetch.remove(input.event.properties.info.id)
},
provider: {
id: "openai",
async models(provider, ctx) {