-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
App Version
3.19.1+ (current)
API Provider
Claude Code
Model Used
Claude 3.5 Sonnet 4.0
π Steps to Reproduce
- Configure Roo Code to use Claude Code provider
- Set model to Claude 3.5 Sonnet 4.0 (which supports reasoning/thinking)
- Send a request that should trigger reasoning (e.g., complex problem-solving task)
- Observe the chat response
π₯ Outcome Summary
Expected: Reasoning/thinking process should be displayed in collapsible reasoning blocks in the chat, similar to other providers
Actual: No reasoning/thinking content is displayed in the chat, even though the model supports it and other providers (like AWS Bedrock) show reasoning properly
Technical Analysis
Based on code investigation, the issue appears to be in the Claude Code provider integration:
Backend reasoning processing is implemented:
claude-code.ts:93-104correctly processes"thinking"and"redacted_thinking"content types- Transforms them to
"reasoning"stream chunks that should display in UI
Frontend reasoning display exists:
ChatRow.tsx:900-908has proper case handling for"reasoning"message typesReasoningBlock.tsxcomponent exists for displaying reasoning content
Recent related work:
- PR fix: Add AWS Bedrock Extended Thinking support for Claude models (#4343, #4201)Β #4447 added reasoning support for AWS Bedrock provider
- Other providers show reasoning correctly
Possible Root Causes
- Claude Code CLI integration issue: The external Claude CLI might not be returning thinking blocks in the expected format
- Model configuration: Claude 3.5 Sonnet 4.0 might need specific parameters to enable reasoning output through Claude Code CLI
- Stream processing bug: Reasoning content might be getting lost in the stream processing pipeline
- Version mismatch: Claude Code CLI version might not support reasoning output
Expected Behavior
Reasoning/thinking content should display in collapsible blocks similar to other providers, allowing users to see the model's thought process.
π Relevant Logs or Errors (Optional)
No specific errors displayed - reasoning content simply doesn't appear in the chat interface.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status