From ca02eb6ea7f0235b710c6a734533ce351b9ef133 Mon Sep 17 00:00:00 2001 From: fitz123 Date: Sat, 4 Apr 2026 22:42:36 +0300 Subject: [PATCH] fix: remove CLAUDE_CODE_SIMPLE=1 breaking OAuth auth CLAUDE_CODE_SIMPLE=1 was introduced to reduce CLI overhead for crons, but since Claude CLI 2.1.81+ it triggers a fatal error during OAuth authentication, causing all cron tasks to fail. Remove the flag from both run-cron.sh and cron-runner.ts. The other DISABLE_* flags are unaffected. Fixes #87 Co-Authored-By: Claude Opus 4.6 --- bot/scripts/run-cron.sh | 1 - bot/src/cron-runner.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/bot/scripts/run-cron.sh b/bot/scripts/run-cron.sh index efd3647..06a684c 100755 --- a/bot/scripts/run-cron.sh +++ b/bot/scripts/run-cron.sh @@ -20,7 +20,6 @@ unset ANTHROPIC_API_KEY export CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 export CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1 export CLAUDE_CODE_DISABLE_CRON=1 -export CLAUDE_CODE_SIMPLE=1 export CLAUDE_CODE_ENABLE_TELEMETRY=1 TASK_NAME="${1:?Usage: run-cron.sh }" diff --git a/bot/src/cron-runner.ts b/bot/src/cron-runner.ts index 3f21b2e..a749636 100644 --- a/bot/src/cron-runner.ts +++ b/bot/src/cron-runner.ts @@ -297,7 +297,6 @@ function runClaude(cron: CronJob, workspaceCwd: string): string { env.CLAUDE_CODE_DISABLE_AUTO_MEMORY = "1"; env.CLAUDE_CODE_DISABLE_BACKGROUND_TASKS = "1"; env.CLAUDE_CODE_DISABLE_CRON = "1"; - env.CLAUDE_CODE_SIMPLE = "1"; const output = execSync(args.map(shellEscape).join(" "), { encoding: "utf8",