Endpoints for the sign-in auto-open handover

FeatureMediaService
Shipped
August 10, 2026 at 9:04 PM UTC
Author
Kamo
Commit
865c2c2

GET /sessions/chat/auto-open returns the chat conversations this member's client should raise; POST /sessions/{guid}/auto-opened records that it did. The durable counterpart of the support handover, and for the same reason: the decision belongs to the platform, not to one browser tab's sessionStorage. The write is scoped to the caller's own membership row, so one member's client can never retire another's, and stamps server time rather than a client-supplied value — the comparison is against message timestamps written by this same clock, and a skewed browser would otherwise either suppress a conversation forever or re-raise it endlessly. ChatAutoOpenHqlTest parses the query against the real entity model and pins the three predicates it exists for. Spring Data only validates @Query at context boot, so a typo would otherwise surface as a failed startup or a 500 on a path every member hits at sign-in; the test reads the query off the annotation by reflection so it cannot pass against a stale copy.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing