release: v1.14.16 — raise context limit to 80% - #295
Merged
Conversation
ranxianglei
force-pushed
the
2026-08-12_release-v1.14.16
branch
from
August 12, 2026 00:35
eb89ce4 to
52cda9d
Compare
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.
release: v1.14.16 — Raise context limit to 80%
Summary
Raises the default
compress.maxContextLimitfrom"55%"to"80%"socompression waits until context exceeds 80% of the model window before firing the
strong "over-limit" nudge.
Problem
The strong nudge fired at 55% context usage. Even after pinning nudge growth to a
fixed 50K (v1.14.15), compression still engaged relatively early, leaving usable
context unused.
Change
lib/config.tsdefault compress block — one line:minContextLimit: "45%"is unchanged — it is tone-only (see semantics below).Semantics — why minContextLimit is left at 45%
The nudge decision (
context-compress-algorithmscomputeShouldNudge) is:overMinLimitonly selects thetipsVarianttone ("minLimit"vs"maxLimit")once a nudge is already firing — it never triggers a nudge on its own. So
minContextLimitdoes not cause early compression;maxContextLimitis theload-bearing threshold.
Backstops unchanged:
emergencyThresholdPercent: "98%",nudgeGrowthTokens: 50000.Users can override via
compress.maxContextLimitin their config.Verification
tsc --noEmit): cleannode --import tsx --test tests/*.test.ts): 976 pass / 0 failtsup && tsc --emitDeclarationOnly): successscripts/ci/check-pr.sh: all checks passMerge → auto-publish
Merging triggers
release.yml, which detects the2026-08-12_release-v*branch,tags
v1.14.16, and publishes to npmlatest. PR merge is human-only.