mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-19 00:02:51 -07:00
6f7658cb17
Wire RemoteAgentInvocation to use ExecutionLifecycleService.createExecution() so remote agents can be backgrounded (Ctrl+B), subscribed to, and killed through the same lifecycle system as shell commands. - Create virtual execution on execute(), report ID via setExecutionIdCallback - Stream output deltas via appendOutput() so lifecycle subscribers see live data - Separate streaming into detached processStream() that settles the lifecycle - Support backgrounding: handle.result resolves with backgrounded=true, stream continues running, returns BackgroundExecutionData - Support kill: lifecycle onKill aborts the stream via AbortController