qwen-code/packages/cli/src/ui/hooks
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
..
atCommandProcessor.test.ts centralize file filtering in FileDiscoveryService (#1039) 2025-06-14 14:25:34 +00:00
atCommandProcessor.ts centralize file filtering in FileDiscoveryService (#1039) 2025-06-14 14:25:34 +00:00
shellCommandProcessor.test.ts feat: Adds shell command context to gemini history (#1076) 2025-06-15 22:09:30 -04:00
shellCommandProcessor.ts feat: Adds shell command context to gemini history (#1076) 2025-06-15 22:09:30 -04:00
slashCommandProcessor.test.ts feat: Open MCP docs if no MCPs are configured (#1325) 2025-06-23 21:35:23 +00:00
slashCommandProcessor.ts feat: Open MCP docs if no MCPs are configured (#1325) 2025-06-23 21:35:23 +00:00
useAuthCommand.ts Auth blocking (#1261) 2025-06-20 10:46:41 -07:00
useAutoAcceptIndicator.test.ts
useAutoAcceptIndicator.ts
useCompletion.integration.test.ts Add setting enableRecursiveFileSearch to control @-file completion (#1290) 2025-06-22 01:23:35 +00:00
useCompletion.ts Add setting enableRecursiveFileSearch to control @-file completion (#1290) 2025-06-22 01:23:35 +00:00
useConsoleMessages.test.ts
useConsoleMessages.ts
useEditorSettings.test.ts
useEditorSettings.ts
useGeminiStream.test.tsx Ensure telemetry events are flushed immediately (#1344) 2025-06-23 22:05:02 +00:00
useGeminiStream.ts Add error messaging for 429 errors (#1316) 2025-06-23 21:30:13 +00:00
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 feat(auth): handle auth flow errors gracefully (#1256) 2025-06-20 01:30:06 -07:00
usePhraseCycler.ts
useReactToolScheduler.ts
useRefreshMemoryCommand.ts
useShellHistory.test.ts Move the shell history our of the project .gemini to the home dir (#1195) 2025-06-19 23:53:24 -04:00
useShellHistory.ts Move the shell history our of the project .gemini to the home dir (#1195) 2025-06-19 23:53:24 -04:00
useShowMemoryCommand.ts Update memory and context summary UI for multiple context filenames (#1282) 2025-06-21 19:15:43 +00:00
useStateAndRef.ts
useTerminalSize.ts
useThemeCommand.ts
useTimer.test.ts
useTimer.ts
useToolScheduler.test.ts Ensure telemetry events are flushed immediately (#1344) 2025-06-23 22:05:02 +00:00