Skip to content

Move reasoning effort control to composer - #394

Merged
SudoJacky merged 1 commit into
masterfrom
feat/composer-reasoning-effort
Aug 8, 2026
Merged

Move reasoning effort control to composer#394
SudoJacky merged 1 commit into
masterfrom
feat/composer-reasoning-effort

Conversation

@SudoJacky

Copy link
Copy Markdown
Owner

Summary

  • remove reasoning effort from global Agent Defaults and legacy default request inheritance
  • add a nested Model / Effort composer control with Light, Medium, High, Extra High, and Max
  • persist the composer effort locally and submit it as an explicit turn setting for Chat Completions and Responses

Why

Reasoning effort is model- and request-specific. Keeping it in Agent Defaults could silently apply a stale global value to unrelated providers or models.

User impact

Users choose effort next to the active model. Medium is the first-use fallback, and later choices are restored locally. Unsupported provider/model combinations fail explicitly rather than being silently downgraded.

Validation

  • npm test (78 files, 518 tests)
  • npm run build
  • cargo check
  • focused Chat Completions and Responses reasoning request tests
  • git diff --check

@SudoJacky
SudoJacky marked this pull request as ready for review August 8, 2026 13:42

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6c95407aac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

await handler?.(currentMessage.trim(), files, pastedContent, {
...(selectedModel ? { model: selectedModel.modelId || selectedModel.id } : {}),
...(selectedModel?.providerId ? { provider: selectedModel.providerId } : {}),
reasoningEffort: selectedReasoningEffort,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Allow composer turns without reasoning effort

Because this field is unconditional and the state initializes to medium, merely sending a message requests reasoning even when the user never selected an effort. For any profile without the reasoning capability—including the built-in OpenAI and DashScope profiles in provider/catalog.rsrequire_provider_capability rejects the request, so every ordinary composer submission fails. Provide a provider-default/off state or only attach the effort when the selected profile supports it.

Useful? React with 👍 / 👎.

@SudoJacky
SudoJacky merged commit 4a5c236 into master Aug 8, 2026
1 check passed
@SudoJacky
SudoJacky deleted the feat/composer-reasoning-effort branch August 9, 2026 10:19
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