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. |
||
|---|---|---|
| .. | ||
| atCommandProcessor.test.ts | ||
| atCommandProcessor.ts | ||
| shellCommandProcessor.test.ts | ||
| shellCommandProcessor.ts | ||
| slashCommandProcessor.test.ts | ||
| slashCommandProcessor.ts | ||
| useAuthCommand.ts | ||
| useAutoAcceptIndicator.test.ts | ||
| useAutoAcceptIndicator.ts | ||
| useCompletion.integration.test.ts | ||
| useCompletion.ts | ||
| useConsoleMessages.test.ts | ||
| useConsoleMessages.ts | ||
| useEditorSettings.test.ts | ||
| useEditorSettings.ts | ||
| useGeminiStream.test.tsx | ||
| useGeminiStream.ts | ||
| useGitBranchName.test.ts | ||
| useGitBranchName.ts | ||
| useHistoryManager.test.ts | ||
| useHistoryManager.ts | ||
| useInputHistory.test.ts | ||
| useInputHistory.ts | ||
| useLoadingIndicator.test.ts | ||
| useLoadingIndicator.ts | ||
| useLogger.ts | ||
| usePhraseCycler.test.ts | ||
| usePhraseCycler.ts | ||
| useReactToolScheduler.ts | ||
| useRefreshMemoryCommand.ts | ||
| useShellHistory.test.ts | ||
| useShellHistory.ts | ||
| useShowMemoryCommand.ts | ||
| useStateAndRef.ts | ||
| useTerminalSize.ts | ||
| useThemeCommand.ts | ||
| useTimer.test.ts | ||
| useTimer.ts | ||
| useToolScheduler.test.ts | ||