Commit f9e5fc5
test(agents): cover the over-window clamp in computeContextBreakdown [review #4596]
The breakdown clamps `used` to the window so the segments still sum to the
window and `free` can't go negative when a step reports usage above the window.
That path was exercised but untested; lock it in.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 71c6db8 commit f9e5fc5
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
54 | 72 | | |
55 | 73 | | |
56 | 74 | | |
| |||
0 commit comments