Repository navigation
docs: explain automatic compaction input limits and reserve - #56509
Open
rudycelekli wants to merge 1 commit into
Open
rudycelekli wants to merge 1 commit into
rudycelekli wants to merge 1 commit into
Conversation
Contributor
|
The following comment was made by an LLM, it may be inaccurate: |
Contributor
There was a problem hiding this comment.
The new text is accurate. I checked it against calculateCeiling in packages/core/src/session/compaction.ts and the per-field limit merge in packages/core/src/config/plugin/provider.ts. These parts all match the code: input before context, the 16,000-token floor only for windows of at least 32,000 tokens, an explicit buffer replacing the default reserve, the 272,000 → 244,800 example, and no automatic compaction when both limits are unknown. The /providers#models link points at an existing section.
Public API is unchanged (docs only).
No blocking concerns.
rudycelekli
force-pushed
the
compaction-ceiling
branch
from
October 20, 2026 20:05
6cdd193 to
838dc57
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #52954
Type of change
What does this PR do?
Document input-limit precedence, the default reserve and its small-window exception, explicit buffer behavior, and per-field model limit overrides. Updated against current dev: the reserve is now 15%, so the 272,000-token example reserves 40,800 and compacts at 231,200. Preserve the newer full-conversation summary explanation and provider portability text while resolving the conflict.
How did you verify your code works?
calculateCeiling,RESERVE_SHARE, the existing 231,199/231,200 regression, and model-limit merge paths against the prose.bun run checkpasses. Exact patch and source hashes match head838dc57.git diff --checkpasses. This is documentation-only and changes no public API.Screenshots / recordings
Documentation-only; website build validated.
Checklist