When resuming or forking a session fails with this error, it means a whitespace-only text part (e.g. "\n\n") was saved to the session history. The Claude API rejects whitespace-only text content blocks, so the session cannot be replayed.
opencode --session <id>oropencode run --session <id> --fork "..."fails immediately with: