fix(agents): keep claude live streams valid

This commit is contained in:
Vincent Koc
2026-04-27 01:53:37 -07:00
parent 6fddf17632
commit b81eaf8a4e
3 changed files with 40 additions and 18 deletions

View File

@@ -147,8 +147,12 @@ export function buildClaudeLiveArgs(params: {
return appendArg(
upsertArgValue(
upsertArgValue(
stripLiveProcessArgs(params.args, params.backend, params.useResume),
"--input-format",
upsertArgValue(
stripLiveProcessArgs(params.args, params.backend, params.useResume),
"--input-format",
"stream-json",
),
"--output-format",
"stream-json",
),
"--permission-prompt-tool",