[BUG] /context not working for Claude Code Bedrock users anymore
Status Closed — not planned
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 11 comments · opened Oct 1, 2025 · closed Jan 9, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
/context not working for Claude Code Bedrock users anymore.
What Should Happen?
It gives an Error:
"400 'temperature' may only be set to 1 when thinking is enabled. Please consult our documentation at [anthropic-link/extended-thinking]"
Error Messages/Logs
Steps to Reproduce
- Enter claude code CLI
- Enter /context
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.2
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
11 Comments
It worked after specifying the AWS_REGION as an env var. The docs can be more helpful by specifying that.
I've observed that the /context command works if issued as the very first prompt in a session. After adding any other prompts to the session, that temperature error appears (regardless of AWS_REGION existence/value)
Yeah I thought adding that fixed it but it looks like it only works if you run it first before any prompt! And this is happening not only in the IDE extension but also the CLI when using Bedrock
this seems to happen on local sessions too, if you try to run /context after some iteration with a thinking claude
I've found exactly the same using our Bedrock Claude this week as @JacekLach and @deepnz . Here is Claude Code's own analysis of what might be going on:
It is also worth mentioning that this happens with Claude Code in the integrated VS Code terminal on AlmaLinux 9 (not using the extension). I noticed the bug has a platform:macos label on it, but this is clearly a cross-platform issue.
i also hit this bug:
claude's own suggestion that i file this bug, but i found this previously reported issue:
```⏺ This looks like a bug in Claude Code's /context command. The error indicates that:
You didn't set temperature - Claude Code's /context command implementation did, and it's not respecting the thinking mode
constraint.
What to do:
Report this as a bug:
# As mentioned in the help, report issues at:
open https://github.com/anthropics/claude-code/issues
Bug details to include:
Workaround:
For now, if you need to use /context, you might need to start a new session without thinking mode, though that's not ideal.
This is definitely a bug in Claude Code's command handling - the /context command should either:
I hit this issue in a normal CLI terminal on a Max plan, not on bedrock nor using VScode, if I turn thinking on for a few interactions then turn thinking off and issue
/context. The first time I execute/contextafter turning thinking off will result in this bug. If I run/contextagain then it will correctly show the context state.Looks like it's fixed (v2.0.32)
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.