Skip to content

release: v1.14.16 — raise context limit to 80% - #295

Merged
ranxianglei merged 1 commit into
masterfrom
2026-08-12_release-v1.14.16
Aug 12, 2026
Merged

release: v1.14.16 — raise context limit to 80%#295
ranxianglei merged 1 commit into
masterfrom
2026-08-12_release-v1.14.16

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

release: v1.14.16 — Raise context limit to 80%

Summary

Raises the default compress.maxContextLimit from "55%" to "80%" so
compression 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.ts default compress block — one line:

-        maxContextLimit: "55%",
+        maxContextLimit: "80%",

minContextLimit: "45%" is unchanged — it is tone-only (see semantics below).

Semantics — why minContextLimit is left at 45%

The nudge decision (context-compress-algorithms computeShouldNudge) is:

shouldNudge = growthSinceLastNudge >= nudgeGrowthTokens || overMaxLimit

overMinLimit only selects the tipsVariant tone ("minLimit" vs "maxLimit")
once a nudge is already firing — it never triggers a nudge on its own. So
minContextLimit does not cause early compression; maxContextLimit is the
load-bearing threshold.

Backstops unchanged: emergencyThresholdPercent: "98%", nudgeGrowthTokens: 50000.
Users can override via compress.maxContextLimit in their config.

Verification

  • typecheck (tsc --noEmit): clean
  • tests (node --import tsx --test tests/*.test.ts): 976 pass / 0 fail
  • build (tsup && tsc --emitDeclarationOnly): success
  • scripts/ci/check-pr.sh: all checks pass

Merge → auto-publish

Merging triggers release.yml, which detects the 2026-08-12_release-v* branch,
tags v1.14.16, and publishes to npm latest. PR merge is human-only.

@ranxianglei
ranxianglei force-pushed the 2026-08-12_release-v1.14.16 branch from eb89ce4 to 52cda9d Compare August 12, 2026 00:35
@ranxianglei
ranxianglei merged commit 03622c2 into master Aug 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant