openclaw - 💡(How to fix) Fix bootstrap-injection truncation warning fires only once per session by default; silent across many sessions [1 comments, 2 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#78211Fetched 2026-05-07 03:39:36
View on GitHub
Comments
1
Participants
2
Timeline
1
Reactions
2
Author
Timeline (top)
commented ×1

When a bootstrap-injected file (e.g. MEMORY.md) crosses the per-file char cap (default 12000), it gets silently truncated and the runtime emits one warning that is easy to miss. We had a real incident on 2026-05-04 where MEMORY.md grew to ~14K chars; recall was degraded across many fresh sessions before it was caught visually.

Root Cause

When a bootstrap-injected file (e.g. MEMORY.md) crosses the per-file char cap (default 12000), it gets silently truncated and the runtime emits one warning that is easy to miss. We had a real incident on 2026-05-04 where MEMORY.md grew to ~14K chars; recall was degraded across many fresh sessions before it was caught visually.

Fix Action

Fix / Workaround

Workaround we're using

RAW_BUFFERClick to expand / collapse

Affected version

[email protected].

Summary

When a bootstrap-injected file (e.g. MEMORY.md) crosses the per-file char cap (default 12000), it gets silently truncated and the runtime emits one warning that is easy to miss. We had a real incident on 2026-05-04 where MEMORY.md grew to ~14K chars; recall was degraded across many fresh sessions before it was caught visually.

What we want

Default bootstrapPromptTruncationWarning: always so the warning surfaces every session that hits truncation, not just the first.

Or — better — surface it through openclaw doctor and the gateway-startup log line, not just the per-session warning channel. Truncation that quietly degrades agent recall floor across many sessions is exactly the kind of failure mode that should be loud at the operational layer, not buried in a per-session warning.

Workaround we're using

Set bootstrapPromptTruncationWarning: always in ~/.openclaw/openclaw.json and ship a per-machine daily-cron guardrail script that checks bootstrap-injected file sizes and warns before truncation hits.

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…

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 bootstrap-injection truncation warning fires only once per session by default; silent across many sessions [1 comments, 2 participants]