Commit 0649175
authored
fix(billing): surface the upgrade gate on codex billing denials
The codex adapter resolved every non-retried fatal error as a silent
refusal, so a free-tier org's gateway 403/429 died with a warning badge and
no explanation. A fatal error that classifies as a gateway billing denial
now rejects the prompt with the gateway's message, which the host already
classifies into the upgrade modal.
Generated-By: PostHog Code
Task-Id: 1039ea23-9930-44e2-9888-b05cf8b129ec1 parent 9233471 commit 0649175
2 files changed
Lines changed: 46 additions & 2 deletions
File tree
- packages/agent/src/adapters/codex-app-server
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1596 | 1596 | | |
1597 | 1597 | | |
1598 | 1598 | | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
1599 | 1625 | | |
1600 | 1626 | | |
1601 | 1627 | | |
| |||
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
1245 | 1249 | | |
1246 | 1250 | | |
1247 | 1251 | | |
1248 | | - | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
1249 | 1256 | | |
1250 | 1257 | | |
1251 | 1258 | | |
1252 | 1259 | | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
1253 | 1271 | | |
1254 | 1272 | | |
1255 | 1273 | | |
| |||
0 commit comments