tui: fix prompt text aggregation to exclude synthetic content

This commit is contained in:
Dax Raad
2025-10-31 20:01:21 -04:00
parent 5ded6d6ad7
commit 10a4455c6f

View File

@@ -241,7 +241,9 @@ export function Session() {
prompt.set( prompt.set(
parts.reduce( parts.reduce(
(agg, part) => { (agg, part) => {
if (part.type === "text") agg.input += part.text if (part.type === "text") {
if (!part.synthetic) agg.input += part.text
}
if (part.type === "file") agg.parts.push(part) if (part.type === "file") agg.parts.push(part)
return agg return agg
}, },