Skip to content

fix(openclaw): honor session persistence setting - #383

Open
Minoo7 wants to merge 1 commit into
topoteretes:mainfrom
Minoo7:fix/openclaw-session-persistence-gate
Open

fix(openclaw): honor session persistence setting#383
Minoo7 wants to merge 1 commit into
topoteretes:mainfrom
Minoo7:fix/openclaw-session-persistence-gate

Conversation

@Minoo7

@Minoo7 Minoo7 commented Aug 30, 2026

Copy link
Copy Markdown

The public persistSessionsAfterEnd setting was parsed but did not control either persistence path. Clean session_end still called /improve, and the detached crash watcher always received the dataset and session IDs needed to improve after gateway death.

This change gates both paths with persistSessionsAfterEnd while preserving session registration and unregister behavior. improveOnSessionEnd remains an additional clean-end gate.

Regression proof:

  • bunx jest __tests__/e2e/test_sessionCapture.ts --runInBand
  • bunx tsc --noEmit
  • bun run test -- --runInBand (31 suites, 391 tests)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant