Skip to content

feat: collapsed context handoff summaries in replay (0.4.0) - #53

Merged
william0wang merged 2 commits into
mainfrom
feat/replay-collapsed-handoff
Aug 17, 2026
Merged

feat: collapsed context handoff summaries in replay (0.4.0)#53
william0wang merged 2 commits into
mainfrom
feat/replay-collapsed-handoff

Conversation

@william0wang

Copy link
Copy Markdown
Owner

Summary

Remote clients replayed the harness context-handoff summary ("This session is being continued from a previous conversation…") verbatim as a user-sent wall of text. Dropping it entirely would lose real information, so it is now flagged instead: the session/update notification carries _meta.zcode.collapsed (kind: "context-handoff"), full text unchanged in the chunk. Capable clients render it folded behind an expand control; clients that ignore _meta (Zed) are unaffected. Harness noise (TodoWrite/Read nudges) stays stripped — it has no informational value and recurs too often to collapse.

Contract documented in docs/REPLAY-GUIDE.md ("Collapsed harness blocks"). Includes the 0.4.0 release bump (minor: additive protocol extension).

Testing

  • Full suite green, typecheck/lint/build clean
  • New coverage: handoff summary flagged with collapse meta + full text preserved; ordinary user/agent text carries no _meta

@william0wang
william0wang merged commit b7a1b46 into main Aug 17, 2026
@william0wang
william0wang deleted the feat/replay-collapsed-handoff branch August 17, 2026 13:29
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