Skip to content

The open source coding agent.

TypeScript

Revert "fix: Text content blocks must contain non-whitespace text" (#3200)

Aiden Cline1c59530115d0
diff --git a/packages/opencode/src/session/message-v2.ts b/packages/opencode/src/session/message-v2.ts
index 81b4158dbb8..8dc059ca187 100644
--- a/packages/opencode/src/session/message-v2.ts
+++ b/packages/opencode/src/session/message-v2.ts
@@ -513,8 +513,6 @@ export namespace MessageV2 {
}
if (msg.info.role === "assistant") {
- const hasEmptyTextPart = msg.parts.some((part) => part.type === "text" && part.text.trim() === "")
- if (hasEmptyTextPart) continue
result.push({
id: msg.info.id,
role: "assistant",