From af28bae365f894925dd3f9325ad7a3e587cda5d2 Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 1 Oct 2026 14:51:06 +0900 Subject: [PATCH] docs(memory): per-account model tests must pass CLAUDE_CODE_OAUTH_TOKEN Co-Authored-By: Claude Opus 5.5 --- groups/global/CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groups/global/CLAUDE.md b/groups/global/CLAUDE.md index b0d74e8..20965fb 100644 --- a/groups/global/CLAUDE.md +++ b/groups/global/CLAUDE.md @@ -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: " -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: /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: /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.