What are you trying to do?
Safely archive one stale Feishu session while the Gateway is stopped, preserving its history and preventing automatic restart recovery.
Environment
-
OpenClaw version: 2026.11.1 (4ffdd20)
-
Operating system: Windows
-
Installation: Local Node.js installation
-
Gateway: Local Windows user session, started with
openclaw gateway run -
Channel: Feishu plugin disabled
What happened?
The Gateway is currently stopped.
A historical Feishu session is marked done but still has a replayable pendingFinalDelivery, with its old delivery state marked prepared.
Even with the Feishu plugin disabled, Gateway startup previously triggered main-session-restart-recovery and launched a background Agent run for this session.
The official sessions archive command requires a running Gateway, while starting the Gateway may resume the session before I can archive it.
What have you tried?
-
Disabled the Feishu plugin.
-
Confirmed that the old session remains eligible for restart recovery.
-
Reviewed the official session archive and cleanup commands.
-
Did not modify the production SQLite database or restart the Gateway to experiment.
Safe diagnostics
Relevant previous startup log messages:
[main-session-restart-recovery] dispatching restart-safe recovery for agent:main:feishu:direct:<redacted>
[main-session-restart-recovery] started interrupted main session: agent:main:feishu:direct:<redacted> (with pending payload)
Question
In OpenClaw 2026.11.1, is there an officially supported way to:
-
Archive one specific session while the Gateway is stopped; or
-
Temporarily disable main-session restart recovery during a maintenance startup, so the official
sessions archivecommand can be used?
I want to preserve session history and audit information, avoid direct SQLite changes, and leave other agents and sessions unaffected.
Thank you!