Add pendingMsgs buffer to geminiSession to accumulate assistant messages before classifying them as either EventThinking or EventText. This improves message handling by deferring classification until we have context from tool use or result events. generated by llmgit Co-Authored-By: Claude <noreply@anthropic.com>