mirror of
https://github.com/trailofbits/claude-code-config
synced 2026-06-21 14:11:43 +00:00
fix alwaysThinkingEnabled
This commit is contained in:
@@ -121,7 +121,7 @@ claude-local() {
|
||||
ANTHROPIC_BASE_URL=http://localhost:1234 \
|
||||
ANTHROPIC_AUTH_TOKEN=lmstudio \
|
||||
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 \
|
||||
claude --settings '{"alwaysThinkingEnabled": false}' --model qwen/qwen3-coder-next "$@"
|
||||
claude --model qwen/qwen3-coder-next "$@"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -400,7 +400,9 @@ claude
|
||||
|
||||
Or use the `claude-local` shell function from [Shell Setup](#shell-setup) to avoid typing the env vars every time.
|
||||
|
||||
If `claude-local` fails with `The number of tokens to keep from the initial prompt is greater than the context length.` message, then try disabling auto-loaded tools (`--strict-mcp-config` first, then try also `--disable-slash-commands` and `--system-prompt "You are a helpful coding assistant."`)
|
||||
If `claude-local` fails with `The number of tokens to keep from the initial prompt is greater than the context length.` message, then try disabling auto-loaded tools (`--strict-mcp-config` first, then try also `--disable-slash-commands` and `--system-prompt "You are a helpful coding assistant."`).
|
||||
|
||||
If `claude-local` fails with `request.thinking.type: Invalid discriminator value. Expected 'enabled' | 'disabled'"` then add `--settings '{"alwaysThinkingEnabled": false}'` flag.
|
||||
|
||||
For the full list of environment variables (model overrides, subagent models, traffic controls, etc.), see the [model configuration docs](https://code.claude.com/docs/en/model-config).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user