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).

@Soumya95
Soumya95 requested a review from a team September 14, 2026 07:18
Edo771977 pushed a commit to Edo771977/codex-plugin-cc that referenced this pull request Sep 17, 2026
…s is a fork

- README "Differences From Upstream" gains openai#659, openai#707 and openai#728, plus a short
  list of the defects the imports themselves surfaced and this fork fixes
  (busy-broker refusal, the launcher's inverted precedence, the durable
  config's private atomic write, the app-server typecheck), and what is
  deliberately not imported (openai#733, openai#761) with the reason.
- CHANGELOG records the three imports under Unreleased.
- The plugin, marketplace and package descriptions now say this is a fork of
  openai/codex-plugin-cc carrying open upstream fixes. Anyone browsing
  /plugin sees the same description the marketplace lists, and it read as
  upstream's own plugin until now.

The version stays 1.0.6 (npm run check-version passes): describing the fork is
not cutting a release.

Verified: full npm test 304/304; tsc clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UXfvnjSC72HsM6EEPVt2Tg
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