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

This reverts commit b2ff4be4c6.
This commit is contained in:
Aiden Cline 2025-10-15 20:02:05 -05:00 committed by GitHub
parent ab8471a7ff
commit 4881bafdb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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",