mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-07 02:51:50 +00:00
fix(tui): apply details mode live
This commit is contained in:
parent
6814646b36
commit
a8fcd1c742
12 changed files with 56 additions and 19 deletions
|
|
@ -681,6 +681,7 @@ interface Group {
|
|||
|
||||
export const ToolTrail = memo(function ToolTrail({
|
||||
busy = false,
|
||||
commandOverride = false,
|
||||
detailsMode = 'collapsed',
|
||||
outcome = '',
|
||||
reasoningActive = false,
|
||||
|
|
@ -696,6 +697,7 @@ export const ToolTrail = memo(function ToolTrail({
|
|||
activity = []
|
||||
}: {
|
||||
busy?: boolean
|
||||
commandOverride?: boolean
|
||||
detailsMode?: DetailsMode
|
||||
outcome?: string
|
||||
reasoningActive?: boolean
|
||||
|
|
@ -712,12 +714,12 @@ export const ToolTrail = memo(function ToolTrail({
|
|||
}) {
|
||||
const visible = useMemo(
|
||||
() => ({
|
||||
thinking: sectionMode('thinking', detailsMode, sections),
|
||||
tools: sectionMode('tools', detailsMode, sections),
|
||||
subagents: sectionMode('subagents', detailsMode, sections),
|
||||
activity: sectionMode('activity', detailsMode, sections)
|
||||
thinking: sectionMode('thinking', detailsMode, sections, commandOverride),
|
||||
tools: sectionMode('tools', detailsMode, sections, commandOverride),
|
||||
subagents: sectionMode('subagents', detailsMode, sections, commandOverride),
|
||||
activity: sectionMode('activity', detailsMode, sections, commandOverride)
|
||||
}),
|
||||
[detailsMode, sections]
|
||||
[commandOverride, detailsMode, sections]
|
||||
)
|
||||
|
||||
const [now, setNow] = useState(() => Date.now())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue