OpenCode storage uses 'tool' type for tool calls, but the hasContent check only recognized 'tool_use' (Anthropic API format). This caused messages with tool calls to be incorrectly identified as empty.
OpenCode storage uses 'tool' type for tool calls, but the hasContent check only recognized 'tool_use' (Anthropic API format). This caused messages with tool calls to be incorrectly identified as empty.