Description
OpenCode sometimes sends a “user sent an empty message” even when I did not manually submit anything. This can also trigger upstream errors (e.g., Claude/Bedrock: messages: text content blocks must be non-empty) when using OpenAI-compatible proxy layers that translate requests to Anthropic format.
Plugins
No response
OpenCode version
1.1.21
Steps to reproduce
- Start OpenCode TUI with a whitespace-only prompt, for example:
• opencode --prompt " "
• or opencode --prompt "\n"
- Observe that OpenCode auto-submits the prompt on startup and a user message is created even though it contains only whitespace.
Screenshot and/or share link
https://opncd.ai/share/32IIf93w
Operating System
Windows 10
Terminal
opencode-desktop-windows-x64.exe