fix(core): preserve first-turn display content

This commit is contained in:
Adam Weidman
2026-03-26 11:04:51 -04:00
parent 56656dfbc9
commit 6fb7bcf868
11 changed files with 228 additions and 121 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ import {
isFatalToolError,
debugLogger,
coreEvents,
getErrorType,
getErrorMessage,
} from '@google/gemini-cli-core';
import { runSyncCleanup } from './cleanup.js';
@@ -82,7 +83,7 @@ export function handleError(
timestamp: new Date().toISOString(),
status: 'error',
error: {
type: error instanceof Error ? error.constructor.name : 'Error',
type: getErrorType(error),
message: errorMessage,
},
stats: streamFormatter.convertToStreamStats(metrics, 0),