mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-12 21:36:06 +00:00
* fix(session): prevent stale finalizer from recreating deleted session rows After sessions.delete removes a session row, updateSessionStoreAfterAgentRun could still recreate it via the fallbackEntry path in patchSessionEntry when preserveUserFacingRunState was false. Changed the guard from only checking preserveUserFacingRunState to checking whether the session key exists in the in-memory store but not on disk — indicating the session was intentionally deleted mid-run. Fixes #40840 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * test(session): cover deleted session finalizer fence * fix(session): fence post-run writes after deletion * fix(session): guard post-run transcript persistence * fix(session): fence metadata after session reset --------- Co-authored-by: Peter Lee <22994703+xialonglee@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Vincent Koc <25068+vincentkoc@users.noreply.github.com>