mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-08 04:10:35 -07:00
feat(cli): overhaul thinking UI (#18725)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user