Skip to content

feat: support max reasoning effort - #27

Open
anantgar wants to merge 1 commit into
RobertTLange:mainfrom
anantgar:codex/support-max-reasoning-effort
Open

feat: support max reasoning effort#27
anantgar wants to merge 1 commit into
RobertTLange:mainfrom
anantgar:codex/support-max-reasoning-effort

Conversation

@anantgar

@anantgar anantgar commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Accept max through CLI flags, config, and TypeScript/Python types.
  • Forward max to Codex, Claude, OpenCode, and Pi using each backend’s native setting.
  • Encode Cursor max as [effort=max] while preserving existing legacy variant mappings.
  • Keep usage pricing correct for parameterized Cursor model names.

Verification

  • npm run build passes.
  • Focused max/agent tests: 17 passed.
  • Live headless probe: ChatGPT-authenticated Codex with gpt-5.6-sol and max returned OK.
  • Full npm suite: 454 passed; 5 existing Modal tests fail on invalid pax header in the environment.
  • Python suite: 66 passed; 1 packaging test requires the missing build module.

Effort support remains model/backend-specific. Headless forwards the selected value and lets the native backend report unsupported combinations rather than silently downgrading them.

@anantgar
anantgar force-pushed the codex/support-max-reasoning-effort branch from 5e54e00 to 5a54fdb Compare August 26, 2026 18:55
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