Commit 1ca43ab
perf(codex): fall back on incremental token error; slice before file extract
Address review feedback:
- computeIncrementalTokenUsage now falls back to the full-scan token calc on
incremental error instead of silently dropping the checkpoint's token usage.
- ExtractAllModifiedFiles slices to the post-offset lines before splitting, so
per-turn work scales with the delta rather than the whole session.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 01KY9HW4BJJRTQ7T5TMK7KGPR61 parent 406904c commit 1ca43ab
2 files changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
389 | 395 | | |
390 | 396 | | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
| 397 | + | |
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | | - | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1015 | 1018 | | |
1016 | | - | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
1017 | 1026 | | |
1018 | 1027 | | |
1019 | 1028 | | |
| |||
0 commit comments