Skip to content

release v0.1.161 - #1504

Merged
ranxianglei merged 1 commit into
masterfrom
2026-09-27_release-v0.1.161
Sep 27, 2026
Merged

ranxianglei merged 1 commit into
masterfrom
2026-09-27_release-v0.1.161

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Auto-fallback from the one-click release workflow: direct push to master was blocked by branch protection. Merging this PR publishes via the standard release.yml flow.

Changes since v0.1.160

  • fix(review): complete canary inRun set for custom_tool_call_output ([Bug] #762's strict-echo repair is chat-completions-only: Responses-wire requests still 400 with reasoning_content_missing after a compress fold #1479)
  • ui(panel): surface session Web-UI deep link in /acp panel and acp-cache
  • ui(web): session title cells become real hash anchors — Ctrl/Cmd+click or middle-click opens the session in a new tab; plain clicks navigate in-page as before
  • ui(web): by-protocol table gains compact hit-rate breakdown (reuses hitTd); per-protocol nc/cr/tr miss-drop pps in overview payload
  • ui(web): live-only running tag; compact hit-rate cells w/ fixed table columns; selection-safe row clicks; negative net-savings tooltips; cache sample cap 512→4096
  • ui(web): copy-success hint bubble (label untouched); by-protocol numeric columns centered; disk/restored badge tooltips; sample-trim note explains SAMPLE_CAP 512
  • ui(web): render expanded compression-block summaries as markdown
  • ui(web): fit tables without horizontal scroll; universal copy-flash without label swap; per-client launcher notes as hover tooltips
  • ui(web): miss-split annotations back to % not pp; upstream reachable wording for HTTP >= 400; single raw config-file editor replaces route/compress JSON boxes; plugin mode marked recommended with full 9-agent list; copy feedback on chip buttons
  • ui(web): 3-method connect page w/ copyable commands; config cards explain routes/compress/passthrough; cache-report md copy+download on session detail; label==id treated as untitled
  • feat(web): add Logs page (live tail of bili.log with session-id filter, download, copy path); detail identity links to a session's log lines
  • ui(web): unify percentage-point units on hit-rate annotations, hide empty stub sessions (count shown), make wide tables scrollable
  • ui(web): add ? help icon (click-to-open popover) on annotated stats
  • ui(web): annotate the cache hit-rate stat with TTL/comp/new cost split in-card; drop the long footnote (full text moved to hover tooltip)
  • ui(web): make session usage miss-split line (new/comp/TTL with hit-rate cost) visibly readable
  • feat(web): show hit-rate miss decomposition (new/comp/TTL, in pp) on every session row, the global hit card and session usage; folds table becomes one scroll panel
  • feat(web): decompose missed tokens into new/compression/TTL-expiry globally and per protocol; add cache hit rate to session usage card
  • feat(web): unified recent/protocol stats cols, hide redundant label, folds cap 10 w/ scroll panel, structured handoff rendering
  • fix(web): per-session saved column now derives from cache ledger (stats.tokensSaved is no longer written); add client / cum. input / compression-count columns; per-block copy buttons + blocks copy-markdown action + title copy & hover-full-title
  • feat(web): mark compression blocks active vs archived; add download-blocks(.md) action
  • fix(web): handoff doc readability - role divider headers, tool args kept verbatim in pre, line breaks preserved; chart legend swatches get real colors (TTL now purple)
  • fix(web): trajectory polish - merge burst-fold markers (no ghosting), draw system-prompt baseline, show client origin; fold table capped at 30; untitled blocks titled from summary lead
  • fix(web): trajectory crash on resumed sessions + clarify gross/net savings notes
  • feat(web): annotate cache-gap causes on the context trajectory
  • fix(web): sticky headers, trajectory/fold times, untitled hints, gross-vs-net savings
  • feat: rewrite built-in web UI (read-only overview/sessions/config/connect)
  • fix(review): complete inRun set + WC-009 wire-contract ledger entry
  • test: pin legacy-trimmed deficit through the full-detail window (review of fix: keep the full per-request cache ledger history (#1489) #1490)
  • fix: keep the full per-request cache ledger history (缓存账本在 SAMPLE_CAP 处丢弃最早的逐请求采样——轨迹图无法覆盖会话完整时间跨度 #1489)
  • fix: drop nameless tool calls loudly instead of synthesizing client-crashing frames (openai 兼容流送达的 tool_call 缺 function.name(AI_InvalidResponseDataError: Expected 'function.name' to be a string.)——客户端误判为不可重试网络错误,子代理 turn 丢失 #1484)
  • fix: extend strict-echo repair to the Responses wire ([Bug] #762's strict-echo repair is chat-completions-only: Responses-wire requests still 400 with reasoning_content_missing after a compress fold #1479)
  • test(e2e): make lane fake-upstreams chain-carrier-aware
  • feat: chain checkpoint step 3 — per-wire stamp shapes + first-processor-wins enforcement ([design] chain checkpoint step 3: carrier stamp shape on role-alternation-strict wires (anthropic/google) #1421)

@github-actions

Copy link
Copy Markdown
Contributor Author

📦 Built Package Artifact

Branch: 2026-09-27_release-v0.1.161 (ef965c3)

Option A — Install this exact build (recommended)

npm install -g billion-context@0.0.1430-pr.1504.fc9afee-a2

This exact version is immutable and reproducible. The rolling pr tag tracks the newest test build across all PRs.

Option B — Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pr1504.tgz
npm install -g package

Install instructions are refreshed on each push.

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

Release audit — v0.1.161 (branch 2026-09-27_release-v0.1.161, head ef965c31)

Release diff: exactly one commit over master — release v0.1.161, touching only package.json + package-lock.json (version 0.1.160 → 0.1.161). Complies with the one-version-one-commit discipline; no content bundled into the release commit.

Version-window regression audit (v0.1.160..HEAD, 35 non-merge commits): ~25 commits are the Web UI rewrite (#1426) — read-only management plane under /__bili/. The pipeline-relevant changes are five, all deliberate and disclosed in this PR's changelog:

  1. Chain checkpoint step 3 enforcement ([design] chain checkpoint step 3: carrier stamp shape on role-alternation-strict wires (anthropic/google) #1421) — old: shadow mode, log-only, zero forwarding decision → new: first-processor-wins is enforced. Requests carrying a verifiable <bili-chain> checkpoint forward verbatim (pipeline skipped); stale unmatched carriers are stripped and processed normally; invalid tags are never trusted. Every processed outbound request is now stamped with a content-level <bili-chain> tag in the per-wire trailing control slot (anthropic: extra trailing text part of the last user message; google: merged into last content parts; openai: standalone trailing user message; responses: before any trailing compaction_trigger). Consequence: model providers now see this ~≤200-char tag on every processed request (small per-request token overhead, visible to the model) — owner-documented design decision from 2026-09-26, gated by the pre-existing chainContentDetection !== false config. Wire invariants held: compaction_trigger stays last input item; role-alternation-strict wires use merged (not appended) forms; digest covers the exact forwarded bytes; stamp failure is best-effort (forward unstamped, never breaks the forward).
  2. Nameless tool calls dropped loudly (openai 兼容流送达的 tool_call 缺 function.name(AI_InvalidResponseDataError: Expected 'function.name' to be a string.)——客户端误判为不可重试网络错误,子代理 turn 丢失 #1484) — old: synthesized frame forwarded → client AI_InvalidResponseDataError crash → new: dropped with a warn log, plus new info-level [acp-openai] round N tool-frame settle (...) diagnostics per settle with pending calls (intentional log-volume increase for upstream-vs-proxy bisection).
  3. Strict-echo repair extended to Responses wire + retry bodies ([Bug] #762's strict-echo repair is chat-completions-only: Responses-wire requests still 400 with reasoning_content_missing after a compress fold #1479/DeepSeek thinking mode: residual "reasoning_content must be passed back" 400 on the first post-fold request (0.1.109 / acp-kernel 0.0.69) — the forwarded body is not persisted #762) — blank reasoning items now inserted before orphaned tool-call runs in Responses input[] (gated on ≥1 reasoning item existing, so non-thinking sessions are never touched), applied to ALL compress-loop retry/re-request bodies (previously nudge/degenerate retries bypassed repair → DeepSeek thinking rejected rebuilt bodies). Canary warnResponsesReasoningPairs rewritten run-based — fixes the 798×/session false positives on healthy [reasoning, message, function_call] turns; follow-up b0849126 completed its inRun set with custom_tool_call_output. WC-009 added to the wire-contract ledger.
  4. Cache ledger unbounded (缓存账本在 SAMPLE_CAP 处丢弃最早的逐请求采样——轨迹图无法覆盖会话完整时间跨度 #1489) — old: trimmed to 512 lines / 256 folds (oldest spliced out) → new: full history retained; only the acp_cache detail:"full" text rendering caps at the newest 512 lines with an explicit linesOmitted count. Memory growth bounded (~one small line per request).
  5. Web UI rewrite + Logs page (feat(web): full UI rewrite — read-only overview / sessions / config / connect (#1420) #1426) — read-only; new /__bili/overview|sessions|logs|sessions/<id>/detail endpoints follow the existing loopback-only protection incl. tunnel-marker rejection. Panel/acp-cache output gains a Web UI: deep link inserted BEFORE the panel footer deliberately (after-footer would break the LLM-context stripper's anchor match and leak the panel into model context); acp-cache MCP results gain one extra link line (harmless, intended).

High-risk pattern checks: no fail-fast→swallow regressions (stamp failure logged best-effort by design; nameless drop logs warn loudly); no default/threshold drift beyond the feature itself; no persistence-format or message-ref/id changes; src/update.ts, acp-kernel pin, zod pin, MITM/CA/security paths untouched. Behavior changes are pinned by dedicated tests (chain-checkpoint-step3, loop-strict-echo-responses, cache-ledger, reasoning-echo*, openai-toolcall-finish-reason, WC-009 gate) — assertions with teeth, not tautologies.

CI on head sha ef965c31: 13/13 green — unit tests (ubuntu+windows, node 22+24), real codex/pi/dsh/opencode lanes vs deterministic fake upstream, hermetic registry e2e, build-artifact, version-guard. PR state: open, mergeable clean, base master.

Verdict: 本版本引入回归:无(0 处)。Five behavior changes above are intentional and disclosed (old→new stated); release diff clean; CI fully green on the rebased head. 可合并 — ready for human merge (merging publishes via release.yml; agent will not merge).


中文摘要: 审查了 v0.1.160→v0.1.161 全部变更,本版本无回归;5 处行为变更(链式检查点从影子模式转为强制执行并对外打戳、无名工具调用改为响亮丢弃、严格回显修复扩展到 Responses 协议及重试路径、缓存账本不再截断旧记录、Web UI 重写加日志页)均为有意设计且已在 PR 中披露,CI 13/13 全绿、发布分支 diff 干净,可以合并。

@ranxianglei
ranxianglei merged commit c4ead37 into master Sep 27, 2026
13 checks passed
@ranxianglei
ranxianglei deleted the 2026-09-27_release-v0.1.161 branch October 15, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant