Skip to content

refactor(session): extract sharing orchestration#21759

Merged
kitlangton merged 2 commits intodevfrom
session-share-extract
Apr 10, 2026
Merged

refactor(session): extract sharing orchestration#21759
kitlangton merged 2 commits intodevfrom
session-share-extract

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

@kitlangton kitlangton commented Apr 9, 2026

Summary

  • extract session sharing and root-session auto-share policy into a new SessionShare layer above Session
  • remove share and unshare orchestration from Session, keeping it closer to core session state/persistence
  • have ShareNext clean up shares on Session.Event.Deleted and update routes/callers to use SessionShare
  • add a v2 note for removing the dedicated session.init compatibility route in specs/v2/session.md

Testing

  • bun typecheck
  • bun turbo typecheck
  • bun run test -- test/share/share-next.test.ts

@kitlangton kitlangton marked this pull request as ready for review April 10, 2026 01:47
@kitlangton kitlangton merged commit 16c60c9 into dev Apr 10, 2026
9 of 12 checks passed
@kitlangton kitlangton deleted the session-share-extract branch April 10, 2026 01:47
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