Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): remote tasks report their actual model #37332

Mergedyazcaleb(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/37332/headmerged by juliusmarminge View on GitHub

yazcaleb(GitHub profile, opens in a new tab)commented

Problem

A completed task on a linked machine returned executedModel: null through task_status, while t3_thread_read reported the actual model for the same run.

Change

Save the model from the result-producing run when the remote task completes, then return it in the existing result field. Missing reports stay null.

Scope

Small fix for an existing field that drops metadata the peer already returns; no separate issue.

Verification

  • Existing linked-peer test: the fixture's gpt-5.4-mini became null before the fix and now reaches task_status. A continuation without a model report still returns null.
  • vp run check:changed on Node 26.13.1 passed, including 183 tests. CI build, tests and release smoke also passed on 224026a.

Created with GPT-6.1 Sol in the Codex harness through T3 Code.

    1. tanstack-source added labelsbug

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

    3. Approvability

      Verdict: Approved at 224026a

      Macroscope's review found this PR approvable — Remote task results now preserve the model reported by the run that produced the result, while missing reports remain null. This is a bounded metadata-reporting change with no change to model selection or execution behavior.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Explain Change →

      No actionable comments were generated in the recent review.

      Walkthrough

      Remote delegated-task completion now carries the executed model through task updates. Remote task results return the recorded model, or null when it is unavailable.

      Changes: Remote model reporting

      Layer / File(s)Summary
      Capture model on remote completion
      packages/contracts/src/orchestrationV2.ts, apps/server/src/peer/RemoteDelegation.ts
      The completion command and subagent contract accept an optional executed model. Remote delegation extracts it with the reply and includes it in completion events.
      Propagate model to task results
      apps/server/src/orchestration-v2/Orchestrator.ts, apps/server/src/mcp/OrchestratorMcpService.ts, apps/server/src/peer/RemoteDelegation.test.ts
      The orchestrator copies a provided model onto the updated task. Remote task results expose the model or null. Tests assert both cases.

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Bug fix

      Possibly related PRs

      • pingdotgg/t3code#27753: Changes executed-model reporting for delegated tasks through a different provider path.

      Suggested reviewers: juliusmarminge, shivamhwp

      Merge Risk: Minimal · up to 22402

      Remote delegated tasks now report the model that actually ran, and return null when no model was reported. The change is small, additive and backward compatible, with no known merge-blocking risk.

      Pre-merge checks: Passed 4

      Check nameStatusExplanation
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Title checkPassedThe title "fix(server): remote tasks report their actual model" matches the main change. Remote delegated-task completion now stores the model reported by the remote run as executedModel, and task_sta…
      Description checkPassedThe description follows the template's main sections. Problem explains that a completed linked-machine task returned executedModel null through task_status while t3_thread_read showed the real model. …
      Full details: Title check

      Explanation

      The title "fix(server): remote tasks report their actual model" matches the main change. Remote delegated-task completion now stores the model reported by the remote run as executedModel, and task_status returns it instead of always null. The title is short, uses a conventional commit prefix, and names the affected component and behavior.

      Full details: Description check

      Explanation

      The description follows the template's main sections. Problem explains that a completed linked-machine task returned executedModel null through task_status while t3_thread_read showed the real model. Change explains that the model from the result-producing run is saved on completion and returned in the existing field, with missing reports staying null. Scope explains this is a small fix to an existing field and gives no issue link. Verification lists a linked-peer test with before and after results, plus a check run on Node 26.13.1. The Verification section names focused tests, and the Scope section explains why there is no issue. The template asks for the agent model and harness at the end, and the description includes that line. The description is mostly complete.

      Finishing Touches

      Generate unit tests (beta)

      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      Recent review info

      Run configuration

      Commits

      Reviewing files that changed from the base of the PR and between 51cdf232652db8cdcea806f9a9e27d7460868579 and 224026a3799e8df3ae72a40944ed5f9428c27f2d.

      Files selected for processing: 5

      • apps/server/src/mcp/OrchestratorMcpService.ts
      • apps/server/src/orchestration-v2/Orchestrator.ts
      • apps/server/src/peer/RemoteDelegation.test.ts
      • apps/server/src/peer/RemoteDelegation.ts
      • packages/contracts/src/orchestrationV2.ts

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

    5. juliusmarminge added labelstakeover:in-progress

    6. Evidence

      Run two real T3 servers per commit on Linux with fresh databases and synthetic projects. Enable Linked environments, link A to B with full-access, and start a Claude Haiku thread on A. Delegate Reply with the single word PONG to B using claudeAgent / claude-haiku-5-5, wait for completion, then call task_status and t3_thread_read on the remote child. Evidence is captured server output from real provider turns.

      BeforeAfter
      51cdf23265224026a379
      delegate_task.executedModel: nulldelegate_task.executedModel: claude-haiku-5-5
      task_status.executedModel: nulltask_status.executedModel: claude-haiku-5-5
      Remote run: claude-haiku-5-5Remote run: claude-haiku-5-5
      Completed; summary PONG; no wait timeoutCompleted; summary PONG; no wait timeout
      Captured output · Full MCP outputsCaptured output · Full MCP outputs

      Reproduction driver · Capture extractor · Server logs with credentials and local paths removed

      Not shown:

      • Model substitution and its warning text were not exercised: the requested and reported model were both claude-haiku-5-5.
      • A final run without a model report, including protection against reusing an earlier run's model, was not exercised: this reproduction had one remote run and the provider reported its model.
    7. juliusmarminge added labelstakeover:ready

    8. juliusmarminge removed labelstakeover:in-progress

    9. juliusmarminge merged this19b33ec

    10. juliusmarminge closed this

    11. juliusmarminge removed labelstakeover:ready

Sign in to join this conversation.