Skip to content

Conversation

@numman-ali
Copy link
Owner

Summary

This release combines fixes and features from three community PRs into a single v4.1.1 release:

Changes

Added

  • "none" reasoning effort support: GPT-5.1 and GPT-5.2 general purpose models now support reasoning_effort: "none" which disables the reasoning phase entirely for faster responses
    • gpt-5.2-none - GPT-5.2 with reasoning disabled
    • gpt-5.1-none - GPT-5.1 with reasoning disabled
  • Model mappings: Added gpt-5.2-none and gpt-5.1-none to model-map.ts
  • Model presets: Added none presets to opencode.json configs (now 18 total models)
  • 4 new unit tests for "none" reasoning behavior (197 total tests)

Fixed

  • Orphaned function_call_output 400 errors: Fixed API errors when conversation history contains item_reference pointing to stored function calls
    • Previously, orphaned function_call_output items were only filtered when !body.tools
    • Now always handles orphans regardless of tools presence
    • Converts orphans to assistant messages instead of removing them, preserving context while avoiding API errors
  • OAuth HTML version display: Updated version in oauth-success.html from 1.0.4 to 4.1.0

Technical Details

  • getReasoningConfig() now detects GPT-5.1 general purpose models (not Codex variants) and allows "none" to pass through
  • GPT-5.2 inherits "none" support as it's newer than GPT-5.1
  • Codex variants do NOT support "none":
    • Codex and Codex Max: "none" auto-converts to "low"
    • Codex Mini: "none" auto-converts to "medium"

Documentation Updated

  • README.md: Updated to 18 models, updated reasoning effort table, version references
  • docs/configuration.md: Updated reasoning effort documentation with complete support matrix
  • scripts/test-all-models.sh: Added gpt-5.2-none and gpt-5.1-none tests
  • CHANGELOG.md: Combined release notes for all 3 PRs

Reasoning Effort Support Matrix

Model none low medium high xhigh
GPT-5.2
GPT-5.1
GPT-5.1-Codex ❌→low
GPT-5.1-Codex-Max ❌→low
GPT-5.1-Codex-Mini ❌→medium ❌→medium ❌→high

Test Plan

  • TypeScript type checking passes
  • All 197 unit tests pass (was 193, added 4 new tests)
  • Build succeeds
  • Manual testing with opencode using local dist

Related PRs

Supersedes:


🤖 Generated with Claude Code

…fix, and HTML version update

This release combines fixes and features from PRs #62, #63, and #64:

### Added
- "none" reasoning effort support for GPT-5.2 and GPT-5.1 general purpose models
- gpt-5.2-none and gpt-5.1-none model mappings and presets (now 18 total models)
- 4 new unit tests for "none" reasoning behavior (197 total tests)

### Fixed
- Orphaned function_call_output 400 API errors - now converts orphans to assistant
  messages to preserve context while avoiding API errors
- OAuth HTML version display updated from 1.0.4 to 4.1.0

### Technical Details
- getReasoningConfig() detects GPT-5.1 general purpose models and allows "none"
- Codex variants auto-convert "none" to "low" (or "medium" for Codex Mini)
- Orphan handling now works regardless of tools presence in request

Contributors: @code-yeongyu (PR #63), @kanemontreuil (PR #64), @ben-vargas (PR #62)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@numman-ali numman-ali merged commit 909adb7 into main Dec 17, 2025
3 checks passed
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