mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 02:18:25 +00:00
fix: unblock claude-cli live runs
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user