docs: fix config examples -- perSession deprecation and dmScope guidance

- Replace perSession: true with scope: "session" (preferred syntax)
- Add dmScope: "per-channel-peer" to expanded example for multi-user safety
This commit is contained in:
Vincent Koc 2026-03-31 14:32:55 +09:00
parent 4ab7947ec0
commit 1bf8fb26f4
1 changed files with 2 additions and 1 deletions

View File

@ -154,6 +154,7 @@ Save to `~/.openclaw/openclaw.json` and you can DM the bot from that number.
// Session behavior
session: {
scope: "per-sender",
dmScope: "per-channel-peer", // recommended for multi-user inboxes
reset: {
mode: "daily",
atHour: 4,
@ -288,7 +289,7 @@ Save to `~/.openclaw/openclaw.json` and you can DM the bot from that number.
},
sandbox: {
mode: "non-main",
perSession: true,
scope: "session", // preferred over legacy perSession: true
workspaceRoot: "~/.openclaw/sandboxes",
docker: {
image: "openclaw-sandbox:bookworm-slim",