feat(subagents): show the model and effort provider-native subagents run with - #343
Merged
Merged
Conversation
…run with Subagent items now carry optional `model` and `effort`, merged like `summary` so later lifecycle snapshots never erase them. Claude: the Agent tool's `model` alias is recorded at spawn; the resolved model and effort are read from the child's assistant records, both when they stream over stdout with `parent_tool_use_id` and when a background task's transcript is tailed (the tail hands the values back to the actor so the re-emitted spawn item keeps its live status). Codex: `spawn_agent`'s `model` / `reasoning_effort` overrides are used when present, otherwise the child inherits the parent thread's settings. The subagent row renders a `model · effort` chip next to the agent type.
Tryanks
enabled auto-merge (squash)
September 6, 2026 16:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ItemContent::Subagentgains optionalmodel/effort(serde-defaulted, merged likesummaryso later lifecycle snapshots never erase them).modelalias at spawn, then updates with the resolvedmessage.modeland top-leveleffortfrom the child's assistant records. Covers both stdout child messages (parent_tool_use_id) and tailed background-task transcripts; the tail hands values back to the actor so the re-emitted spawn item keeps its live status instead of racing completion.spawn_agent'smodel/reasoning_effortoverrides when present, otherwise the child inherits the parent thread's model and effort (the app-server does not forward the child's turn context).model · effortchip after the agent type. Old logs without the fields render exactly as before.Test plan
cargo clippy --workspace --all-targets -- -D warningscargo test -p agent -p tcode-core -p tcode-runtime -p tcode-ui -p tcode-servicesmodel+effort; Codex activity test asserts override + inherited fallback.