Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(orchestrator): Stop treating a wait timeout as a dead child #7427

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

Agents could treat a delegate_task wait timeout as a failed child and start duplicate work. The tool description and published schema now explain that timeoutMs limits the parent's wait, the child keeps running, and the caller should retain its taskId and use task_status when it needs the result.

This documents the existing runtime behavior. It preserves asynchronous completion delivery and changes no scheduling or cancellation policy.

Rebased onto the current v2 branch (07e8f8d40d). The two focused tool/schema test files pass (8 tests), as do server and contracts typechecks, targeted lint, and formatting. The assertions verify the guidance exposed to agents; this has no visual UI change. Runtime polling and wait implementation are outside this PR.

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: 8fa99454-5e9a-4c3d-a91e-bdc5f5da5a6b

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

      Approvability

      Verdict: Approved at 158c7a3

      Macroscope's review found this PR approvable — The PR only clarifies existing delegated-task timeout semantics in tool and schema descriptions and adds tests for that guidance. Orchestration behavior, validation, defaults, and persistence remain unchanged; the limited model-facing behavior shift is confined to preventing duplicate delegation after a wait timeout.

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

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

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

    7. juliusmarminge merged thisfff6605

    8. juliusmarminge closed this

Sign in to join this conversation.