`getSession()` returned better-auth's raw session, whose user has no
`actorId`, while `requireUser()` attached one. A product reading
`session.user.actorId` in a server component — Heidi's dashboard, its
channels page, every page gated on "is somebody signed in" — got
`undefined` for every signed-in person and drew the signed-out page, while
its API routes, going through `requireUser`, worked. That split is how it
stayed invisible: nothing was red, the page was merely wrong.
One reader now: `sessionFor(headers)` resolves the session and the actor
id; `getSession` and `requireUser` both go through it, and it is exported
for a product that holds the headers itself. The runtime test pins the two
answers to each other.
Claude-Session: https://claude.ai/code/session_01RKRxpcVWoZwtg6Gfr9m6Rb
Co-authored-by: Claude <noreply@anthropic.com>