mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tweak: delimit consecutive queued user messages
Minor: newline between consecutive user messages in batch. Clearer separation when inputs queue.
This commit is contained in:
parent
b1b82977ec
commit
20b74b8401
1 changed files with 1 additions and 1 deletions
|
|
@ -565,7 +565,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