Skip to content
2 changes: 1 addition & 1 deletion .agents/plugins/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"plugins": [
{
"name": "billion-context",
"version": "0.1.208",
"version": "0.1.209",
"source": {
"source": "local",
"path": "./plugins/codex"
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugins/codex/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
14 changes: 13 additions & 1 deletion release-notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
26 changes: 23 additions & 3 deletions tests/issue4982-draining-twin-ladder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ function silentTcpListener(port: number): Promise<net.Server> {
// 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);
Expand Down Expand Up @@ -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;
Expand All @@ -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.
Expand Down
Loading