mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
fix(tui): restore gap before duration when verb segment is hidden
The verb-padding change dropped the leading space in durationSegment on
the assumption that the verb's trailing pad always supplies the gap. But
the unicode spinner style sets showVerb=false, making verbSegment an
empty string — in that mode the output would become `{frame}· {duration}`
with no separator. Add the space back; harmless when the verb segment
is shown (its trailing pad still provides the gap).
This commit is contained in:
parent
ca5febfed1
commit
a0556b861f
1 changed files with 5 additions and 1 deletions
|
|
@ -110,7 +110,11 @@ function FaceTicker({ color, startedAt }: { color: string; startedAt?: null | nu
|
||||||
const { frame } = renderIndicator(style, tick)
|
const { frame } = renderIndicator(style, tick)
|
||||||
const verb = VERBS[verbTick % VERBS.length] ?? ''
|
const verb = VERBS[verbTick % VERBS.length] ?? ''
|
||||||
const verbSegment = showVerb ? ` ${padVerb(verb)}` : ''
|
const verbSegment = showVerb ? ` ${padVerb(verb)}` : ''
|
||||||
const durationSegment = startedAt ? `· ${padTickerDuration(now - startedAt)}` : ''
|
// Leading space keeps a gap between the frame and the duration when the
|
||||||
|
// verb segment is hidden (e.g. `unicode` spinner style). When the verb
|
||||||
|
// IS shown, its trailing padding already provides the gap, so the extra
|
||||||
|
// space is harmless.
|
||||||
|
const durationSegment = startedAt ? ` · ${padTickerDuration(now - startedAt)}` : ''
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Text color={color}>
|
<Text color={color}>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue