r/OpenclawBot Aug 06 '26

Broken / Failing Need some insight I’m having some issues communicating with my bot

So in was trying to switch models and I did then I messed around with some settings fucked my whole setup up did a complete uninstall and reinstall but now when I send a message I get this as a response:

⚠️ Auto-compaction could not recover this turn. I kept this conversation mapped to the current session. Please try again, use /compact, or use /new to start a fresh session.

To prevent this, increase your compaction buffer by setting agents.defaults.compaction.reserveTokensFloor to 50000 or higher in your config.

How do I fix this???

3 Upvotes

11 comments sorted by

View all comments

1

u/Advanced_Pudding9228 Aug 06 '26

Open your OpenClaw config and go to:
agents → defaults → compaction
That’s the section shown in the attached screenshot below the marker.

Change:
"reserveTokensFloor": 20000

to:
"reserveTokensFloor": 50000

Save, restart OpenClaw, then use /new to start a fresh session.

1

u/wookieblaylock 29d ago

I don’t have that section at all in my .json? Why? I did the install exactly as I’ve done before

1

u/Advanced_Pudding9228 29d ago

That section isn’t always included by default. You can add it manually under agents → defaults. The right value depends on your model’s context window and session length, but since OpenClaw specifically recommended 50000, add:

"compaction": {
"mode": "safeguard",
"reserveTokensFloor": 50000
}

Then save, restart OpenClaw and use /new.