fix(server): remote tasks report their actual model #37332
main fromrefs/pull/37332/head·merged by juliusmarminge View on GitHubProblem#
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-minibecamenullbefore the fix and now reachestask_status. A continuation without a model report still returnsnull. vp run check:changedon Node 26.13.1 passed, including 183 tests. CI build, tests and release smoke also passed on224026a.
Created with GPT-6.1 Sol in the Codex harness through T3 Code.
- 1
tanstack-source added labelsbug
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
Approvability#
Verdict: Approved at
224026aMacroscope'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).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
nullwhen 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.tsThe 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.tsThe 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 to22402-
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:
4-
Check name Status Explanation Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Title check 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_sta… Description check 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. … 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-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: 51cdf23
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
ae6ff3c7-fa7d-45bb-af57-049c2ce762a6
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.tsapps/server/src/orchestration-v2/Orchestrator.tsapps/server/src/peer/RemoteDelegation.test.tsapps/server/src/peer/RemoteDelegation.tspackages/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.
-
-
juliusmarminge added labelstakeover:in-progress
yazcaleb(GitHub profile, opens in a new tab) changed the title
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 PONGto B usingclaudeAgent/claude-haiku-5-5, wait for completion, then calltask_statusandt3_thread_readon the remote child. Evidence is captured server output from real provider turns.Before After 51cdf23265 224026a379 delegate_task.executedModel:nulldelegate_task.executedModel:claude-haiku-5-5task_status.executedModel:nulltask_status.executedModel:claude-haiku-5-5Remote run: claude-haiku-5-5Remote run: claude-haiku-5-5Completed; summary PONG; no wait timeoutCompleted; summary PONG; no wait timeoutCaptured output · Full MCP outputs Captured 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.
juliusmarminge added labelstakeover:ready
juliusmarminge removed labelstakeover:in-progress
juliusmarminge merged this19b33ec
juliusmarminge closed this
juliusmarminge removed labelstakeover:ready
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes