Skip to content

v0.1.63

Choose a tag to compare

@github-actions github-actions released this 29 Aug 10:48
2b6e2dc

v0.1.63 — codex compression-budget coordination family (PR #336)

New

  • Budget alignment (#322) — launcher injects codex model_context_window / model_auto_compact_token_limit via -c, so codex's auto-compact budget matches bili's window.
  • Semantic rebase gate (#323) — rebase success is judged by SSE terminal state (response.completed / response.failed), not HTTP status. Relays that answer 200 with a failed SSE body no longer trigger false rebases.
  • Effective window clamp (#324) — effective window = min(bili window, codex's own perception), backed by a bundled snapshot of codex's model table (src/codex-models-snapshot.json, refresh with npm run codex-models:snapshot).
  • Intercept-forged compaction (#325) — bili intercepts codex's native compaction requests and forges a local handoff to the ACP state: trigger form forges a 2-frame SSE, endpoint form forges {output}; forged summaries ride history (developer-message fallback); fc_bili_ items are stripped from re-sent history. BILI_CODEX_COMPACT now defaults to intercept (opt out with pass).
  • Subagent identity partitioning (#317) — x-codex-turn-metadata.thread_source == "user" → session-id identity; anything else → thread-id identity. Guardian/subagent turns no longer hijack the root session (#150 family).
  • Anonymous tail-window re-attach (#319) — rolling-window clients (tail of history only) re-attach at arbitrary offsets instead of orphaning the session.
  • Codex local-upstream fallback — when codex's upstream is local/private (sglang / vLLM / Ollama …), the launcher auto-falls back to wire-injected flat tools, because self-hosted backends cannot parse codex's namespaced MCP tool format. Explicit BILI_LAUNCHER_PLUGIN=1/0 is still honored.

Fixed

  • 12 review fixes from the stack audit, including: hybrid handoff (re-request replaces the forged echo with a history-borne summary message + capture fallback), unified isCodexClient on CODEX_UA_PREFIXES (codex_exec/ was missed), tail-window offset-0 guard, and strip-on-every-forwarding-path.

Verification

  • typecheck ✓ · tests 745/745 ✓ · build ✓
  • E2E suite (incl. forge + deep-recall phases) passing against a local sglang upstream

Note: #327 / #328 shipped earlier in v0.1.62; the #330 preflight soft-zone relax is still in flight as PR #337.