Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 10a4455

Browse files
committed
tui: fix prompt text aggregation to exclude synthetic content
1 parent 5ded6d6 commit 10a4455

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • packages/opencode/src/cli/cmd/tui/routes/session

packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ export function Session() {
241241
prompt.set(
242242
parts.reduce(
243243
(agg, part) => {
244-
if (part.type === "text") agg.input += part.text
244+
if (part.type === "text") {
245+
if (!part.synthetic) agg.input += part.text
246+
}
245247
if (part.type === "file") agg.parts.push(part)
246248
return agg
247249
},

0 commit comments

Comments
 (0)