Skip to content

feat(session): persist previous selections - #41771

Merged
rekram1-node merged 1 commit into
v2from
durable-selection-previous
Aug 11, 2026
Merged

rekram1-node merged 1 commit into
v2from
durable-selection-previous

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • include the previous agent and model in new durable selection events
  • keep both fields optional so existing version-1 event logs continue to decode and replay
  • prefer durable predecessors when projecting switch messages, with ordered-state fallback for historical events
  • update the App replay reducer and generated client/OpenAPI surfaces

This establishes the shared durable contract needed by #41665 before rebasing its Plan plugin work.

Semantics

New selection events snapshot previous from the current Session projection before publication, following the implementation direction agreed for this change.

Validation

  • bun test test/session-create.test.ts from packages/core (32 passed)
  • focused server-session-v2-reducer.test.ts from packages/app (6 passed)
  • bun typecheck from Core, App, Schema, Client, and Protocol
  • bun run check:generated from packages/client
  • repository pre-push typecheck: 33 tasks passed

@rekram1-node
rekram1-node merged commit 8c27c84 into v2 Aug 11, 2026
9 of 10 checks passed
@rekram1-node
rekram1-node deleted the durable-selection-previous branch August 11, 2026 15:52
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