mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-18 07:43:00 -07:00
cbcb5aa2b1
New invocation class that delegates to RemoteSubagentSession instead of directly managing A2A client streaming. Existing RemoteAgentInvocation is untouched — this will be wired in behind a feature flag in a later PR. Key behaviors: - Static sessionState map persists A2A contextId/taskId across invocations - Subscribes to session message events for live SubagentProgress updates - Detects post-getResult abort and surfaces proper error state - Includes partial output in error display via getLatestProgress() - Properly cleans up abort listeners and subscriptions in finally block Also adds initialState param and getSessionState() to RemoteSubagentProtocol/RemoteSubagentSession for cross-invocation state persistence.