Skip to content

refactor(core): remove orphaned message projector paths - #40705

Merged
kitlangton merged 1 commit into
v2from
trim-memory-projector
Aug 5, 2026
Merged

refactor(core): remove orphaned message projector paths#40705
kitlangton merged 1 commit into
v2from
trim-memory-projector

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

What

Remove the test-only in-memory session message projector and event handlers that cannot run through the durable SQL projector.

How

  • Remove SessionMessageUpdater.memory and its two adapter-specific tests.
  • Narrow SessionMessageUpdater.update from all session events to SessionEvent.DurableEvent.
  • Dispatch exhaustively over durable event types, removing unreachable ephemeral delta, progress, and usage handlers.
  • Preserve all durable SQL projection handlers and behavior.

Scope

This does not change ephemeral event publication or live consumers. It only removes their unreachable paths from the durable message projector.

Testing

  • bun typecheck from packages/core
  • bun run test test/session-projector.test.ts test/session-runner.test.ts test/session-prompt.test.ts test/session-compaction.test.ts from packages/core (194 passed)
  • git diff --check

@kitlangton
kitlangton merged commit 0af6c82 into v2 Aug 5, 2026
9 of 10 checks passed
@kitlangton
kitlangton deleted the trim-memory-projector branch August 5, 2026 19:13
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