From 9b2d4c6180a8bd0cce5f6e3a5fb7acd9947d607e Mon Sep 17 00:00:00 2001 From: gemini-cli-robot Date: Thu, 9 Oct 2025 16:57:02 -0700 Subject: [PATCH] fix(patch): cherry-pick cce2457 to release/v0.8.1-pr-10856 to patch version v0.8.1 and create version 0.8.2 (#10859) Co-authored-by: owenofbrien <86964623+owenofbrien@users.noreply.github.com> --- .../telemetry/clearcut-logger/clearcut-logger.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts b/packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts index 2489ac9962..3a077c49fa 100644 --- a/packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts +++ b/packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts @@ -902,7 +902,9 @@ export class ClearcutLogger { this.enqueueLogEvent( this.createLogEvent(EventNames.EXTENSION_INSTALL, data), ); - this.flushIfNeeded(); + this.flushToClearcut().catch((error) => { + console.debug('Error flushing to Clearcut:', error); + }); } logExtensionUninstallEvent(event: ExtensionUninstallEvent): void { @@ -920,7 +922,9 @@ export class ClearcutLogger { this.enqueueLogEvent( this.createLogEvent(EventNames.EXTENSION_UNINSTALL, data), ); - this.flushIfNeeded(); + this.flushToClearcut().catch((error) => { + console.debug('Error flushing to Clearcut:', error); + }); } logToolOutputTruncatedEvent(event: ToolOutputTruncatedEvent): void { @@ -1003,7 +1007,9 @@ export class ClearcutLogger { this.enqueueLogEvent( this.createLogEvent(EventNames.EXTENSION_ENABLE, data), ); - this.flushIfNeeded(); + this.flushToClearcut().catch((error) => { + console.debug('Error flushing to Clearcut:', error); + }); } logModelSlashCommandEvent(event: ModelSlashCommandEvent): void { @@ -1036,7 +1042,9 @@ export class ClearcutLogger { this.enqueueLogEvent( this.createLogEvent(EventNames.EXTENSION_DISABLE, data), ); - this.flushIfNeeded(); + this.flushToClearcut().catch((error) => { + console.debug('Error flushing to Clearcut:', error); + }); } /**