Skip to content

Use model catalog default for reasoning summary fallback#12873

Merged
pakrym-oai merged 6 commits intomainfrom
pakrym/reasoning-summary-model-default
Feb 26, 2026
Merged

Use model catalog default for reasoning summary fallback#12873
pakrym-oai merged 6 commits intomainfrom
pakrym/reasoning-summary-model-default

Conversation

@pakrym-oai
Copy link
Collaborator

Summary

  • make Config.model_reasoning_summary optional so unset means use model default
  • resolve the optional config value to a concrete summary when building TurnContext
  • add protocol support for default_reasoning_summary in model metadata

Validation

  • cargo test -p codex-core --lib client::tests -- --nocapture

pakrym-oai and others added 2 commits February 25, 2026 22:34
Keep config/session summary optional so missing values fall back to the model catalog default when building TurnContext, while TurnContext and request paths remain concrete. Also add protocol support for default_reasoning_summary with backward-compatible serde defaults.

Co-authored-by: Codex <noreply@openai.com>
Add a client integration test that verifies explicit model_reasoning_summary=none still omits reasoning.summary even when the model catalog default is detailed, and update suite tests for optional config summary + new model metadata field.

Co-authored-by: Codex <noreply@openai.com>
pakrym-oai and others added 2 commits February 26, 2026 08:31
Update test fixtures and call sites for optional model reasoning summary and clean up a clippy redundant clone lint.

Co-authored-by: Codex <noreply@openai.com>
@pakrym-oai pakrym-oai merged commit ba41e84 into main Feb 26, 2026
29 of 33 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/reasoning-summary-model-default branch February 26, 2026 17:31
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants