Clawdis treats one session as primary. By default the canonical key is main for every direct chat; no configuration is required. You can rename it via inbound.reply.session.mainKey if you really want, but there is still only a single primary session. Older/local sessions can stay on disk, but only the primary key is used for desktop/web chat and direct agent calls.
~/.clawdis/sessions/sessions.json (legacy: ~/.clawdis/sessions.json).~/.clawdis/sessions/<SessionId>.jsonl (one file per session id).sessionKey -> { sessionId, updatedAt, ... }. Deleting entries is safe; they are recreated on demand.group:<jid> keys; do not reuse the primary key for groups.inbound.reply.session.idleMinutes (default 60). After the timeout a new sessionId is minted on the next message./new (plus any extras in resetTriggers) start a fresh session id and pass the remainder of the message through.// ~/.clawdis/clawdis.json
{
inbound: {
reply: {
session: {
scope: "per-sender", // keep group keys separate
idleMinutes: 120,
resetTriggers: ["/new"],
store: "~/.clawdis/sessions/sessions.json",
mainKey: "main" // optional rename; still a single primary
}
}
}
}
pnpm clawdis status — shows store path and recent sessions.pnpm clawdis sessions --json — dumps every entry (filter with --active <minutes>)./status in chat to see whether the agent is reachable, how much of the session context is used, current thinking/verbose toggles, and when your WhatsApp web creds were last refreshed (helps spot relink needs).