Skip to content

Commit 041b052

Browse files
committed
release: v1.14.26 — include PR #351 (per-provider/per-model compress overrides); extend changelog
1 parent 3e17c54 commit 041b052

4 files changed

Lines changed: 28 additions & 4 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
### v1.14.26 — Growth nudges respect the minNudgeContextPercent floor
3+
### v1.14.26 — Per-provider/per-model compress overrides; growth nudges respect the minNudgeContextPercent floor
44

55
**Problem**: T1 growth nudges fired well below any configured lower context limit — the `minNudgeContextPercent` floor was plumbed into the trigger policy but ignored, so growth nudges fired at any context size (issue #342: ten `trigger=growth` nudges at 67K–152K against a 150K minimum on a 400K model).
66

@@ -9,6 +9,11 @@
99
- When the model context window is unknown the floor is unresolvable and pre-fix growth-only behavior is preserved.
1010
- Docs: corrected stale `minContextLimit`/`maxContextLimit` defaults in README/CONFIGURATION (45%/55% → 80%/80%) and clarified that `minContextLimit` governs turn/iteration reminder nudges while `minNudgeContextPercent` governs the growth-nudge floor.
1111

12+
**Feature** (#351):
13+
- New nested `compress.providers` map: override **any** `compress` field per provider and per model (23 fields — thresholds, nudge behavior, protection, preservation, …). Resolution is per field: model > provider > global; unknown provider/model IDs fall back to the global value.
14+
- A nested `maxContextLimit` outranks the legacy flat `modelMaxLimits` map (nested > flat > global). Overrides deep-merge across the three config layers per provider/model key.
15+
- Strict validation (unknown fields and wrong types rejected) + JSON schema; documented in README (EN/zh) and CONFIGURATION (EN/zh) with recipes.
16+
1217
**Install**: `opencode plugin opencode-acp@latest --global`
1318

1419
### v1.14.25 — Self-disable under the billion-context proxy

‎CHANGELOG.zh-CN.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 更新日志
22

3-
### v1.14.26 — 增长型压缩提醒遵循 minNudgeContextPercent 下限
3+
### v1.14.26 — 任意 compress 字段支持按 provider/按模型覆盖;增长型提醒遵循 minNudgeContextPercent 下限
44

55
**问题**:T1 增长型提醒在远低于配置的上下文下限时就触发 —— `minNudgeContextPercent` 下限被传入触发策略但被忽略,导致增长型提醒在任何上下文大小下都会触发(issue #342:400K 模型上配置了 150K 下限,却在 67K–152K 触发了 10 次 `trigger=growth` 提醒)。
66

@@ -9,6 +9,11 @@
99
- 模型上下文窗口未知时,下限不可解析,保持修复前的纯增长行为。
1010
- 文档:修正 README/CONFIGURATION 中过期的 `minContextLimit`/`maxContextLimit` 默认值(45%/55% → 80%/80%),并澄清 `minContextLimit` 管 turn/iteration 提醒、`minNudgeContextPercent` 管增长型提醒下限。
1111

12+
**新功能**(#351):
13+
- 新增嵌套 `compress.providers` 映射:任意 `compress` 字段都可按 provider 和按模型覆盖(23 项 —— 阈值、提醒行为、保护、保留策略等)。逐字段解析优先级:model > provider > 全局;未知的 provider/model ID 回退到全局值。
14+
- 嵌套 `maxContextLimit` 优先于旧版扁平 `modelMaxLimits` 映射(嵌套 > 扁平 > 全局)。覆盖在三层配置文件间按 provider/model 键深合并。
15+
- 严格校验(未知字段和错误类型均拒绝)+ JSON schema;README(中英)与 CONFIGURATION(中英)均已补充文档与配方。
16+
1217
**安装**:`opencode plugin opencode-acp@latest --global`
1318

1419
### v1.14.25 — 在 billion-context 代理下自动禁用

‎devlog/2026-08-29_release-v1.14.26/REQ.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@
66
- Status: In Progress
77
- Priority: P1
88
- Owner: ework-daemon
9-
- References: issue ranxianglei/opencode-acp#342, PR ranxianglei/opencode-acp#343
9+
- References: issue ranxianglei/opencode-acp#342, PR ranxianglei/opencode-acp#343, PR ranxianglei/opencode-acp#351
1010

1111
## 1. Background & Problem Statement
1212

1313
- Release the issue #342 fix (T1 growth nudges respect the `minNudgeContextPercent` floor) so it reaches npm `latest`. The fix is merged on master (PR #343, merge commit `574c1c4`) but unreleased — npm `latest` is still 1.14.25.
1414
- The fix branch was a feature branch, not a release branch, so `release.yml` did not tag/publish on merge.
1515
- Reporter (bernhardberger) is waiting for the fix on `latest` before restoring `nudgeGrowthTokens: 50000` and verifying T1 growth nudges stay suppressed below his configured 150K floor (`minNudgeContextPercent: 37.5` on his 400K model).
16+
- **Scope extension (2026-08-29, post #351 merge)**: PR #351 (per-provider/per-model overrides for ALL compress fields via nested `compress.providers`, issue #344) merged into master (`46014bc`) while this release PR was open. Maintainer directed: “合并了 发一个新版本” — the release must ship #343 + #351 together, so master was merged into the release branch and the changelog/devlog extended. PR #352 (soft-deprecate `minContextLimit`/`modelMinLimits`, docs-only) remains open and is NOT part of this release.
1617

1718
## 2. Release Contents
1819

1920
- PR #343 (issue #342): growth-nudge floor via `minNudgeContextPercent` (default 5%, `0` disables; over-max and 98% emergency bypass; T2/T3 unaffected), docs corrections (stale 45%/55% → 80%/80% defaults; `minContextLimit` vs `minNudgeContextPercent` semantics), 6 new/updated tests in `tests/inject.test.ts`.
21+
- PR #351 (issue #344): nested `compress.providers` — any compress field overridable per provider/model (23 fields; model > provider > global per field; nested `maxContextLimit` > flat `modelMaxLimits` > global; 3-layer deep-merge), strict validation + JSON schema, 17+ new tests, README/CONFIGURATION EN+zh docs.
2022

2123
## 3. Acceptance Criteria
2224

‎devlog/2026-08-29_release-v1.14.26/WORKLOG.md‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,31 @@
77

88
## 1. Summary
99

10-
Release for PR #343 (issue #342 fix: growth nudges respect the `minNudgeContextPercent` floor). Version 1.14.25 → 1.14.26.
10+
Release for PR #343 (issue #342 fix: growth nudges respect the `minNudgeContextPercent` floor) **+ PR #351** (issue #344: nested `compress.providers` — per-provider/per-model overrides for ALL compress fields). Version 1.14.25 → 1.14.26.
1111

1212
## 2. Change Log
1313

1414
| Commit | Description |
1515
|--------|-------------|
1616
| `5554101` | release: v1.14.26 — growth nudges respect the minNudgeContextPercent floor |
17+
| `0e12bb7` | docs: record release commit hash and check-pr result in WORKLOG |
18+
| `4c4262d` | docs: mark release v1.14.26 WORKLOG as PR open |
19+
| (merge) | merge master (`46014bc`, PR #351) into release branch — brings the all-field cascade into the release; CHANGELOG EN+zh extended with the #351 feature section; devlog REQ/WORKLOG scope extension |
1720

1821
## 3. Verification
1922

2023
- master @ `574c1c4`: typecheck clean; 1036 tests pass, 0 fail.
24+
- master @ `46014bc` (incl. #351): typecheck clean; 1062 tests pass, 0 fail (verified on PR #351 CI — test 22/24 both green).
25+
- Post-merge verification on the release branch: see §5.
2126
- `check-pr.sh`: all checks passed (branch name, devlog, changelog).
2227

2328
## 4. Rollback Plan
2429

2530
Close the PR before merge — no tag/publish happens until a human merges.
31+
32+
## 5. Scope Extension — include PR #351 (2026-08-29)
33+
34+
- After PR #351 merged to master (`46014bc`), maintainer directed “合并了 发一个新版本”. Merged master into this release branch (clean, no conflicts) so the release ships #343 + #351 together.
35+
- CHANGELOG.md / CHANGELOG.zh-CN.md: `### v1.14.26` entry retitled + new **Feature (#351)** section (nested `compress.providers`, 23 overridable fields, per-field cascade, nested `maxContextLimit` > flat map, 3-layer deep-merge, validation/schema/docs).
36+
- Post-merge re-verification: full suite re-run on the release branch — see verification block above for the final tally.
37+
- PR #352 (`docs(deprecate): mark minContextLimit + modelMinLimits deprecated`) intentionally NOT included — it is still open and is docs-only; it ships in the next release.

0 commit comments

Comments
 (0)