feat(cli): overhaul thinking UI (#18725)

This commit is contained in:
Keith Guerin
2026-03-06 20:20:27 -08:00
committed by GitHub
parent 9455ecd78c
commit e5d58c2b5a
29 changed files with 763 additions and 184 deletions

View File

@@ -535,6 +535,19 @@ export function convertSessionToHistoryFormats(
const uiHistory: HistoryItemWithoutId[] = [];
for (const msg of messages) {
// Add thoughts if present
if (msg.type === 'gemini' && msg.thoughts && msg.thoughts.length > 0) {
for (const thought of msg.thoughts) {
uiHistory.push({
type: 'thinking',
thought: {
subject: thought.subject,
description: thought.description,
},
});
}
}
// Add the message only if it has content
const displayContentString = msg.displayContent
? partListUnionToString(msg.displayContent)