Stop logging ACP non-JSON stdout previews

This commit is contained in:
Mohamed Boudra
2026-04-24 11:42:59 +07:00
parent 50a12e2140
commit 52eb307e8c
3 changed files with 1 additions and 6 deletions
@@ -148,9 +148,6 @@ export function migrateProviderSettings(
const nextEntry: ProviderOverride = {};
const command = parsedOld.data.command;
if (command?.mode === "append") {
console.warn(
`[Config] Skipping legacy agents.providers.${providerId}.command append mode during provider override migration because it cannot be auto-migrated.`,
);
continue;
}
if (command?.mode === "replace") {
@@ -72,10 +72,10 @@ describe("createLoggedNdJsonStream", () => {
expect(logger.warn).toHaveBeenCalledWith(
expect.objectContaining({
provider: "gemini",
linePreview: "Please visit the following URL to authorize the application:",
}),
"ACP agent emitted non-JSON stdout; ignoring line",
);
expect(logger.warn.mock.calls[0]?.[0]).not.toHaveProperty("linePreview");
expect(consoleError).not.toHaveBeenCalled();
await writer.close();
@@ -153,8 +153,6 @@ export function createLoggedNdJsonStream(
{
err: error,
provider: options.provider,
linePreview:
trimmedLine.length > 500 ? `${trimmedLine.slice(0, 500)}...` : trimmedLine,
},
"ACP agent emitted non-JSON stdout; ignoring line",
);