docs(memory): per-account model tests must pass CLAUDE_CODE_OAUTH_TOKEN
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -166,7 +166,7 @@ Current state:
|
||||
|
||||
Model upgrade checklist (both incidents below were caused by skipping it):
|
||||
1. Get the exact model ID from the models API, never by guessing from the marketing name: `curl -s https://api.anthropic.com/v1/models -H "x-api-key: <anthropic.api key>" -H "anthropic-version: 2023-06-01"`. Valid 5.x IDs as of 2026-10-01: `claude-opus-5-5`, `claude-sonnet-5-5`, `claude-opus-5`, `claude-sonnet-5`, `claude-fable-5-1`, `claude-fable-5`. Writing `5.0` as `claude-opus-5-0` is invalid — that typo broke every KAclaw channel 2026-09-17 → 09-21.
|
||||
2. Before editing `.env`, run a real query through the service's own SDK + bundled binary + credentials (`query({model, pathToClaudeCodeExecutable: <repo>/node_modules/@anthropic-ai/claude-agent-sdk-linux-x64/claude})` with `CLAUDE_CREDENTIALS_PATH` exported). Newer models can require a newer Claude Code CLI: Opus 5.5 is rejected by CLI 2.1.153 with `400 ... version 2.1.280 or newer is required`, so the SDK had to be bumped first.
|
||||
2. Before editing `.env`, run a real query through the service's own SDK + bundled binary with that service's access token in `CLAUDE_CODE_OAUTH_TOKEN` (`query({model, pathToClaudeCodeExecutable: <runner>/node_modules/@anthropic-ai/claude-agent-sdk-linux-x64/claude})`; `CLAUDE_CREDENTIALS_PATH` alone is ignored by the CLI and silently falls back to `~/.claude`). Newer models can require a newer Claude Code CLI: Opus 5.5 is rejected by CLI 2.1.153 with `400 ... version 2.1.280 or newer is required`, so the SDK had to be bumped first.
|
||||
3. Opus/Sonnet 5.x support only `adaptive` thinking — keep `CLAUDE_THINKING=adaptive` (`enabled` + budget fails on 5.x).
|
||||
4. Apply with the detached `systemd-run … systemctl --user restart` form and verify the new PID + zero `does not support this model` / `issue with the selected model` log lines.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user