openclaw/docs
Val Alexander d4e04f33a6
fix(sessions): retire stale direct dm rows after dmscope changes
Summary:
- Add explicit sessions cleanup --fix-dm-scope handling for stale direct-DM rows after session.dmScope returns to main.
- Preserve removed-row transcripts as deleted archives and expose the option through CLI, Gateway RPC, protocol schema, generated Swift mirrors, docs, tests, and changelog.
- Fixes #47561 and #45554.

Verification:
- pnpm exec oxfmt --check --threads=1 CHANGELOG.md docs/cli/sessions.md docs/concepts/session.md src/config/sessions/cleanup-service.ts src/commands/sessions-cleanup.ts src/cli/program/register.status-health-sessions.ts src/gateway/protocol/schema/sessions.ts src/gateway/server-methods/sessions.ts src/config/sessions/store.pruning.integration.test.ts src/commands/sessions-cleanup.test.ts src/cli/program/register.status-health-sessions.test.ts
- git diff --check origin/main...HEAD
- pnpm protocol:check
- pnpm exec oxlint src/config/sessions/cleanup-service.ts src/commands/sessions-cleanup.ts src/cli/program/register.status-health-sessions.ts src/gateway/protocol/schema/sessions.ts src/gateway/server-methods/sessions.ts src/config/sessions/store.pruning.integration.test.ts src/commands/sessions-cleanup.test.ts src/cli/program/register.status-health-sessions.test.ts
- pnpm test src/config/sessions/store.pruning.integration.test.ts src/commands/sessions-cleanup.test.ts src/cli/program/register.status-health-sessions.test.ts src/gateway/server.sessions.store-rpc.test.ts
- pnpm changed:lanes --json

Security:
- No new network, credential, process execution, dependency, or permission surface. Cleanup is explicit operator-invoked local session-store repair.

CI note:
- Exact-head CI failures match current main at 2e78fc57af in unrelated extensions/codex and extensions/microsoft-foundry type checks, outside this PR diff. No required checks are reported for this branch.
2026-05-07 02:16:46 -05:00
..
.generated docs: refresh plugin sdk api baseline hash 2026-05-06 23:16:24 -07:00
.i18n fix(acpx): harden session lifecycle cleanup 2026-05-07 07:30:37 +01:00
assets
automation fix: bound stale task reload blockers 2026-05-07 05:25:54 +01:00
channels feat: stream elevenlabs tts into discord voice 2026-05-07 06:47:31 +01:00
cli fix(sessions): retire stale direct dm rows after dmscope changes 2026-05-07 02:16:46 -05:00
concepts fix(sessions): retire stale direct dm rows after dmscope changes 2026-05-07 02:16:46 -05:00
debug docs: typography hygiene across 6 pages (gateway/cli/debug) 2026-05-06 08:49:27 -07:00
diagnostics feat(brave): add http diagnostics flag 2026-05-02 07:49:12 +01:00
gateway fix(acpx): harden session lifecycle cleanup 2026-05-07 07:30:37 +01:00
help config: stop automatic writes and guard Nix mutators (#78047) 2026-05-06 14:43:32 +02:00
images
install docs: clarify planned monthly support lines 2026-05-07 01:42:20 +01:00
nodes docs: remove duplicate body H1s + sentence-case headings across 10 pages 2026-05-06 09:06:11 -07:00
plan Stop heartbeat tool turns from asking for HEARTBEAT_OK (#76338) 2026-05-03 13:46:26 +09:00
platforms docs: typography hygiene across 6 pages (start/tools/nodes/mac/platforms) 2026-05-05 23:14:49 -07:00
plugins fix(acpx): harden session lifecycle cleanup 2026-05-07 07:30:37 +01:00
providers feat: stream elevenlabs tts into discord voice 2026-05-07 06:47:31 +01:00
refactor fix(acpx): harden session lifecycle cleanup 2026-05-07 07:30:37 +01:00
reference docs: clarify planned monthly support lines 2026-05-07 01:42:20 +01:00
security docs: sentence-case 4 stray Title Case headings 2026-05-06 09:22:35 -07:00
snippets/plugin-publish docs: show explicit startup activation in plugin examples 2026-04-28 03:13:20 +01:00
start docs(imessage): deprecate bluebubbles for new setups 2026-05-06 21:58:21 +01:00
superpowers/specs docs: complete source-backed docs sweep 2026-05-02 22:37:01 +01:00
tools fix(acpx): harden session lifecycle cleanup 2026-05-07 07:30:37 +01:00
web Keep Control UI responsive under slow status and history loads 2026-05-05 22:07:39 -05:00
AGENTS.md
auth-credential-semantics.md [codex] Make external CLI credential discovery explicit (#75209) 2026-04-30 20:32:55 +00:00
brave-search.md docs(brave): redirect legacy search page 2026-05-02 04:42:55 +01:00
ci.md ci: run channel contract shards on blacksmith 2026-05-07 03:56:53 +01:00
CLAUDE.md
date-time.md docs: audit and fix 4 pages (pi version bump + 3 typography/H1) 2026-05-05 21:14:55 -07:00
docs.json fix(acpx): harden session lifecycle cleanup 2026-05-07 07:30:37 +01:00
index.md
logging.md docs(logging): document bounded Talk log records 2026-05-06 03:02:02 -07:00
nav-tabs-underline.js
network.md docs: audit and fix 4 pages (pi version bump + 3 typography/H1) 2026-05-05 21:14:55 -07:00
perplexity.md docs: consolidate moved docs pages 2026-05-05 17:38:21 +01:00
pi-dev.md docs: full-page readability pass on 5 worst-offender pages 2026-04-26 23:57:10 -07:00
pi.md docs: audit and fix 4 pages (pi version bump + 3 typography/H1) 2026-05-05 21:14:55 -07:00
prose.md
style.css
tts.md
vps.md Docs: add VPS admin hardening note (#54685) 2026-04-29 14:36:33 -07:00
whatsapp-openclaw-ai-zh.jpg
whatsapp-openclaw.jpg