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:
Brooklyn Nicholson 2026-04-21 22:51:30 -05:00 committed by Teknium
parent 83d86ce344
commit 76ad697dcb

View file

@ -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 (