#session timeout
1 messages · Page 1 of 1 (latest)
Yep — there are two separate knobs here:
- “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.
- 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: