Skip to content

The agent that grows with you

docs(sessions): say what user_id holds for desktop and dashboard sessions

teknium1f39ae9000c9e
diff --git a/website/docs/developer-guide/session-storage.md b/website/docs/developer-guide/session-storage.md
index 78f34343f0f..56430819040 100644
--- a/website/docs/developer-guide/session-storage.md
+++ b/website/docs/developer-guide/session-storage.md
@@ -194,6 +194,14 @@ CREATE UNIQUE INDEX IF NOT EXISTS idx_sessions_title_unique
ON sessions(title) WHERE title IS NOT NULL;
```
+`user_id` is the principal on the other end of the session: messaging adapters
+store the platform sender id, and `desktop` / dashboard sessions opened through
+an authenticated `hermes serve` (OAuth or the basic username/password provider)
+store the login as `<provider>:<user id>` (for example `basic:alice`). Sessions
+with nobody behind them — anonymous loopback use, `subagent`, `cron`, `kanban`
+— keep it empty. The value is set when the row is created and never inferred
+later.
+
### Messages Table
Abridged — the full schema also includes `effect_disposition`,