From 10a4455c6fd231dab58ce59fe59c747e3f7105b0 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Fri, 31 Oct 2025 20:01:21 -0400 Subject: [PATCH] tui: fix prompt text aggregation to exclude synthetic content --- packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx index 78b1ed4a..dac9fd9a 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -241,7 +241,9 @@ export function Session() { prompt.set( parts.reduce( (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) return agg },