Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(grok): emit task lifecycle for monitors and background shells #9139

MergedSvyk(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/9139/headmerged by maria-rcks View on GitHub

grok monitors and background shells outlive their turns, but without task lifecycle events t3 shows them as idle and can reap the live session. map grok's discriminated tool results directly to the existing task events, with one map for live task identity and originating turn. completion and successful kills clear monitoring; failed or already-exited kills do not falsely mark tasks stopped.

verified with 96 focused tests, server typecheck, scoped lint and formatting on blacksmith. authenticated grok 1.0.30 in the real t3 web client exercised monitor/shell starts, automatic completion, mixed polling across turns, and explicit cancellation.

known limitation: the existing t3 stop button sends turn cancellation rather than killing a background monitor. grok's explicit kill tool works; changing that control is outside this lifecycle-mapping change.

authenticated grok monitor being killed and returning to idle

model: gpt-6-astra; harness: codex.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

      Fix All in Cursor ❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot). Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit d11b761b106423f6c4ce1928140e1a0832721ab9. Configure [here](https://www.cursor.com/dashboard/bugbot).
    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This PR introduces substantial production-path task lifecycle mapping for Grok monitors and background shells, affecting runtime events, liveness, session reaping, and existing UI activity projections. Although focused tests and follow-up guards are included, the new stateful parser and cross-turn behavior are broader than an automatically approvable small fix.

      Adjust the Minimum Blocking Severity for this repo — including turning it Off — in [Settings](https://app.macroscope.com/pingdotgg/settings#Repos). You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Svyk(GitHub profile, opens in a new tab) changed the title

    5. Bugbot is paused — on-demand spend limit reached

      Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

      A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

    6. maria-rcks merged this3138f57

    7. maria-rcks closed this

Sign in to join this conversation.