Commit Graph

2 Commits

Author SHA1 Message Date
Teknium
0214eb4fdc fix(delegation): ultrafast is checked against the route's own Codex account
The ultrafast entitlement check ran without an access token, so it read the
profile's stored Codex login. A backend route carrying another account's key
could be refused (or allowed) on the wrong account's catalog (Greptile). The
check now gets the route's key, or the inherited parent's on an unpinned route.
2026-10-22 14:37:10 -07:00
unsupportedpastels
ed11601539 feat(delegation): speed-tier helpers for delegated children
Ported from #140614 (d435a4b2205, 6015c98eb1c): a tier is validated with
the same gates as /fast (resolve_fast_mode_overrides, plus the Codex
account check for ultrafast), clears tier keys at the top level and inside
extra_body, and is re-applied to the built child so a custom provider's
extra_body merge cannot restore another tier. The per-task model fields
from that PR are not part of this port; delegation backends supply the
tier as a route field instead.
2026-10-22 14:37:10 -07:00