feat(desktop): show richer status when thinking
This commit is contained in:
parent
4202298422
commit
eceac1e727
1 changed files with 11 additions and 2 deletions
|
|
@ -185,11 +185,20 @@ export function SessionTurn(
|
||||||
default:
|
default:
|
||||||
break
|
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"
|
return "Thinking"
|
||||||
} else if (last.type === "text") {
|
}
|
||||||
|
|
||||||
|
if (last.type === "text") {
|
||||||
return "Gathering thoughts"
|
return "Gathering thoughts"
|
||||||
}
|
}
|
||||||
|
|
||||||
return undefined
|
return undefined
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue