Skip to content

fix: allow max and ultra reasoning efforts (fixes #751) - #761

Open
Soumya95 wants to merge 1 commit into
openai:mainfrom
Soumya95:fix/allow-max-ultra-reasoning-efforts
Open

Soumya95 wants to merge 1 commit into
openai:mainfrom
Soumya95:fix/allow-max-ultra-reasoning-efforts

Conversation

@Soumya95

Copy link
Copy Markdown

Summary

Fixes #751: VALID_REASONING_EFFORTS locally rejected max and ultra, so the flagship model's top two reasoning tiers were unreachable from the plugin (the request failed locally before any API call).

Changes

  • plugins/codex/scripts/codex-companion.mjs — added max and ultra to VALID_REASONING_EFFORTS, updated the usage string in printUsage(), and updated the error text in normalizeReasoningEffort().
  • plugins/codex/commands/rescue.md — updated argument-hint to include max|ultra.
  • plugins/codex/skills/codex-cli-runtime/SKILL.md — updated the documented --effort accepted values.
  • tests/commands.test.mjs — updated the two assertions that spell out the effort list.
  • tests/runtime.test.mjs — added tests verifying --effort max and --effort ultra are accepted and forwarded, and that unknown efforts are still rejected locally with the updated message.

Verification

node --test tests/commands.test.mjs tests/runtime.test.mjs — 71/71 pass (69 existing + 2 new).

The gate still discriminates: --effort bogus is rejected locally (exit 1, no API call).

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.

VALID_REASONING_EFFORTS rejects max and ultra locally, so the flagship model's top two reasoning tiers are unreachable from the plugin

1 participant