gemini-cli/packages/cli
Jerop Kipruto b443b5e800
Ensure telemetry events are flushed immediately (#1344)
The previous implementation used `flushIfNeeded` to batch most telemetry events, but it was not reliably sending them, leading to data loss. Notably, the `startSession` event, which already used `flushToClearcut`, was working correctly, indicating an issue with the batching logic itself.

This change replaces all calls to `flushIfNeeded` with `flushToClearcut` to align all event logging with the working `startSession` implementation and ensure that events are sent immediately. This prioritizes the reliability of data collection over network efficiency.

This is a temporary solution to prevent further data loss. The underlying issue with the batching mechanism in `flushIfNeeded` should be investigated and fixed in the future, at which point this change can be reverted.
2025-06-23 22:05:02 +00:00
..
src Ensure telemetry events are flushed immediately (#1344) 2025-06-23 22:05:02 +00:00
index.ts Auth First Run (#1207) 2025-06-19 16:52:22 -07:00
package.json refactor: remove docker tagging step from sandbox publishing (#1223) 2025-06-19 12:19:39 -07:00
tsconfig.json Auto-update notifications (#1110) 2025-06-17 15:24:07 +00:00
vitest.config.ts Set slice=true on tests to supress output. (#1168) 2025-06-19 15:27:00 -07:00