mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
Merge 20b74b8401 into 83397ebde2
This commit is contained in:
commit
2c27439366
1 changed files with 1 additions and 1 deletions
|
|
@ -427,7 +427,7 @@ export namespace MessageV2 {
|
|||
const userMessage: UIMessage = {
|
||||
id: msg.info.id,
|
||||
role: "user",
|
||||
parts: [],
|
||||
parts: result.at(-1)?.role === "user" ? [{ type: "text", text: "\n" }] : [],
|
||||
}
|
||||
result.push(userMessage)
|
||||
for (const part of msg.parts) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue