Skip to content

Fix Codex OAuth Responses streaming#741

Draft
MTG-Thomas wants to merge 1 commit into
stakpak:mainfrom
MTG-Thomas:codex/codex-oauth-streaming-responses
Draft

Fix Codex OAuth Responses streaming#741
MTG-Thomas wants to merge 1 commit into
stakpak:mainfrom
MTG-Thomas:codex/codex-oauth-streaming-responses

Conversation

@MTG-Thomas
Copy link
Copy Markdown

Summary

  • route Codex backend generate() calls through the existing streaming Responses transport
  • fold streamed Responses events back into the normal GenerateResponse shape
  • add a mock SSE regression test covering Codex generate() with text/event-stream headers

Fixes #739.

Verification

cargo test -p stakai providers::openai::provider::tests

I also validated a patched CLI against a ChatGPT/Codex OAuth account with:

stakpak -p --max-steps 1 --model gpt-5.2 "Say OK only."

which returned OK instead of Stream must be set to true.

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.

OpenAI Codex OAuth path sends non-streaming Responses request; ChatGPT account requires stream=true

1 participant