Skip to content

fix(codex): normalize max reasoning effort - #1817

Closed
ryanngit wants to merge 1 commit into
decolua:masterfrom
ryanngit:reasoning-effort-translation
Closed

ryanngit wants to merge 1 commit into
decolua:masterfrom
ryanngit:reasoning-effort-translation

Conversation

@ryanngit

@ryanngit ryanngit commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • maps Codex reasoning effort max to xhigh in the Codex executor only
  • preserves nested reasoning.effort and adds missing summary auto
  • leaves provider-native max support for other providers untouched

Checks

  • direct Codex transform assertion for top-level and nested max
  • git diff --check

bloodf pushed a commit to bloodf/9router that referenced this pull request Jun 19, 2026
diegosouzapw pushed a commit to diegosouzapw/OmniRoute that referenced this pull request Jun 26, 2026
…clients

OpenAI Responses-API clients send the reasoning hint as `reasoning.effort`.
On the Chat-Completions side it is `reasoning_effort` (OpenAI-native). The
existing translator only promoted it behind the `_copilotClient` UA gate so
every other Responses client (OpenCode, Cursor, raw OpenAI Responses, ...)
silently lost the hint when routed across formats.

Promote `reasoning.effort` -> `reasoning_effort` unconditionally; keep the
Copilot-specific `summary` -> Claude summarized-thinking marker behind the
existing UA gate because that one IS Copilot-specific glue, not an
OpenAI-native field. Existing test that pinned the old (gated) contract is
updated with a comment pointing at the upstream PR.

Co-authored-by: ryanngit <74137224+ryanngit@users.noreply.github.com>
Inspired-by: decolua/9router#1817
@ryanngit
ryanngit force-pushed the reasoning-effort-translation branch from d1407c1 to a3d5ea0 Compare July 3, 2026 20:11
@ryanngit ryanngit changed the title fix(translator): preserve reasoning effort fix(codex): normalize max reasoning effort Jul 3, 2026
@ryanngit

ryanngit commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #2452, which keeps the same fix set in one branch and has focused tests passing.

@ryanngit ryanngit closed this Jul 9, 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