feat(gateway): chat sessions belong to one org

Sessions carry an org; listing, reading and writing a session, its
messages and its turns are limited to the caller's org. Another org's
session reads as not found and cannot be overwritten or appended to.
Sessions from before orgs belong to the system org.
This commit is contained in:
sam committed 2026-10-10 18:57:26 +11:00
1 parent 9cd52dd9aa
commit 0fcf792db3
6 files changed
+241 -29

No files matched your search

@@ -354,6 +354,7 @@ type Session struct {
BranchName string
CreatedAt int64
LastActiveAt int64
OrgID string
}
type Source struct {