Skip to content

[Bug]: Antigravity (agy) sessions show Idle while they are running #19829

Closed

Description

@skyblue

Summary

Orca does not correctly reflect the running status of Antigravity CLI (agy) sessions. The UI shows Idle while the underlying session is still running.

Steps to reproduce

  1. Start an Antigravity CLI (agy) session in Orca.
  2. Keep the session running.
  3. Check its status in the workspace or session list.

Actual behavior

The session is shown as Idle even though it is still running. The UI shows two agy sessions with the Idle status.

Expected behavior

A running agy session should be shown as Running, and status transitions should remain synchronized with the actual agent lifecycle.

Suspected cause

The agy lifecycle/status hooks may not be wired into Orca's status tracking, or the running/idle event mapping may be incomplete. This is a hypothesis for investigation.

Environment

  • Orca version: 1.4.198
  • OS: macOS

Activity

  1. added theissue type on Sep 19, 2026
  2. nwparker commented on Sep 19, 2026

    @nwparker
    Contributor

    Additional installed-CLI verification (agy 1.2.7, macOS): the native read-only command

    agy --print /hooks --output-format json --print-timeout 5s --sandbox

    returned SUCCESS, num_turns: 0, and one enabled hook named orca-status. Its command actions register these five events:

    • PreInvocation
    • PostInvocation
    • PreToolUse
    • PostToolUse
    • Stop

    ELI5: agy itself confirms that it loaded Orca’s hook instructions. This is stronger than only checking that a configuration file exists. It still does not prove that a particular event was emitted, that the command completed, or that Orca received its status update.

    No hook settings were changed. The raw response includes local command/path details and is intentionally not attached. This command is verified on 1.2.7; do not assume older versions support the same print-mode command.

    The earlier workspace-local hook probes were not loaded by this installation, and generation continues to fail with 401 ACCESS_TOKEN_TYPE_UNSUPPORTED. Therefore successful-turn hook delivery and the reported idle-while-running behavior remain unverified; there is no new status-mapping patch or closure claim from this check.

  3. nwparker commented on Sep 20, 2026

    @nwparker
    Contributor

    Fresh awin evidence: agy 1.2.7 reached a real authenticated TUI and returned to a bare composer; a refreshed /hooks probe reported all five managed orca-status events. This confirms the CLI and hook registration, but does not prove Orca received lifecycle events or rendered Running instead of Idle.

    ELI5: the messenger is installed and the phone can place a call; we still need to observe Orca receiving the call and changing the status label. The idle-while-running report remains open.

  4. nwparker commented on Sep 20, 2026

    @nwparker
    Contributor

    ELI5: agy itself can be ready while Orca still shows Idle if Orca never receives the hook event that means “work started.” The real TUI and hook-registration probes pass, but a live Orca-rendered Idle → Running transition has not been captured, so this issue stays open without a speculative fix.

  5. nwparker commented on Oct 24, 2026

    @nwparker
    Contributor

    Thanks for the report! Please retest on 1.4.239+ and share: Orca version, OS, agy --version, and orca worktree ps --json during a running turn plus the agent-hooks log lines (redacted). Please redact anything private before sharing; screenshots or log excerpts are fine.

  6. nwparker commented on Nov 6, 2026

    @nwparker
    Contributor

    Thanks for the report. We couldn't reproduce this on the current build, and several related fixes have landed since. Could you retest on the latest Orca and, if it still happens, reply with: OS + Orca version + agy --version, minimal steps to reproduce, and any relevant logs/screenshots? We'll close this as insufficient information in 14 days if we don't hear back.

    The likely cause (the status hook waiting on stdin and getting killed before reporting) was fixed in #24596, #24622, #27713, #33645 and #34128 — if it still happens, the hook/status lines from Orca's logs while the session is running would help.

  7. added
    pending_reproRepro attempted; still pending conclusive reproduction
    on Nov 6, 2026
  8. nwparker commented on Nov 7, 2026

    @nwparker
    Contributor

    We retested this on current main (c108ee4) with a real agy 1.5.2 in an Orca dev build (e2e build, isolated profile and HOME) on macOS. Orca shows agy as Working for the whole run and doesn't fall back to Idle.

    What we ran

    • We started agy --dangerously-skip-permissions in Orca terminal tabs. Orca installed its orca-status hooks (PreInvocation, PostInvocation, PreToolUse, PostToolUse and Stop) into the isolated ~/.gemini/config/hooks.json.
    • agy's model requests went to a local scripted Gemini endpoint through agy's supported GOOGLE_GEMINI_BASE_URL. Each turn was a real agy turn: the model called run_command (sleep 8), agy ran its safety-rater calls, and the model then sent its final text. A turn took about 25 s.
    • We typed the prompt through the real Orca terminal input and checked both the store and the rendered sidebar status (AgentStateDot aria-label) every 500 ms.

    Result

    Fixes that landed since 1.4.198: #24596 (POSIX hooks launched through sh with bounded stdin), #27713, #33645 and #34128.

    Closing as fixed. If you still see Idle while agy is running on the latest Orca, please reopen with your Orca version, agy --version, and orca worktree ps --json taken during the run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpending_reproRepro attempted; still pending conclusive reproduction

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions