Previously only checked assistant messages for empty content. Now checks all messages except the final assistant message, following Anthropic API rules. Fixes: "messages.N: all messages must have non-empty content" error 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)