feat(gemini): ACP integration, agent architecture refactor, and UX improvements #128
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Major improvements to Gemini integration including ACP (Agent Communication Protocol) support, architectural refactoring of the agent module, and enhanced user experience features.
Changes
🏗️ Agent Module Architecture Refactor
AgentBackend,AgentRegistrytocore/transport/withTransportHandlerabstractionadapters/for message transformation (MessageAdapter,MobileMessageFormat)factories/for high-level agent creationAcpSdkBackend→AcpBackendGeminiTransporthandler for Gemini-specific logic🔌 ACP Integration for Gemini
sendAgentMessage()for unified Agent Communication Protocol formatsendCodexMessagetosendAgentMessage(gemini, ...)task_started,task_complete,turn_aborted,permission-request🔄 Model Selection & History
meta.model~/.gemini/config.jsonfor persistenceConversationHistoryclass to preserve context when switching models🔐 Permission Handling
GeminiPermissionHandlerwith permission modes (default, read-only, safe-yolo, yolo)🔐 Google Cloud Project Support
happy gemini project set/getcommands for Workspace/enterprise accountsGOOGLE_CLOUD_PROJECTenv var to Gemini SDK🛠️ Error Handling & Reliability
waitForResponseComplete()to ensure all chunks received beforetask_complete📱 UX Improvements
happy connect statuscommand to show vendor auth status~/.gemini/oauth_creds.jsononhappy connect gemini🐛 Bug Fixes