From b706d4b893bea8e68f43baaaee49e2e14339d830 Mon Sep 17 00:00:00 2001 From: Andre Manoel Date: Thu, 2 Apr 2026 04:39:49 +0000 Subject: [PATCH] fix: use --bare and --tools in health probe CLI check The "Verify Claude CLI" step fails on the CI runner because Claude Code tries to initialize keychain, LSP, plugins, and CLAUDE.md discovery before making the API call. On a bare runner these resources don't exist, causing exit code 1. - Add --bare to skip all initialization and force ANTHROPIC_API_KEY auth - Add --tools "" to disable tool definitions (health check doesn't need them, and this avoids sending a large payload to the gateway) --- .github/workflows/agentic-ci-health-probe.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/agentic-ci-health-probe.yml b/.github/workflows/agentic-ci-health-probe.yml index a4239128..c91545dd 100644 --- a/.github/workflows/agentic-ci-health-probe.yml +++ b/.github/workflows/agentic-ci-health-probe.yml @@ -87,11 +87,13 @@ jobs: echo "Claude CLI version: $(claude --version 2>&1 || true)" - # Run a minimal prompt to verify auth + model + tool usage work end-to-end + # Run a minimal prompt to verify auth + model work end-to-end RESULT=$(claude \ + --bare \ --model "$MODEL" \ -p "Reply with exactly: HEALTH_CHECK_OK" \ --max-turns 1 \ + --tools "" \ --output-format text \ 2>&1) || { echo "::error::Claude CLI failed"