Skip to content

delegate export handoff rendering to kernel (fixes #601) - #631

Merged
ranxianglei merged 1 commit into
masterfrom
2026-09-07_export-delegate-kernel
Sep 7, 2026
Merged

ranxianglei merged 1 commit into
masterfrom
2026-09-07_export-delegate-kernel

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

Rework of PR#434 (original delegation) onto post-#587 master, on top of kernel v0.0.57 (shipped folded + blocksFull via acp-kernel#216/#217).

What

  • src/export.ts renderHandoff: the conversation-snapshot path (folded view / --full / persisted-folded --full block append) now delegates to the kernel's renderHandoff — one renderer, no drift. Host keeps only the v2 fallback (no persisted snapshot) and blockContents glue.
  • matchSession delegates to the kernel helper (same exact → label → prefix semantics).
  • acp-kernel pin 0.0.56 → 0.0.57 (needs HandoffBlockFull + folded input).

Verification

  • Rendered output is byte-identical for all existing paths — export suites pass unchanged (cli-export / e2e-export-handoff / persist-tail / export-uncompressed 10/10).
  • Full pre-flight: typecheck ✓ · tests 1238/1240 (2 known plugin-agent.test.ts env fails) ✓ · build ✓ (kernel 0.0.57 bundled)

Fixes #601. Supersedes #434 (close it in favor of this).

…601)

Rework of PR#434 onto master + kernel 0.0.57:

- src/export.ts renderHandoff: snapshot path now calls the kernel's
  renderHandoff (folded + blocksFull from blockContents); host keeps only
  the v2 fallback (no persisted snapshot) and block-content glue.
- matchSession delegates to the kernel helper.
- acp-kernel pin 0.0.56 -> 0.0.57 (needs HandoffBlockFull + folded).

Fixes #601
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-09-07_export-delegate-kernel (7742e0c)

Option A — Install from npm PR tag (recommended)

npm install -g billion-context@pr-631

Each push to this PR publishes a new version under the pr-631 npm tag.

Option B — Download artifact

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

This comment is automatically updated on each push.

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.

delegate session-handoff rendering to acp-kernel renderHandoff

1 participant