fix: filter messages with only step-start parts in toModelMessage (#6383)
parent
67ebe68160
commit
b157fd10a7
|
|
@ -20,3 +20,7 @@ opencode.json
|
|||
a.out
|
||||
target
|
||||
.scripts
|
||||
|
||||
# Local dev files
|
||||
opencode-dev
|
||||
logs/
|
||||
|
|
|
|||
|
|
@ -539,7 +539,7 @@ export namespace MessageV2 {
|
|||
}
|
||||
}
|
||||
|
||||
return convertToModelMessages(result.filter((msg) => msg.parts.length > 0))
|
||||
return convertToModelMessages(result.filter((msg) => msg.parts.some((part) => part.type !== "step-start")))
|
||||
}
|
||||
|
||||
export const stream = fn(Identifier.schema("session"), async function* (sessionID) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue