fix(cli): skip console log/info in headless mode (#22739)

This commit is contained in:
cynthialong0-0
2026-03-25 06:46:00 -07:00
committed by GitHub
parent 0c919857fa
commit 5e186bfb22
6 changed files with 260 additions and 9 deletions
+1
View File
@@ -65,6 +65,7 @@ export async function runNonInteractive({
return promptIdContext.run(prompt_id, async () => {
const consolePatcher = new ConsolePatcher({
stderr: true,
interactive: false,
debugMode: config.getDebugMode(),
onNewMessage: (msg) => {
coreEvents.emitConsoleLog(msg.type, msg.content);