mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 10:14:22 +01:00
Revert "fix: Text content blocks must contain non-whitespace text" (#3200)
This commit is contained in:
@@ -513,8 +513,6 @@ export namespace MessageV2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (msg.info.role === "assistant") {
|
if (msg.info.role === "assistant") {
|
||||||
const hasEmptyTextPart = msg.parts.some((part) => part.type === "text" && part.text.trim() === "")
|
|
||||||
if (hasEmptyTextPart) continue
|
|
||||||
result.push({
|
result.push({
|
||||||
id: msg.info.id,
|
id: msg.info.id,
|
||||||
role: "assistant",
|
role: "assistant",
|
||||||
|
|||||||
Reference in New Issue
Block a user