Commit d67c73a
fix(controller): disable daily session auto-reset for desktop (#542)
* fix(controller): disable daily session auto-reset for desktop
OpenClaw defaults to resetting all sessions daily at 4 AM, which
silently archives conversation history and starts a fresh session.
This is unexpected for a desktop chat app where users expect
persistent conversations. Switch to idle-based reset with a 1-year
timeout so sessions effectively never auto-reset, relying on
compaction (safeguard mode) to manage context window instead.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(controller): tune compaction config for desktop assistant
Add recentTurnsPreserve: 5 (keep last 5 turns verbatim instead of
default 3) and enable qualityGuard (audit summaries for completeness
after compaction). Both improve context continuity for long-running
desktop sessions that no longer auto-reset daily.
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent be8df76 commit d67c73a
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| 453 | + | |
| 454 | + | |
453 | 455 | | |
454 | 456 | | |
455 | 457 | | |
| |||
491 | 493 | | |
492 | 494 | | |
493 | 495 | | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
494 | 503 | | |
495 | 504 | | |
496 | 505 | | |
| |||
0 commit comments