Skip to content

Commit 169d11c

Browse files
committed
docs(context-window): correct hasWideResumeGap comment (proactive path only)
1 parent 8011e72 commit 169d11c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/provider/context-window.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,9 @@ export function isAtOrUnderCompactThreshold(
214214
/** Shared re-arm rule for a session latched above the threshold after a
215215
* compact (automatic, operator, or overflow recovery): growth alone never
216216
* re-arms — only a wide resume gap past the post-compact measurement does.
217-
* The proactive threshold path and the overflow path route through this single
218-
* predicate; the governor owns clearing the latch underneath it. */
217+
* The proactive threshold path routes through this single predicate; the
218+
* overflow path shares the reset rule (under-threshold folds restore the
219+
* recovery budget) but fires on overflow errors regardless of this latch. */
219220
export function hasWideResumeGap(
220221
postCompactTokens: number,
221222
contextTokens: number,

0 commit comments

Comments
 (0)