Skip to content

fix(config): accept 'max' as valid reasoningEffort for o-series models#4514

Open
Hungdoan565 wants to merge 2 commits into
code-yeongyu:devfrom
Hungdoan565:fix/doctor-reasoning-effort-max-4165
Open

fix(config): accept 'max' as valid reasoningEffort for o-series models#4514
Hungdoan565 wants to merge 2 commits into
code-yeongyu:devfrom
Hungdoan565:fix/doctor-reasoning-effort-max-4165

Conversation

@Hungdoan565

@Hungdoan565 Hungdoan565 commented May 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Add 'max' to the o-series model family's supported
easoningEfforts in packages/model-core/src/model-capability-heuristics.ts. Previously, o-series models only listed ['none', 'minimal', 'low', 'medium', 'high'], causing 'max' to be silently downgraded when used with o-series models.

Changes

  • packages/model-core/src/model-capability-heuristics.ts: Add 'max' to o-series
    easoningEfforts array
  • packages/model-core/src/model-settings-compatibility.test.ts: Add regression test verifying 'max' is preserved for o-series models
  • src/config/schema/schema.test.ts: Add test confirming
    easoningEffort: 'max' passes Zod schema validation

Testing

  • All existing model-settings-compatibility tests pass
  • New test confirms max is accepted and not downgraded for o-series models

Closes #4165


Summary by cubic

Accepts max as a valid reasoningEffort for o-series (openai-reasoning) models so it no longer gets downgraded to high. Closes #4165.

  • Bug Fixes
    • Add max to o-series reasoningEfforts heuristic in packages/model-core/src/model-capability-heuristics.ts.
    • Add tests to preserve max and validate schema in packages/model-core/src/model-settings-compatibility.test.ts, packages/model-core/src/model-capabilities.test.ts, and src/config/schema.test.ts; bump oh-my-opencode-* optional binaries to 4.5.1 in bun.lock.

Written for commit e36fad7. Summary will update on new commits. Review in cubic

Adds 'max' to the o-series (openai-reasoning) model family's
reasoningEfforts heuristic array. Previously, 'max' was only
recognized for gpt-5 and deepseek families, causing the model
settings compatibility layer to downgrade it to 'high' for o-series
models. Also adds test coverage for the 'max' value in schema
validation and compatibility tests.

Closes code-yeongyu#4165
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.

[Bug]: bunx oh-my-openagent doctor falsely reports 'max' as an invalid value for the agents.*.reasoningEffort option.

1 participant