Skip to content

Honor explicit 'disable' for reasoning effort#5739

Merged
kevinvandijk merged 4 commits intoKilo-Org:mainfrom
rayss868:reasoning-effort-sync-and-support-for-OpenAI-Compatible-provider
Feb 15, 2026
Merged

Honor explicit 'disable' for reasoning effort#5739
kevinvandijk merged 4 commits intoKilo-Org:mainfrom
rayss868:reasoning-effort-sync-and-support-for-OpenAI-Compatible-provider

Conversation

@rayss868
Copy link
Contributor

@rayss868 rayss868 commented Feb 7, 2026

Context

This PR addresses critical issues with the reasoning_effort implementation for the OpenAI Compatible provider. Previously, selecting the "disable" option in the UI did not actually prevent the provider from sending reasoning parameters (specifically binary thinking) to the API. Additionally, the UI state was prone to desynchronization because the settings wrapper was dropping non-reasoning fields.

Implementation

  1. Backend Logic Fix: Updated BaseOpenAiCompatibleProvider to implement an isExplicitlyDisabled check. This check ensures that if the user selects "disable", both thinking: { type: "enabled" } and reasoning_effort parameters are omitted from the final API request.
  2. UI State Synchronization: Refactored the ThinkingBudget component wrapper in OpenAICompatible.tsx to forward all configuration fields to the parent state handler. This prevents settings like thinkingBudget from being lost and ensures the UI correctly reflects the "disabled" state when selected.
  3. Conflict Resolution: Manually resolved Git merge conflicts and fixed syntax errors that arose during the synchronization of these fixes across project directories.

Screenshots

before after
Reasoning remained active even when "disable" was selected in the dropdown. Selecting "disable" strictly omits all reasoning parameters from the API call.

How to Test

  1. Open Kilo Code Settings.
  2. Select OpenAI Compatible as the API provider.
  3. Enable the Set Reasoning Level checkbox.
  4. Select disable from the reasoning effort dropdown.
  5. Verify Backend: Check the logs or network traffic to ensure neither thinking nor reasoning_effort is sent in the request body.
  6. Verify UI: Ensure that selecting "disable" correctly updates the internal apiConfiguration without losing other related fields like thinkingBudget.

Get in Touch

If you have any questions about these changes, feel free to reach out!

@changeset-bot
Copy link

changeset-bot bot commented Feb 7, 2026

🦋 Changeset detected

Latest commit: fc02342

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

jeremylongshore added a commit to jeremylongshore/kilocode that referenced this pull request Feb 14, 2026
jeremylongshore added a commit to jeremylongshore/kilocode that referenced this pull request Feb 14, 2026
- Add .reviews/README.md: case study framing for AI-assisted PR review
- Add 6 test evidence logs (combined batches + mega-combined)
- Copy evidence logs to 13 individual PR directories
- Update 13 status.json files with test_results + evidence_log refs
- Total: ~38,000 lines of raw terminal output as proof of work

Test runs (all fresh, turbo cache cleared):
  Batch 1: PRs Kilo-Org#5370+5660+5704 — 7,859 passed
  Individual: PR Kilo-Org#5562 — 7,803 passed
  Batch 2: PRs Kilo-Org#5739+5817 — 7,938 passed
  Batch 3: PRs Kilo-Org#5331+5568 — 7,935 passed
  Batch 4: PRs Kilo-Org#5667+5728+5807+5865+5869 — 7,935 passed
  Mega-combined: 11 PRs merged — 7,938 passed

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jeremylongshore added a commit to jeremylongshore/kilocode that referenced this pull request Feb 15, 2026
Mirror: Honor explicit 'disable' for reasoning effort (Kilo-Org#5739)
Copy link
Collaborator

@kevinvandijk kevinvandijk left a comment

Choose a reason for hiding this comment

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

Thank you!

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.

2 participants