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 cf849e66ce..96806e3eb6 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" 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", diff --git a/tests/issue4982-draining-twin-ladder.test.ts b/tests/issue4982-draining-twin-ladder.test.ts index 71ea29a279..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); @@ -352,8 +356,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 +383,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.