[Bug]: Gemini always show "Monitoring" after finishing a task and it seems to never end #12325
aledeul(GitHub profile, opens in a new tab) added labelsbug
aledeul(GitHub profile, opens in a new tab) added labelsneeds-triage
juliusmarminge removed labelsneeds-triage
juliusmarminge added labelsaccepted
juliusmarminge added labelsvia-triage
juliusmarminge closed this
Sign in to join this conversation.
Triage#
Verdict: likely confirmed (provider lifecycle / liveness, not a desktop-only UI glitch). Confidence medium-high on the mechanism; medium on “always,” because the report has no logs or screenshot.
Area (filed):
apps/desktopArea (actual):apps/serverAntigravity adapter + shared web/desktop Monitoring pill (apps/web) Already fixed onmain? No. Duplicate of: none. Same class as Grok leftover monitors, not the same bug.Suggested title (optional):
[Bug]: Antigravity/Gemini leaves "Monitoring" after the turn endsWhat happened#
Reporter (
@aledeul, macOS, T3 0.0.42): after a Gemini task finishes, the thread stays on Monitoring and never leaves that state. Expected: Monitoring should stop. Impact: minor. No logs, screenshot, or step-by-step repro.In T3, “Gemini” is the Antigravity provider (Google ACP; models such as
gemini-3.1-pro). Desktop hosts the same web chat/sidebar, so the pill is not Electron-specific.Diagnosis#
Monitoring is not a generic “busy” label. The sidebar / composer banner show it only when in-memory
backgroundLiveness === "monitoring": live watch-loop tasks (monitor,monitor_mcp,local_bash,shell) and no live agents.For Antigravity, any
executetool stillinProgresswhen the prompt returnsend_turnis promoted to a backgroundlocal_bashtask.local_bashis a monitor type, so the pill flips to Monitoring after the turn settles:Those tasks clear only if:
completed/failedfor that tool, orfinishBackgroundCommands/session.exited), orIf Gemini ends the turn while an execute tool is still
inProgressand never sends a later terminal tool update, Monitoring stays up. That matches “after finishing a task” and “never ends,” especially if it happens on every turn (staleinProgressexecute, or a harness-owned watcher that never completes).Two extra reasons it feels stuck:
ProviderSessionReaper,ThreadSettlementPolicy), so a leftover monitor also keeps the session alive.interruptTurnonlyruntime.cancels the current prompt. Afterend_turnthere is no prompt, and it does not emittask.completedfor promoted commands. #11159 (fix(web): stop background work through session teardown) is still open and is aimed at this Stop path. The composer comment that Stop “kills every live background task” is not true for Antigravity today.This is not the Grok bug. #9139 / #11680 are Grok
task_completednotices. Same user-visible pill, different adapter.Why this is likely a bug#
Promotion of real leftover shells (watch / tail) is intentional (
AntigravityAdapter.test.ts“tracks native commands that survive a turn”). Showing Monitoring forever after an ordinary finished Gemini turn is not.Most likely: Gemini/Antigravity ACP reports
end_turnwhile one or moreexecutetools are stillinProgress, and T3 promotes them with no later completion. Less likely, but possible: the user started an actual watcher and expected it to auto-stop.A no-tool “hello” turn should not show Monitoring. If it does, promotion or classification is wrong. If it only happens after a command/tool turn, we still need a completion or timeout so a finished task cannot pin the pill.
Workaround#
Questions for the reporter#
task.started/task.completed/turn.completedfor one stuck thread (redact secrets)?Recommended next step#
Keep as an open Antigravity lifecycle bug. Fix in the adapter, not desktop chrome:
local_bashtasks live afterend_turnunless they are clearly still running (or honor an Antigravity completion notice, same idea as #11680 for Grok).finishBackgroundCommandson interrupt-when-idle).inProgressatend_turnwith no later tool update must not pin Monitoring forever (or must clear on idle Stop).Related (same surface, not duplicates): #11680 (Grok leftover monitors), #11159 (banner Stop), #9139 (Grok monitor lifecycle), #7655 (completion vs live watch loop), #11428 (Stopping background work stuck Monitoring), #10164 (Monitoring notification hides Compact).