Skip to content

delegate session-handoff rendering to acp-kernel renderHandoff #601

Closed

Description

@ranxianglei

Problem

src/export.ts carries its own handoff rendering (renderHandoff, folded-view logic) that duplicates kernel-side rendering semantics. Kernel 0.0.54 exports renderHandoff natively. The #587 rewrite (bounded folded snapshot, --full block append) grew the local implementation further, increasing divergence surface.

Impact

Any kernel-side change to folding/summary rendering must be manually mirrored in export.ts or bili export drifts from what the model actually saw.

Suggested fix

Consume the kernel's renderHandoff for the standard paths and keep only host-side glue (headers, --full blockContents append). PR #434 has the original delegation but must be reworked against the post-#587 export.ts.

Activity

  1. ranxianglei commented on Sep 7, 2026

    @ranxianglei
    OwnerAuthor

    PR#631 implements the delegation (kernel v0.0.57 renderHandoff + folded/blocksFull; host keeps v2 fallback + blockContents glue; kernel pin 0.0.56→0.0.57). Old PR#434 closed as superseded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions