mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-14 09:11:54 +00:00
Merge pull request #13180 from NousResearch/fix/tui-activity-autoexpand-on-error
fix(tui): auto-expand Activity section on error
This commit is contained in:
commit
39a80eace7
1 changed files with 11 additions and 0 deletions
|
|
@ -596,6 +596,17 @@ export const ToolTrail = memo(function ToolTrail({
|
|||
}
|
||||
}, [detailsMode])
|
||||
|
||||
const latestErrorId = useMemo(
|
||||
() => activity.reduce((max, i) => (i.tone === 'error' && i.id > max ? i.id : max), -1),
|
||||
[activity]
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
if (latestErrorId >= 0) {
|
||||
setOpenMeta(true)
|
||||
}
|
||||
}, [latestErrorId])
|
||||
|
||||
const cot = useMemo(() => thinkingPreview(reasoning, 'full', THINKING_COT_MAX), [reasoning])
|
||||
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue