Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(orchestrator): Show when a completed delegated child still has work #4793

Mergedmwolson(GitHub profile, opens in a new tab)merged 5 commits intot3code/codex-turn-mapping fromrefs/pull/4793/headmerged by juliusmarminge View on GitHub

A delegated child can complete its original task and then receive more work. task_status previously exposed the original completion without showing those queued or running follow-ups, leaving the parent with an incomplete view of the child.

Keep the primary status and summary tied to the original delegated run. Add hasPendingChildRuns for later work and latestTerminal* fields for the most recent meaningful result. Rolled-back runs and later cancellations that never started do not replace that result. Result transfers are matched to the correct run, and the documentation explains how to interrupt a follow-up.

Rebased onto v2 at 07e8f8d40d, with the recorded Codex initialization updated for the current protocol. All 9 focused integration/tool/schema tests pass, including queued, running, terminal, cancelled, rolled-back, legacy, and context-transfer cases. Server and contracts typechecks, targeted lint, and formatting pass. The before/after proof is the task-status response asserted by those tests; there is no visual UI change.

This remains independent of #7427; their combined merge was checked for conflicts.

Current-head CI remains blocked by failures already present on v2: formatting, the migration-count expectation, lockfile-free dependency patch resolution, and stale provider replay fixtures. The focused checks above pass; these results do not establish green CI.

Original implementation by Mike Olson. Preparation: GPT-6 via Codex.

    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      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: 01b35af3-0ff9-4d34-b3a1-03a0248c2bf2

      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
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      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. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at bdbfdc9

      Macroscope's review found this PR approvable — This is a focused orchestrator status fix that adds pending-child and latest-terminal metadata while preserving existing delegated-task semantics. Its runtime scope is limited to reporting and is supported by targeted lifecycle integration coverage.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. mwolson(GitHub profile, opens in a new tab) changed the title

    5. Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

      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 4df586672d39f2d7a9fb7c9da43ce22ff6d7d6a8. Configure [here](https://www.cursor.com/dashboard/bugbot).
    6. t3dotgg(GitHub profile, opens in a new tab) added labelsvouch:trusted

    7. t3dotgg(GitHub profile, opens in a new tab) removed labelsvouch:unvouched

    8. mwolson(GitHub profile, opens in a new tab) changed the title

    9. juliusmarminge merged thisba8d91a

    10. juliusmarminge closed this

Sign in to join this conversation.