From a7a0af804ae35e0593a2975dd2990f40887221ed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 27 Oct 2026 14:58:04 +0000 Subject: [PATCH 1/4] release v0.1.209 --- .agents/plugins/marketplace.json | 2 +- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- plugins/codex/.codex-plugin/plugin.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json index 9fe43a1ac6..3406db1aa8 100644 --- a/.agents/plugins/marketplace.json +++ b/.agents/plugins/marketplace.json @@ -6,7 +6,7 @@ "plugins": [ { "name": "billion-context", - "version": "0.1.208", + "version": "0.1.209", "source": { "source": "local", "path": "./plugins/codex" diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 7045bea506..124005bcd3 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -12,7 +12,7 @@ "name": "billion-context", "source": "./", "description": "Context-compression plugin for Claude Code · month-long single sessions (billions of tokens) · high compression quality even in small context windows (100K is enough) · 5× fewer tokens", - "version": "0.1.208", + "version": "0.1.209", "author": { "name": "ranxianglei" }, diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 3fa10e3280..429ac30b0b 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "billion-context", - "version": "0.1.208", + "version": "0.1.209", "description": "Context-compression plugin for Claude Code · month-long single sessions (billions of tokens) · high compression quality even in small context windows (100K is enough) · 5× fewer tokens", "author": { "name": "ranxianglei" diff --git a/package-lock.json b/package-lock.json index af5d7f8dbd..c0558ef33a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "billion-context", - "version": "0.1.208", + "version": "0.1.209", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "billion-context", - "version": "0.1.208", + "version": "0.1.209", "license": "MIT", "dependencies": { "mysql2": "^3.15.3", diff --git a/package.json b/package.json index 6e016304b3..f7ea27ad57 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "billion-context", - "version": "0.1.208", + "version": "0.1.209", "description": "A context-compression plugin \u2014 small context windows (a 100K context is enough), 5x fewer tokens, month-long single sessions (billions of tokens), and compression quality \u2014 for all agents: pi, OpenCode, Codex, Claude Code, and more. billion-context is all you need.", "type": "module", "main": "dist/index.js", diff --git a/plugins/codex/.codex-plugin/plugin.json b/plugins/codex/.codex-plugin/plugin.json index c3792cf10e..1644ebf267 100644 --- a/plugins/codex/.codex-plugin/plugin.json +++ b/plugins/codex/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "billion-context", - "version": "0.1.208", + "version": "0.1.209", "description": "Context-compression plugin for Codex — small context windows (100K is enough), 5x fewer tokens, month-long single sessions (billions of tokens), and high compression quality.", "author": { "name": "ranxianglei" From 2f1828aeb8616d19ac1ba2380c35e12d207b6284 Mon Sep 17 00:00:00 2001 From: ranxianglei Date: Mon, 26 Oct 2026 19:50:26 +0800 Subject: [PATCH 2/4] fix(release-notes): carry the 0.1.207/0.1.208 advisory entries into v0.1.209 (#4677) --- release-notes/package.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/release-notes/package.json b/release-notes/package.json index b7daf583f0..069b904ec0 100644 --- a/release-notes/package.json +++ b/release-notes/package.json @@ -9,8 +9,20 @@ }, "billionContextReleaseNotes": { "schema": 1, - "updated": "2026-10-21", + "updated": "2026-10-26", "releases": [ + { + "version": "0.1.208", + "date": "2026-10-25", + "tier": "critical", + "summary": "修复 0.1.207 升级后大存储打不开的问题:0.1.207 的 v8 存储迁移一次性把整个库读进内存,大库(数 GB)首次打开内存耗尽,且每次启动都重新失败,表现为卡死或反复崩溃(#4677)。本版改为逐会话迁移、崩溃自动续跑,并打印进度日志。EN: large unified stores bricked by the 0.1.207 v8 migration (whole-store load = OOM on every launch) now migrate one session per transaction, resume after a crash, and log progress. 大存储用户请立即升级;已卡住的用户升级后重启即自动续跑,不要手改 user_version。" + }, + { + "version": "0.1.207", + "date": "2026-10-24", + "tier": "recommended", + "summary": "存储可靠性修复(0.1.203–0.1.204 用户请直接升到本版):折叠上下文不再因模型/窗口切换悄悄膨胀直至会话超窗;修复图片会话媒体引用泄漏与存储校验误报(#4390/#4506/#4444)。EN: storage reliability fixes — folded context no longer silently regrows after model/window switches; media-ref leak and false digest drift fixed. v0.1.203–204 users upgrade immediately." + }, { "version": "0.1.203", "date": "2026-10-21", From 0a1f534c52adee39ae7216073b68a548f6d28361 Mon Sep 17 00:00:00 2001 From: ranxianglei Date: Wed, 28 Oct 2026 21:49:44 +0800 Subject: [PATCH 3/4] =?UTF-8?q?test(#5050):=20drive=20the=20#4982=20drain?= =?UTF-8?q?=20e2e=20through=20/=5F=5Fbili/shutdown=20=E2=80=94=20Windows?= =?UTF-8?q?=20cannot=20deliver=20SIGTERM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit kill("SIGTERM") on a Node child is POSIX-only: on Windows it TerminateProcesses the child without signal dispatch, so P1's graceful path (and its portReleasedAt stamp) never ran and the e2e timed out deterministically on windows-latest; the second failure was a residual-socket ECONNRESET cascading after the hard kill. POST /__bili/shutdown (#3544) converges on the same shutdown() on every platform. Also guard the held pin socket against late error events and widen the stamp wait to 30s. --- tests/issue4982-draining-twin-ladder.test.ts | 22 +++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/tests/issue4982-draining-twin-ladder.test.ts b/tests/issue4982-draining-twin-ladder.test.ts index 71ea29a279..7bb38c9d2e 100644 --- a/tests/issue4982-draining-twin-ladder.test.ts +++ b/tests/issue4982-draining-twin-ladder.test.ts @@ -352,8 +352,24 @@ test("#4982 e2e: draining same-lane predecessor + squatter → newcomer ladders s.once("error", reject); }); heldRef = held; - - p1.child.kill("SIGTERM"); + // #5050: a destroyed pin must not leak a late ECONNRESET into a later + // test on platforms where teardown races differ (observed windows node 22). + held.on("error", () => {}); + + // #5050: kill("SIGTERM") is POSIX-only — Windows Node kills via + // TerminateProcess without delivering any signal, so the graceful path + // (and the portReleasedAt stamp) never ran there. The cross-platform + // seam is POST /__bili/shutdown (#3544): SIGTERM/SIGBREAK/HTTP all + // converge on the same shutdown(). A refused/hung response is fine — + // the stamp+refusal wait below is the real verification. + try { + await fetch(`http://127.0.0.1:${port}/__bili/shutdown`, { + method: "POST", + headers: { "content-type": "application/json" }, + body: "{}", + signal: AbortSignal.timeout(10_000), + }); + } catch {} const p1MarkerFile = path.join(stateHome, "billion-context", "instances", `${p1Marker.instanceId}.json`); await waitUntil(async () => { let stamped = false; @@ -363,7 +379,7 @@ test("#4982 e2e: draining same-lane predecessor + squatter → newcomer ladders return false; } return stamped && (await tcpRefused(port)); - }, 20_000, "P1 to stamp portReleasedAt and release the socket"); + }, 30_000, "P1 to stamp portReleasedAt and release the socket"); // The squatter takes the freed port BEFORE the newcomer starts — but // silently, so the newcomer's pre-bind claim probe sees no evidence. From 9bbf3165be0d6a571bb733110921c35c20eacad5 Mon Sep 17 00:00:00 2001 From: ranxianglei Date: Wed, 28 Oct 2026 22:31:00 +0800 Subject: [PATCH 4/4] =?UTF-8?q?test(#5050):=20keep=20the=20#4982=20squatte?= =?UTF-8?q?r=20fixture=20alive=20to=20peer=20aborts=20=E2=80=94=20Windows?= =?UTF-8?q?=20kill()=20RSTs=20land=20after=20test=20end?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/issue4982-draining-twin-ladder.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/issue4982-draining-twin-ladder.test.ts b/tests/issue4982-draining-twin-ladder.test.ts index 7bb38c9d2e..13bdee7bf5 100644 --- a/tests/issue4982-draining-twin-ladder.test.ts +++ b/tests/issue4982-draining-twin-ladder.test.ts @@ -248,6 +248,10 @@ function silentTcpListener(port: number): Promise { // EOF) and release the connection, or a dead prober pins server.close() // with CLOSE-WAIT sockets sock.resume(); + // A killed prober (Windows kill() is a hard terminate) RSTs us mid-probe; + // without an error listener that surfaces as an uncaughtException AFTER + // the test ends and fails the whole file (win-only #5050 follow-up). + sock.on("error", () => {}); sock.on("end", () => sock.destroy()); }); server.once("error", reject);