Migrate to Interactions API
Replaced the Chat API with the Interactions API for the main chat flow.
- Server-side conversation state: previous_interaction_id keeps conversation history server-side, reducing token cost for long conversations
- RAG + Vault Tools + Web Search + MCP all work simultaneously: Previously mutually exclusive features can now be combined freely
- Improved thinking support: Type-safe thinking control via thinking_level
- SDK updated from ^1.32.0 to ^1.46.0
Gemini API Best Practices
- Added safety settings (BLOCK_MEDIUM_AND_ABOVE) to all API calls
- Added finishReason checking to detect blocked/filtered responses (SAFETY, RECITATION)
- Extracted duplicated thinking config logic into shared buildThinkingConfig()
Removed
- History Canvas View: Removed due to incompatibility with dot-directory workspace folders
- Removed ragOnlyMode guard (no longer needed with Interactions API)