refactor(stdio): always patch stdout and use createWorkingStdio for clean output (#14159)

This commit is contained in:
Allen Hutchison
2025-12-02 15:08:25 -08:00
committed by GitHub
parent 2d935b3798
commit 828afe113e
12 changed files with 31 additions and 24 deletions
+3 -1
View File
@@ -28,6 +28,7 @@ import {
debugLogger,
coreEvents,
CoreEvent,
createWorkingStdio,
} from '@google/gemini-cli-core';
import type { Content, Part } from '@google/genai';
@@ -70,7 +71,8 @@ export async function runNonInteractive({
coreEvents.emitConsoleLog(msg.type, msg.content);
},
});
const textOutput = new TextOutput();
const { stdout: workingStdout } = createWorkingStdio();
const textOutput = new TextOutput(workingStdout);
const handleUserFeedback = (payload: UserFeedbackPayload) => {
const prefix = payload.severity.toUpperCase();