From b251699feb043f61907d0d80798d456acde35ce3 Mon Sep 17 00:00:00 2001 From: ci-check Date: Mon, 26 Oct 2026 19:08:25 +0800 Subject: [PATCH 1/4] test(#3472/#4836): pin acp_retrieve in the structuredContent wire suite --- tests/issue3472-mcp-structured-text.test.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/issue3472-mcp-structured-text.test.ts b/tests/issue3472-mcp-structured-text.test.ts index 3199aa011c..57ed81392e 100644 --- a/tests/issue3472-mcp-structured-text.test.ts +++ b/tests/issue3472-mcp-structured-text.test.ts @@ -7,7 +7,9 @@ // structuredContent self-contained: it carries the full report itself // (structured.text = out.text, byte-identical to content[0].text) alongside // the machine fields. Pinned here through the REAL shim over stdio JSON-RPC: -// 1. success envelopes (acp_status / acp_cache / search_context / decompress): +// 1. success envelopes (acp_status / acp_cache / search_context / decompress +// / acp_retrieve — #4836 added retrieve; its export pointer was the last +// unlisted carrier of the same bare-{outcome} loss): // structuredContent.text === content[0].text byte-for-byte, outcome kept; // 2. compress applied/partial: the #2752 machine fields are unchanged, the // text is present and byte-stable (partial incl. the marker line); @@ -33,6 +35,7 @@ const STATUS_REPORT = [ const CACHE_REPORT = "GRAND LEDGER:\ntotal input 1,000,000 · cached 960,000 (96.0%)\nFOLD ECONOMICS:\nb1 net saved 12,000 — paid back"; const SEARCH_REPORT = 'Found 2 block(s) for "auth":\n\n[b2] "Auth System Exploration" — m00010–m00050'; const DECOMPRESSED_BODY = "[decompress b1 m00001–m00010: restored 10 item(s) — full content follows]\n"; +const RETRIEVE_RECEIPT = "[acp-retrieved #m00013 · tool_result · 7,093 tok · 120 lines]\nOriginal exported to /state/billion-context/retrieve/m00013.txt — read it with your file tool."; const APPLIED_TEXT = "[Compressed m00001–m00100 → 2 block(s), ~5000 tokens saved.]"; const PARTIAL_TEXT = "[Compressed m00001–m00200 → 1 block(s), ~4000 tokens saved. Errors: m00101–m00200: unknown ref]"; const REFUSED_TEXT = "[Compression FAILED: requested range(s) resolved to no messages]"; @@ -138,6 +141,7 @@ describe("#3472: structuredContent carries the full report for structured-prefer proxy.canned.set("acp_cache", { ok: true, result: CACHE_REPORT, outcome: "success" }); proxy.canned.set("search_context", { ok: true, result: SEARCH_REPORT, outcome: "success" }); proxy.canned.set("decompress", { ok: true, result: DECOMPRESSED_BODY, outcome: "success" }); + proxy.canned.set("acp_retrieve", { ok: true, result: RETRIEVE_RECEIPT, outcome: "success" }); proxy.canned.set("compress", { ok: true, result: APPLIED_TEXT, outcome: "applied", blocksCreated: 2 }); client = new WireShimClient({ ...process.env, BILI_MCP_PROXY: proxy.origin, BILI_CONVERSATION_ID: "conv-wire-3472" }); await client.init(); @@ -179,6 +183,14 @@ describe("#3472: structuredContent carries the full report for structured-prefer } }); + it("acp_retrieve success (#4836): the export pointer rides structuredContent too", async () => { + const r = await call("acp_retrieve", { ref: "m00013" }); + assert.notEqual(r.isError, true); + assert.equal(r.content?.[0]?.text, RETRIEVE_RECEIPT); + assert.deepEqual(r.structuredContent, { text: RETRIEVE_RECEIPT, outcome: "success" }, + "a host that renders only structuredContent must still see the retrieval pointer"); + }); + it("compress applied: the #2752 machine fields stay intact, text rides alongside", async () => { const r = await call("compress", { content: [] }); assert.notEqual(r.isError, true); From 661aa6a05ef14d163d0a4add39c6a93760157b03 Mon Sep 17 00:00:00 2001 From: ci-check Date: Mon, 26 Oct 2026 19:08:41 +0800 Subject: [PATCH 2/4] release v0.1.209 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5c9812e185..e044689530 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "billion-context", - "version": "0.1.207", + "version": "0.1.209", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "billion-context", - "version": "0.1.207", + "version": "0.1.209", "license": "MIT", "dependencies": { "mysql2": "^3.15.3", diff --git a/package.json b/package.json index ea30cea0b4..f7ea27ad57 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "billion-context", - "version": "0.1.207", + "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", From 8f6a1c33f1ad7905239501c55466f51a30ab9833 Mon Sep 17 00:00:00 2001 From: ci-check Date: Mon, 26 Oct 2026 19:08:49 +0800 Subject: [PATCH 3/4] chore: sync plugin manifests to v0.1.209 --- .agents/plugins/marketplace.json | 2 +- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- plugins/codex/.codex-plugin/plugin.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json index 9515dcc38d..3406db1aa8 100644 --- a/.agents/plugins/marketplace.json +++ b/.agents/plugins/marketplace.json @@ -6,7 +6,7 @@ "plugins": [ { "name": "billion-context", - "version": "0.1.207", + "version": "0.1.209", "source": { "source": "local", "path": "./plugins/codex" diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 12953b3934..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.207", + "version": "0.1.209", "author": { "name": "ranxianglei" }, diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 4538febdfc..429ac30b0b 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "billion-context", - "version": "0.1.207", + "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/plugins/codex/.codex-plugin/plugin.json b/plugins/codex/.codex-plugin/plugin.json index 862a8a231a..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.207", + "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 a8efcbe6c944779985d60aee912399ee43002d72 Mon Sep 17 00:00:00 2001 From: ranxianglei Date: Mon, 26 Oct 2026 19:50:26 +0800 Subject: [PATCH 4/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",