Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(orchestration): do not revive idle tasks from status-free progress #7172

Mergedmaslinedwin(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/7172/headmerged by shivamhwp(GitHub profile, opens in a new tab) View on GitHub

Summary

Fixes #7128.

A delayed task.progress with no status was treated as live work after the same task had already gone idle. The thread then stayed Working with zero live agents.

Status-free progress is now a description tick only: it cannot re-add a task that is not already in the live set.

Test plan

  • ThreadBackgroundLiveness unit test matching the issue repro
  • Confirm a finished Codex thread no longer stays Working after a late progress event

Note

Low Risk Small, targeted change to in-memory sidebar liveness with a matching unit test; no auth, persistence, or ingestion contract changes.

Overview Fixes threads that stayed Working in the sidebar after background work had already gone idle (#7128).

ThreadBackgroundLiveness.recordTaskLiveness now treats progress events with no status as description-only updates: they can refresh an already-live task but cannot re-add a task that was removed (e.g. by idle). A late task.progress no longer resurrects the task into the agents/monitors set.

Adds a unit test for started → idle → status-free progress asserting thread liveness is null.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 10f223bada8b3da3c24eabc9258d3a3feb667f33. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Fix recordTaskLiveness to ignore status-free progress events for idle tasks

A progress event without a status field was incorrectly re-adding tasks to the live set, reviving tasks that had already transitioned to idle or completed. recordTaskLiveness in ThreadBackgroundLiveness.ts now returns early when a status-free progress event arrives for a task that is not currently in the live set.

Macroscope summarized 10f223b.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: 04eea548-0946-476e-a544-6c6d1e2c7577

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Approvability

      Verdict: Approved 10f223b

      Straightforward bug fix that adds a defensive check to prevent status-free progress events from incorrectly reviving idle tasks. The change is small, well-scoped, and includes a clear test case.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).

Sign in to join this conversation.