mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-17 01:21:10 -07:00
fix(core): ensure sub-agent schema and prompt refresh during runtime (#16409)
Co-authored-by: Sehoon Shon <sshon@google.com>
This commit is contained in:
@@ -65,6 +65,14 @@ export async function runExitCleanup() {
|
||||
}
|
||||
cleanupFunctions.length = 0; // Clear the array
|
||||
|
||||
if (configForTelemetry) {
|
||||
try {
|
||||
await configForTelemetry.dispose();
|
||||
} catch (_) {
|
||||
// Ignore errors during disposal
|
||||
}
|
||||
}
|
||||
|
||||
// IMPORTANT: Shutdown telemetry AFTER all other cleanup functions have run
|
||||
// This ensures SessionEnd hooks and other telemetry are properly flushed
|
||||
if (configForTelemetry && isTelemetrySdkInitialized()) {
|
||||
|
||||
Reference in New Issue
Block a user