When to use private sessions
- You’re working on something that isn’t ready for teammates to see.
- The session involves sensitive repositories, credentials, or customer data.
- You want a personal scratch space without cluttering the shared sidebar.
Create a private session
From the web UI
- Go to New session.
- Toggle Private before submitting.
- Create the session.
From Slack
New Slack threads and Slack agent direct messages can have different default visibility. When a Slack conversation starts a new Cake session, it uses the default for that conversation type. You can also set visibility through the API when creating a session:private field is required on session creation. Set it to true for a private session or false for a public one.
Filter sessions in the sidebar
The sidebar can show public sessions, private sessions, or both.- Use the visibility filter (globe and lock icons) at the top of the session list to toggle which sessions are displayed.
- Private sessions you do not own never appear in the list.
Set default visibility
You can configure the default visibility for new sessions in Settings → User → Sessions → Privacy. Three defaults are available:
Each setting has two scopes:
- Organization default (set by an admin and applied to everyone who hasn’t overridden it).
- User override (your personal preference, which takes precedence over the org default).
How visibility is enforced
- Private sessions are filtered out of session list endpoints for users who don’t own them.
- The session events stream (
GET /api/sessions/events) skips private sessions whose owner isn’t the subscriber. - Session detail, message, and action routes return a not-found response for private sessions that don’t belong to the requester.