fix: unblock claude-cli live runs

This commit is contained in:
Peter Steinberger committed 2026-01-11 00:55:22 +00:00
1 parent d8f1124d59
commit 24c3ab6fe0
5 files changed
+51 -13

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ const DEFAULT_CLAUDE_BACKEND: CliBackendConfig = {
systemPromptArg: "--append-system-prompt",
systemPromptMode: "append",
systemPromptWhen: "first",
clearEnv: ["ANTHROPIC_API_KEY"],
clearEnv: ["ANTHROPIC_API_KEY", "ANTHROPIC_API_KEY_OLD"],
serialize: true,
};
+2 -1
View File
@@ -455,6 +455,7 @@ export async function runCliAgent(params: {
backend,
prompt: params.prompt,
});
const stdinPayload = stdin ?? "";
const args = buildCliArgs({
backend,
modelId: normalizedModel,
@@ -526,7 +527,7 @@ export async function runCliAgent(params: {
timeoutMs: params.timeoutMs,
cwd: workspaceDir,
env,
...(stdin ? { input: stdin } : {}),
input: stdinPayload,
});
const stdout = result.stdout.trim();