-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix: disable reasoning budget UI controls for Claude Code provider (#5111) #5113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR disables reasoning budget UI controls for the Claude Code provider, preventing confusion from non-functional UI controls.
- Improved partial data handling and logging in streaming responses (run.ts)
- Disabled reasoning budget support in the Claude Code model definitions (claude-code.ts)
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
src/integrations/claude-code/run.ts | Enhanced parsing of partial data with additional logging for debugging truncated messages. |
packages/types/src/providers/claude-code.ts | Set supportsReasoningBudget and requiredReasoningBudget to false to align UI controls with provider capabilities. |
✅ No security or compliance issues detected. Reviewed everything up to 0068c43. Security Overview
Detected Code Changes
Reply to this PR with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…Code provider (#5111) - Modified fallback logic in stream parsing to handle all message types, not just assistant messages - Added proper parsing attempts for partial data before yielding - Improved error logging to help debug streaming issues - Added debug logging (controlled by DEBUG_CLAUDE_CODE env var) to trace message types This ensures reasoning/thinking content from Claude 3.5 Sonnet 4.0 is properly displayed in all cases.
…5111) - Set supportsReasoningBudget to false for all Claude Code models - Claude Code CLI doesn't support thinking/reasoning parameters - UI controls were misleading users since they had no effect
- Add missing requiredReasoningBudget: false to claude-3-5-sonnet-20241022 and claude-3-5-haiku-20241022 - Revert run.ts changes as they are not needed for fixing the UI issue - The UI issue is resolved by properly disabling reasoning budget support in model configuration
…e into model selection
362b9f0
to
0068c43
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ooCodeInc#5111) (RooCodeInc#5113) * fix: resolve intermittent reasoning content not displayed for Claude Code provider (RooCodeInc#5111) - Modified fallback logic in stream parsing to handle all message types, not just assistant messages - Added proper parsing attempts for partial data before yielding - Improved error logging to help debug streaming issues - Added debug logging (controlled by DEBUG_CLAUDE_CODE env var) to trace message types This ensures reasoning/thinking content from Claude 3.5 Sonnet 4.0 is properly displayed in all cases. * fix: disable reasoning budget UI controls for Claude Code provider (RooCodeInc#5111) - Set supportsReasoningBudget to false for all Claude Code models - Claude Code CLI doesn't support thinking/reasoning parameters - UI controls were misleading users since they had no effect * fix: update Claude Code models configuration - Add missing requiredReasoningBudget: false to claude-3-5-sonnet-20241022 and claude-3-5-haiku-20241022 - Revert run.ts changes as they are not needed for fixing the UI issue - The UI issue is resolved by properly disabling reasoning budget support in model configuration * feat: add reasoning effort support to Claude Code models and integrate into model selection --------- Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
…5111) (#5113) * fix: resolve intermittent reasoning content not displayed for Claude Code provider (#5111) - Modified fallback logic in stream parsing to handle all message types, not just assistant messages - Added proper parsing attempts for partial data before yielding - Improved error logging to help debug streaming issues - Added debug logging (controlled by DEBUG_CLAUDE_CODE env var) to trace message types This ensures reasoning/thinking content from Claude 3.5 Sonnet 4.0 is properly displayed in all cases. * fix: disable reasoning budget UI controls for Claude Code provider (#5111) - Set supportsReasoningBudget to false for all Claude Code models - Claude Code CLI doesn't support thinking/reasoning parameters - UI controls were misleading users since they had no effect * fix: update Claude Code models configuration - Add missing requiredReasoningBudget: false to claude-3-5-sonnet-20241022 and claude-3-5-haiku-20241022 - Revert run.ts changes as they are not needed for fixing the UI issue - The UI issue is resolved by properly disabling reasoning budget support in model configuration * feat: add reasoning effort support to Claude Code models and integrate into model selection --------- Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
Description
Fixes #5111
This PR completes the fix for issue #5111 by disabling the reasoning budget UI controls for the Claude Code provider, which were misleading users since the Claude Code CLI doesn't support thinking/reasoning parameters.
Changes Made
supportsReasoningBudget: false
for all Claude Code models inpackages/types/src/providers/claude-code.ts
Testing
Verification of Acceptance Criteria
Checklist
Context
The Claude Code CLI uses a fixed
--output-format stream-json
flag and doesn't support any parameters to control thinking/reasoning output. The UI was showing controls that had no effect, which was confusing for users. This change aligns the UI with the actual capabilities of the Claude Code provider.Important
Disables reasoning budget UI controls for Claude Code provider by setting
supportsReasoningBudget: false
inclaude-code.ts
.supportsReasoningBudget: false
inclaude-code.ts
.claude-sonnet-4-20250514
,claude-opus-4-20250514
,claude-3-7-sonnet-20250219
,claude-3-5-sonnet-20241022
,claude-3-5-haiku-20241022
.This description was created by
for 0068c43. You can customize this summary. It will automatically update as commits are pushed.