fix: normalize anthropic model ids

This commit is contained in:
Peter Steinberger
2026-01-09 05:07:16 +00:00
parent 9114331218
commit f9fe067f68
3 changed files with 32 additions and 3 deletions

View File

@@ -277,6 +277,11 @@ async function runClaudeCliOnce(params: {
const result = await runCommandWithTimeout(["claude", ...args], {
timeoutMs: params.timeoutMs,
cwd: params.workspaceDir,
env: (() => {
const next = { ...process.env };
delete next.ANTHROPIC_API_KEY;
return next;
})(),
});
if (process.env.CLAWDBOT_CLAUDE_CLI_LOG_OUTPUT === "1") {
const stdoutDump = result.stdout.trim();