From 4c09e40a36b9093f52abae38fd10a63b02183d54 Mon Sep 17 00:00:00 2001 From: Douglas Ezra Morrison Date: Wed, 20 May 2026 01:12:01 -0700 Subject: [PATCH] ci(claude): revert to @v1, pin --model claude-opus-4-7 Diagnosis from run 26147667637 (on @beta, which surfaces the real error instead of the AJV-obfuscated one from @v1): API Error: 404 model: claude-sonnet-4-20250514 The action's default model is retired. Pinning --model explicitly fixes the immediate failure; the upstream obfuscation issue (#892) is orthogonal and tracked separately. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/claude.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 392c36722..7828baac7 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -117,11 +117,7 @@ jobs: - name: Run Claude Code id: claude - # TEMP: swapped @v1 → @beta to surface the real underlying error - # being masked by the AJV obfuscation in @v1 (see upstream - # anthropics/claude-code-action#892 comment by ovceev 2026-03-10). - # Revert to @v1 once we have a clear error from the next trigger. - uses: anthropics/claude-code-action@beta + uses: anthropics/claude-code-action@v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} @@ -137,7 +133,13 @@ jobs: # styler::style_pkg(), R CMD ...) — toolchain is installed above; # * file follow-up issues for work deferred out of the current PR # (gh issue create / comment / edit / view / list). - claude_args: '--allowed-tools "Bash(Rscript:*)" "Bash(R:*)" "Bash(R CMD:*)" "Bash(gh issue:*)"' + # Pin the model explicitly: the action's default points at + # claude-sonnet-4-20250514, which is retired and returns 404 from + # the API. The 404 in turn manifests as the obfuscated AJV crash + # in sdk.mjs documented in upstream issue #892. Once that issue + # is resolved (or the action's default is bumped), --model here + # can be dropped. + claude_args: '--model claude-opus-4-7 --allowed-tools "Bash(Rscript:*)" "Bash(R:*)" "Bash(R CMD:*)" "Bash(gh issue:*)"' # Surface the spawned `claude` CLI's stderr in the Actions log so # SDK init crashes (e.g. run 26144000481) show a real error