fix(coding-agent): preserve json mode for piped stdin (#2848)

This commit is contained in:
Aliou Diallo
2026-04-05 21:02:18 +02:00
committed by GitHub
parent 71e4436932
commit 127547f2b3
2 changed files with 2 additions and 1 deletions

View File

@@ -578,7 +578,7 @@ export async function main(args: string[]) {
let stdinContent: string | undefined;
if (appMode !== "rpc") {
stdinContent = await readPipedStdin();
if (stdinContent !== undefined) {
if (stdinContent !== undefined && appMode === "interactive") {
appMode = "print";
}
}