messages: text content blocks must contain non-whitespace text #2623

Closed
opened 2026-02-16 17:36:31 -05:00 by yindo · 2 comments
Owner

Originally created by @towry on GitHub (Nov 6, 2025).

Description

unusable after a few minutes of use.

/compact not working

have to start new session, lost context.

OpenCode version

v1.0.34

Steps to reproduce

No way to provide such repro steps.

Screenshot and/or share link

Image

Operating System

macos

Terminal

ghostty

Originally created by @towry on GitHub (Nov 6, 2025). ### Description unusable after a few minutes of use. /compact not working have to start new session, lost context. ### OpenCode version v1.0.34 ### Steps to reproduce No way to provide such repro steps. ### Screenshot and/or share link <img width="762" height="989" alt="Image" src="https://github.com/user-attachments/assets/0275fe1b-cd2f-4cf1-8aa3-9a436e5f56e2" /> ### Operating System macos ### Terminal ghostty
yindo added the opentuibug labels 2026-02-16 17:36:31 -05:00
yindo closed this issue 2026-02-16 17:36:31 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 6, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3375: Same exact error message "text content block must contain non-whitespace text" when using Claude Sonnet 4.5, also makes OpenCode unusable after a few minutes
  • #1681: Same error when using /compact command, also mentions unusable terminal and need to restart session

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 6, 2025): This issue might be a duplicate of existing issues. Please check: - #3375: Same exact error message "text content block must contain non-whitespace text" when using Claude Sonnet 4.5, also makes OpenCode unusable after a few minutes - #1681: Same error when using /compact command, also mentions unusable terminal and need to restart session Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 6, 2025):

ill fix today, we had a fix out at one point but it was causing issues with another reasoning model

@rekram1-node commented on GitHub (Nov 6, 2025): ill fix today, we had a fix out at one point but it was causing issues with another reasoning model
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2623