Standardize error logging with coreEvents.emitFeedback (#12199)

This commit is contained in:
Sehoon Shon
2025-10-29 18:27:17 -04:00
committed by GitHub
parent 36207abec2
commit 523274dbf3
3 changed files with 17 additions and 15 deletions

View File

@@ -11,6 +11,7 @@ import * as schema from './schema.js';
export * from './schema.js';
import type { WritableStream, ReadableStream } from 'node:stream/web';
import { coreEvents } from '@google/gemini-cli-core';
export class AgentSideConnection implements Client {
#connection: Connection;
@@ -281,7 +282,7 @@ class Connection {
})
.catch((error) => {
// Continue processing writes on error
console.error('ACP write error:', error);
coreEvents.emitFeedback('error', 'ACP write error.', error);
});
return this.#writeQueue;
}