openclaw - 💡(How to fix) Fix [Bug]: Chat history entries replaced with "chat.history omitted: message too large" after compaction [2 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#69756Fetched 2026-04-22 07:48:38
View on GitHub
Comments
2
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
commented ×2labeled ×1

After compaction, chat history entries are replaced with the message [chat.history omitted: message too large], making the original content inaccessible.

Root Cause

After compaction, chat history entries are replaced with the message [chat.history omitted: message too large], making the original content inaccessible.

RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

After compaction, chat history entries are replaced with the message [chat.history omitted: message too large], making the original content inaccessible.

Steps to reproduce

Open a chat with large or numerous messages Trigger or wait for history compaction View the chat history Observe entries replaced with [chat.history omitted: message too large]

Expected behavior

History need to work normally without this notice

Actual behavior

Chat messages are replaced with the placeholder [chat.history omitted: message too large] and their content is not visible.

OpenClaw version

OpenClaw 2026.4.15 (041266a)

Operating system

Windows 11

Install method

No response

Model

minimax 2.5

Provider / routing chain

opencode

Additional provider/model setup details

<img width="470" height="67" alt="Image" src="https://github.com/user-attachments/assets/22e049b4-a341-481e-9cee-d0ee3cab2da2" />

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The issue can likely be mitigated by adjusting the compaction settings or message size limits to prevent replacement of chat history entries with the "[chat.history omitted: message too large]" placeholder.

Guidance

  • Review the compaction settings in OpenClaw to see if there are any configurable options for message size limits or history retention that can be adjusted to prevent this issue.
  • Check if there are any known issues or limitations in OpenClaw version 2026.4.15 related to chat history compaction and large messages.
  • Consider testing with smaller chat messages or fewer messages to see if the issue is indeed related to message size or quantity.
  • Investigate if there are any provider-specific settings or configurations (e.g., opencode) that may be contributing to this behavior.

Example

No specific code example can be provided without more information on the underlying implementation, but adjusting compaction settings might involve modifying configuration files or environment variables.

Notes

The exact solution may depend on the specifics of the OpenClaw configuration, the opencode provider, and the minimax 2.5 model, which are not fully detailed in the issue. Additionally, without access to the logs or more detailed error messages, it's challenging to provide a precise fix.

Recommendation

Apply workaround: Adjust compaction settings or message size limits to mitigate the issue, as upgrading to a potentially fixed version is not explicitly implied in the provided information.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

History need to work normally without this notice

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: Chat history entries replaced with "chat.history omitted: message too large" after compaction [2 comments, 1 participants]