Skip to content

[Bug]: Grok persistent monitor stays Working after it already exited; Stop does nothing and the final recap never shows #12502

Description

@jameswasher

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Open T3 Code desktop (Nightly) on a Grok Build thread (grok-4.6).
  2. Run a long /pr (or any turn that starts a Grok monitor with persistent: true) to watch merge-queue / deploy.
  3. Let the work actually finish. On the Grok side the monitor exits (already_exited / process gone). The agent writes a final recap (merged, deploy green, Slack posted).
  4. Look at the T3 thread. Try the Stop control on the still-showing monitor row.

Reproduced on every Grok /pr session that uses a persistent monitor, including The-Infinite-Actuary/core#5537 on 2026-09-18.

Expected behavior

When the Grok monitor exits, T3 should:

  • drop the monitoring / Working state
  • show the agent's final recap in the thread
  • make Stop a no-op on an already-dead monitor, not a stuck spinner

Actual behavior

  • T3 keeps showing a monitoring / Working state after the ship is done.
  • Stop does not clear it. kill_command_or_subagent from a later Grok turn returns already_exited for every monitor id in the session.
  • The final recap often never appears in the T3 thread. The user has to send a follow-up ("status?") to find out the work finished.

Grok finished. T3 did not.

Impact

Major degradation or frequent failure

Version or commit

T3 Code (Nightly) 0.0.41-nightly.20260915.1752

Environment

  • macOS 26.6.2 (arm64)
  • T3 Code (Nightly) desktop
  • Grok CLI 1.0.34 (3736acbc8658) [stable]
  • provider Grok Build, model grok-4.6

Logs or stack traces

Session used five persistent monitor tasks to watch a ship-driver / merge queue / Deploy run. All five later returned already_exited from kill_command_or_subagent. T3 still showed monitoring.

Monitor ids from that session (all already exited):

  • 01a0b513-9876-7771-ac58-5bea3abffeab
  • 01a0b53a-e2e4-7912-b857-c7c47f933db7
  • 01a0b57a-792c-7d72-85a0-be465b1ee6fc
  • 01a0b59e-ab36-7cb2-90d5-db3e031cf300
  • 01a0b5a2-3f63-71e3-a1d4-f9b8f8b4a505

Workaround

Ask the agent for status in a new message. Ignore or refresh the stuck monitor row. Stop in the T3 UI does not help.

Additional context

Related but not the same:

Please treat this as a bug against current Nightly, not as "the agent forgot to report." The recap was written; T3 did not project it, and the monitor row stayed live.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions