fix(tui): keep live tool state before stream segments

This commit is contained in:
Brooklyn Nicholson
2026-04-26 14:06:42 -05:00
parent 7b5b524fc7
commit 3d21f97422

View File

@@ -36,21 +36,8 @@ const StreamingAssistant = memo(function StreamingAssistant({
return (
<>
{progress.streamSegments.map((msg, i) => (
<MessageLine
cols={cols}
compact={compact}
detailsMode={detailsMode}
detailsModeCommandOverride={detailsModeCommandOverride}
key={`seg:${i}`}
msg={msg}
sections={sections}
t={t}
/>
))}
{progress.showProgressArea && (
<Box flexDirection="column" marginBottom={progress.showStreamingArea ? 1 : 0}>
<Box flexDirection="column" marginBottom={progress.streamSegments.length || progress.showStreamingArea ? 1 : 0}>
<ToolTrail
activity={progress.activity}
busy={busy}
@@ -71,6 +58,19 @@ const StreamingAssistant = memo(function StreamingAssistant({
</Box>
)}
{progress.streamSegments.map((msg, i) => (
<MessageLine
cols={cols}
compact={compact}
detailsMode={detailsMode}
detailsModeCommandOverride={detailsModeCommandOverride}
key={`seg:${i}`}
msg={msg}
sections={sections}
t={t}
/>
))}
{progress.showStreamingArea && (
<MessageLine
cols={cols}