Commit 2a14533
committed
Add configurable live-limits and app-server detection
Introduce configurable live limits handling and explicit app-server selection. Adds --live-limits (auto|on|off) and --app-server-bin flags, a LiveLimitsMode config, and AppServerCommand + resolve_app_server_command to detect/launch either `codex app-server` or a standalone app-server (with Windows auto-detection of bundled locations). UI and app state now surface non-error notices vs errors when limits are unavailable, and token metrics show total/out-of-cache pairs. Update usage snapshot to track cached input tokens, adjust related rendering/formatting, and add docs (AGENTS.md, README) and changelog entry; minor test updates and ergonomics/refactors included. Version bumped to 0.3.6.
Revert "Add configurable live-limits and app-server detection"
This reverts commit eb81244.
Reapply "Add configurable live-limits and app-server detection"
This reverts commit 83cd1fd.
Delete file1 parent 6954d50 commit 2a14533
10 files changed
Lines changed: 477 additions & 48 deletions
File tree
- src
- app
- codex_rpc
- read
- ui
- usage
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
122 | 137 | | |
123 | 138 | | |
124 | 139 | | |
| |||
311 | 326 | | |
312 | 327 | | |
313 | 328 | | |
314 | | - | |
| 329 | + | |
315 | 330 | | |
316 | 331 | | |
317 | 332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
| |||
48 | 57 | | |
49 | 58 | | |
50 | 59 | | |
51 | | - | |
| 60 | + | |
52 | 61 | | |
53 | 62 | | |
54 | 63 | | |
| |||
92 | 101 | | |
93 | 102 | | |
94 | 103 | | |
| 104 | + | |
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
| |||
274 | 284 | | |
275 | 285 | | |
276 | 286 | | |
| 287 | + | |
| 288 | + | |
277 | 289 | | |
278 | 290 | | |
279 | 291 | | |
280 | 292 | | |
281 | 293 | | |
282 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
283 | 318 | | |
284 | 319 | | |
285 | 320 | | |
286 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
287 | 326 | | |
288 | 327 | | |
289 | 328 | | |
| |||
371 | 410 | | |
372 | 411 | | |
373 | 412 | | |
| 413 | + | |
374 | 414 | | |
375 | 415 | | |
376 | 416 | | |
| |||
705 | 745 | | |
706 | 746 | | |
707 | 747 | | |
708 | | - | |
| 748 | + | |
709 | 749 | | |
710 | | - | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
711 | 757 | | |
712 | 758 | | |
713 | 759 | | |
714 | 760 | | |
715 | 761 | | |
| 762 | + | |
716 | 763 | | |
717 | 764 | | |
| 765 | + | |
718 | 766 | | |
719 | 767 | | |
720 | 768 | | |
| |||
726 | 774 | | |
727 | 775 | | |
728 | 776 | | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
729 | 781 | | |
730 | 782 | | |
731 | 783 | | |
| |||
0 commit comments