You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: compaction mode 'off' or 'error' to hard-fail instead of summarizing #17735
When a session hits the context window limit, auto-compaction summarizes older history. The summary is lossy and agents don't reliably recover context afterward, even with explicit recovery instructions in workspace files.
Request
Add a compaction mode that refuses to compact and instead returns a hard error, forcing the session to be manually reset. Something like:
{ compaction: { mode: error } }
Why
Compaction summaries lose nuance, decisions, and working context
Recovery instructions are unreliable post-compaction
A hard failure with clean context rebuild is preferable to a silently degraded session
Users who manage long sessions via /reset already have the muscle memory; they just need the signal
Current behavior
Only two modes exist: default and safeguard. Both compact. There's no way to opt out.
Hey @karmaniverous — PR #19329 adds compaction.mode: "off" as a per-agent override, which should address your core request. When set, the agent skips compaction entirely — no summarization, no token reserve enforcement, no memory flush.
It doesn't include the "error" mode you mentioned (hard-fail on context limit), but "off" gives you full control to handle context management externally via plugins or custom logic.
If this covers your use case, a 👍 on the PR would help get it prioritized. Happy to discuss if you'd still want an "error" mode as a follow-up.
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh repro steps.
Activity
curtismercier commentedon Feb 17, 2026
Hey @karmaniverous — PR #19329 adds
compaction.mode: "off"as a per-agent override, which should address your core request. When set, the agent skips compaction entirely — no summarization, no token reserve enforcement, no memory flush.It doesn't include the
"error"mode you mentioned (hard-fail on context limit), but"off"gives you full control to handle context management externally via plugins or custom logic.If this covers your use case, a 👍 on the PR would help get it prioritized. Happy to discuss if you'd still want an
"error"mode as a follow-up.openclaw-barnacle commentedon Feb 25, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Mar 14, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh repro steps.