mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-19 00:02:51 -07:00
d68cc3a88f
Add onBackground event to ExecutionLifecycleService that fires when any execution is moved to the background. The CLI subscribes to this event and automatically registers background tasks in the UI — no per-tool changes needed. Any tool that calls ExecutionLifecycleService.createExecution() or attachExecution() now automatically gets Ctrl+B support. Shell-specific concerns (PTY log files) stay in ShellExecutionService. Forward setExecutionIdCallback through SubAgentInvocation so agents can expose their execution ID to the scheduler for backgrounding. Route registerBackgroundTask and dismissBackgroundTask through ExecutionLifecycleService instead of ShellExecutionService for agnostic subscribe/onExit/kill support.