Skip to content

Address Responses review comments#250

Open
emal-avala wants to merge 1 commit intomainfrom
codex/fix-pr-248-review-comments
Open

Address Responses review comments#250
emal-avala wants to merge 1 commit intomainfrom
codex/fix-pr-248-review-comments

Conversation

@emal-avala
Copy link
Copy Markdown
Member

Summary

  • Handles response.incomplete / incomplete response.completed payloads with incomplete_details.reason = "max_output_tokens" as StopReason::MaxTokens, so the existing max-output recovery path can run.
  • Keeps ChatGPT Codex Responses requests from sending unsupported token-limit fields, with test coverage documenting the backend constraint behind PR Support Codex ChatGPT auth #248's token-budget review comment.

Review comments addressed

Test plan

  • cargo test -p agent-code-lib openai::tests
  • cargo check --all-targets
  • cargo clippy --all-targets -- -D warnings
  • cargo fmt --all -- --check
  • Live smoke: cargo run -p agent-code -- --auth-mode codex_chatgpt --model gpt-5.4 --prompt "Reply with exactly: ok" --max-turns 2 --verbose

Note: I verified the ChatGPT Codex backend currently rejects max_output_tokens, max_completion_tokens, and max_tokens with Unsupported parameter, so this PR does not add those fields to the Codex auth Responses payload.

@emal-avala emal-avala changed the title [codex] address Responses review comments Address Responses review comments Apr 29, 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