mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(tui): don't force-open Activity on every error
Reverts the auto-expand-on-new-error effect added in 93b47d96. The
effect overrode the user's chosen detailsMode and visually interrupted
every turn. Red/yellow chevron tint remains as the passive signal —
click to read, just like Thinking and Tool calls.
This commit is contained in:
parent
83d86ce344
commit
76ad697dcb
1 changed files with 1 additions and 12 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { Box, NoSelect, Text } from '@hermes/ink'
|
||||
import { memo, type ReactNode, useEffect, useMemo, useState } from 'react'
|
||||
import { memo, useEffect, useMemo, useState, type ReactNode } from 'react'
|
||||
import spinners, { type BrailleSpinnerName } from 'unicode-animations'
|
||||
|
||||
import { THINKING_COT_MAX } from '../config/limits.js'
|
||||
|
|
@ -596,17 +596,6 @@ 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