mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
fix(coding-agent): preserve json mode for piped stdin (#2848)
This commit is contained in:
committed by
GitHub
Unverified
parent
71e4436932
commit
127547f2b3
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user