TypeScript control flow analysis can't track reassignment inside vi.mock callbacks, causing lastSendChatArgs to narrow to never. Use non-null assertions after the explicit toBeNull() guard. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>