#session timeout

1 messages · Page 1 of 1 (latest)

woven vine
#

It seems the sessions are deleted/new every night. How can I make them last 7d by default? Will this affect the dreaming sessions?

frozen estuaryBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

regal lilyBOT
#

Yep — there are two separate knobs here:

  1. “New session every night” is usually the default reset policy: OpenClaw defaults to a daily rollover at about 4am local time.

To make normal chat sessions last 7 days of inactivity instead:

pnpm openclaw config set session.reset.mode idle
pnpm openclaw config set session.reset.idleMinutes 10080 --strict-json
pnpm openclaw gateway restart

10080 = 7 days × 24 hours × 60 minutes.

  1. Actual pruning/deletion is session.maintenance.pruneAfter. That defaults to 30d in current code, so it’s probably not the thing causing the nightly new sessions. If you specifically want stored session entries cleaned after 7d, set: