Make subagents follow the root service tier (#41308)

## What changed

- Share the root thread's current service tier across its agent tree.
- Apply that tier to each subagent request when the selected child model supports it, including remote compaction requests.
- Propagate root service-tier updates to existing and newly spawned subagents without rewriting child-owned settings.
- Remove per-spawn and role-level service-tier overrides so routing remains controlled by the root thread.

## Testing

- Cover supported and unsupported child models, full-history forks, live tier changes, remote compaction, new subagents, and reloaded subagents.

GitOrigin-RevId: 6c299e224e90b41a558788fb7aa4d5f336fa383a
This commit is contained in:
jif
2026-08-28 09:48:13 +00:00
committed by copyberry
parent 94311d4475
commit dc2ccc6843
19 changed files with 521 additions and 274 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ pub(super) async fn run_remote_compact_attempt(
service_tier: if sess.services.auth_manager.auth_mode() == Some(AuthMode::ApiKey) {
None
} else {
turn_context.config.service_tier.clone()
step_context.settings.service_tier.clone()
},
},
&turn_context.session_telemetry,