mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tui: fix prompt text aggregation to exclude synthetic content
This commit is contained in:
parent
5ded6d6ad7
commit
10a4455c6f
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue