Files
pad/internal
xarmian ab4cd6926e fix(server): an open workspace event stream closes when its workspace is soft-deleted (BUG-3273) (#1638)
The per-tick recheck of GET /api/v1/events asked only about the
principal. A soft delete keeps membership and grant rows for restore,
so members, guests, the cookie admin and legacy tokens all stayed
admitted, while the entry check refuses a deleted workspace to
everyone. A stream open at delete time ran on for as long as the tab
held it, taking a slot in the SSE budget.

The recheck now asks about the workspace first, through the live-only
GetWorkspaceByID: nil ends the stream with `unauthorized` for every
principal, and a store error keeps the connection, like the checks
after it. Collab sockets already close through authorizeCollabAccess.

Claude-Session: https://claude.ai/code/session_01NidgPePY7UvHcEJCMkD2Qz
2026-09-28 11:04:51 -04:00
..
2026-03-26 01:52:36 +00:00