From 4881bafdb7679d1c4d5ed7ff44ff03b97a107cfd Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Wed, 15 Oct 2025 20:02:05 -0500 Subject: [PATCH] Revert "fix: Text content blocks must contain non-whitespace text (#3194)" This reverts commit b2ff4be4c6990bbad2576a13c13dba83245c89e0. --- packages/opencode/src/session/message-v2.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/opencode/src/session/message-v2.ts b/packages/opencode/src/session/message-v2.ts index 81b4158db..8dc059ca1 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",