Files
codex/codex-rs
Eric Traut 5eb0253e6f Preserve service tier intent when starting, resuming, and forking (#64820)
## Why

A TUI resume request could override a thread's saved service tier with a
configured tier, a model default, or the local Fast default opt-out.
CLI forks could also send a tier before the destination's settings were
resolved.

## What changed

- Send a tier on resume or CLI fork only when the invocation supplies a
  tier override. In-app forks carry the current session's tier.
- On fresh startup, use the invocation's tier choice first, then the
  managed default, then the startup configuration. Keep an explicit
  reset (`serviceTier: null`) distinct from omitting the field.
- Use the current local Fast default opt-out when resolving tiers for
  new sessions and honor feature gating for launch overrides.

## Testing

Extend request assertions to cover tier omission on resume and CLI fork,
`flex` on in-app fork, and both explicit reset and disabled Fast mode on
fresh startup.

GitOrigin-RevId: d74f0f5e98506a0d5a6ead7106e1042691d41d41
2026-11-30 22:25:03 +00:00
..
…
…
…