Skip to content

refactor(core): drop legacy compaction event - #33404

Merged
kitlangton merged 8 commits into
devfrom
drop-compaction-v1
Jun 22, 2026
Merged

kitlangton merged 8 commits into
devfrom
drop-compaction-v1

Conversation

@kitlangton

@kitlangton kitlangton commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • remove the unpublished compaction completion payload and its legacy decoder
  • use only the current checkpoint payload as session.next.compaction.ended.1
  • reset experimental event, projection, input, Context Epoch, and workspace/sync state while preserving canonical V1 session, message, and part rows

Why

The old payload cannot be truthfully converted because it lacks messageID, reason, and recent. Since the complete pre-release event/workspace state is disposable, resetting it lets the supported schema present the final payload as version 1 without compatibility machinery.

Verification

  • bun run test test/database-migration.test.ts test/session-projector.test.ts test/session-runner.test.ts test/event.test.ts (146 passed)
  • bun run migration --check
  • bun run typecheck in packages/core
  • JavaScript SDK regeneration and typecheck
  • pre-push workspace typecheck (23/23 tasks)
  • full Core suite: 1,005 passed; one unrelated macOS watcher assertion reports .git/HEAD as add instead of change

@kitlangton
kitlangton marked this pull request as draft June 22, 2026 17:21
@kitlangton
kitlangton marked this pull request as ready for review June 22, 2026 17:25
@kitlangton
kitlangton enabled auto-merge (squash) June 22, 2026 17:31
@kitlangton
kitlangton disabled auto-merge June 22, 2026 17:33
@kitlangton
kitlangton merged commit 1787fa4 into dev Jun 22, 2026
10 of 12 checks passed
@kitlangton
kitlangton deleted the drop-compaction-v1 branch June 22, 2026 19:39
BenGu3 pushed a commit to BenGu3/opencode that referenced this pull request Jun 27, 2026
rldona pushed a commit to rldona/FlupCode that referenced this pull request Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant