release: v1.14.15 — pin nudge growth to fixed 50000 tokens - #294
Merged
Conversation
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.15 — Pin nudge growth to fixed 50,000 tokens
Summary
Sets a fixed default
compress.nudgeGrowthTokens: 50000, overriding the adaptive5%-of-context value (clamped 20K–50K) from
context-compress-algorithms.Problem
The T2/T3 nudge growth threshold was computed as 5% of the model context window
(clamped 20K–50K via
resolveAdaptiveNudgeGrowth). For sub-1M-context models thisproduced smaller thresholds (e.g. 200K → 10K, 400K → 20K), causing nudges to fire
too eagerly and drive over-compression.
Change
lib/config.tsdefault compress block — one new line:This overrides the adaptive value through the existing hook at
lib/messages/inject/inject.ts:250-251:No source-logic change. The
emergencyThresholdPercent: "98%"backstop isunchanged. Users can still override via
compress.nudgeGrowthTokensin their config.Why self-contained (not a
context-compress-algorithmsrelease)opencode-acp imports the adaptive math from the external
context-compress-algorithmspackage. The
??override hook already exists precisely for host-side overrides.Changing it here (rather than releasing a 5th package) keeps the change visible in
opencode-acp's own config and matches the parallel change in
acp-kernelv0.0.19(which feeds
billion-contextandbillion-context-pi). All three adapters now usea single fixed 50,000-token growth threshold.
Verification
tsc --noEmit): cleannode --import tsx --test tests/*.test.ts): 976 pass / 0 failtsup && tsc --emitDeclarationOnly): success, 391.34 KBscripts/ci/check-pr.sh: all checks pass (branch name, devlog, changelog)Merge → auto-publish
Merging this PR triggers
release.yml, which detects the2026-08-12_release-v*branch, tags
v1.14.15, and publishes to npmlatest. PR merge is human-only.