feat(desktop): show richer status when thinking

thinking-toggle-wip
Adam 2025-12-13 15:47:50 -06:00 committed by Aiden Cline
parent 4202298422
commit eceac1e727
1 changed files with 11 additions and 2 deletions

View File

@ -185,11 +185,20 @@ export function SessionTurn(
default:
break
}
} else if (last.type === "reasoning") {
}
if (last.type === "reasoning") {
const text = last.text ?? ""
const trimmed = text.trimStart()
const match = trimmed.match(/^\*\*(.+?)\*\*/)
if (match) return `Thinking · ${match[1].trim()}`
return "Thinking"
} else if (last.type === "text") {
}
if (last.type === "text") {
return "Gathering thoughts"
}
return undefined
})