Commit e797dbe
committed
fix(usage): treat client-requested priority as fast intent
codex CLI 0.129+ subscription clients send service_tier="priority"
directly to express the fast lane. Previously resolveServiceTier only
normalized when actualTier=="priority"; if upstream downgraded to
default (quota exhausted), the request was logged as default and lost
the fast classification.
Mirror sanitizeServiceTierForUpstream's fast<->priority equivalence on
the inbound side: any client-requested priority is now locked to fast,
so the Fast filter and badge stay accurate even when upstream downgrades.1 parent dcc72a9 commit e797dbe
2 files changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1106 | 1106 | | |
1107 | 1107 | | |
1108 | 1108 | | |
1109 | | - | |
1110 | | - | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
1111 | 1116 | | |
1112 | 1117 | | |
1113 | | - | |
| 1118 | + | |
1114 | 1119 | | |
1115 | 1120 | | |
1116 | 1121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
| |||
0 commit comments