mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-30 01:41:43 +00:00
fix(tui): keep the Thinking expander visible for the whole turn
Previously `hasThinking = !!cot || reasoningActive || (busy && !hasTools)` so the moment a tool started streaming (`hasTools` → true) the expander vanished mid-turn. If the model also produced no `reasoning.delta` events (reasoning-less models, or reasoning arriving after tools), the whole turn ran with no Thinking row — then `message.complete` populated `msg.thinking` from the payload's post-hoc reasoning trace and the expander suddenly appeared in the transcript AFTER the turn. Drop the `!hasTools` restriction. The Thinking row now anchors for the entire `busy` window; tools and thinking coexist as sibling sections (they already did — the exclusion was a UX mistake). Reasoning-less models show a dim empty header; streaming models show live content; tool-interleaved turns keep the anchor visible throughout.
This commit is contained in:
parent
aedc767c66
commit
26859e3fcb
1 changed files with 1 additions and 1 deletions
|
|
@ -692,7 +692,7 @@ export const ToolTrail = memo(function ToolTrail({
|
|||
const hasTools = groups.length > 0
|
||||
const hasSubagents = subagents.length > 0
|
||||
const hasMeta = meta.length > 0
|
||||
const hasThinking = !!cot || reasoningActive || (busy && !hasTools)
|
||||
const hasThinking = !!cot || reasoningActive || busy
|
||||
const thinkingLive = reasoningActive || reasoningStreaming
|
||||
|
||||
const tokenCount = reasoningTokens !== undefined ? reasoningTokens : reasoning ? estimateTokensRough(reasoning) : 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue