openclaw/docs
Kris Wu 444a093593
fix(agents): skip pre-prompt precheck when context engine owns compaction (#95342)
* fix(agents): skip pre-prompt precheck when context engine owns compaction

When a context engine advertises ownsCompaction=true (e.g. lossless-claw),
skip the pre-prompt preemptive overflow precheck entirely. The engine
already manages the context budget through assemble() and its own
compaction lifecycle — the built-in precheck is redundant and causes
false-positive overflow errors for CJK-heavy sessions due to its
conservative token estimation formula.

Safety is preserved: if the model's actual context limit is exceeded,
the model API returns an error that the outer overflow-compaction retry
loop handles normally.

* fix(agents): assert non-null context engine in precheck skip log

* test(context-engine): cover owning precheck contract

* fix(agents): preserve precheck after context assembly failure

---------

Co-authored-by: Josh Lehman <josh@martian.engineering>
2026-06-30 00:55:03 -07:00
..
.generated fix(memory): record structured dreaming outcomes (#97723) 2026-06-29 11:23:38 +00:00
.i18n [codex] docs: add release notes placeholder (#97959) 2026-06-29 18:25:15 -06:00
announcements fix: add channel status filtering (#80706) 2026-05-11 18:44:54 +01:00
assets docs: refresh ClawHub showcase cards (#88734) 2026-06-01 13:08:56 -07:00
automation fix(cron): expose per-job fallbacks in CLI (#93369) 2026-06-22 19:22:20 +00:00
channels docs(telegram): correct errorPolicy values and defaults 2026-06-29 01:20:44 -07:00
clawhub fix: rebase clawhub install trust (#81364) 2026-06-26 18:33:19 +10:00
cli fix(memory): require privileged dreaming config changes (#97869) 2026-06-29 13:03:22 -07:00
concepts fix(agents): skip pre-prompt precheck when context engine owns compaction (#95342) 2026-06-30 00:55:03 -07:00
debug
diagnostics fix(codex): gate profiler timing and startup setup 2026-05-26 20:51:00 +01:00
gateway feat: improve model call telemetry 2026-06-29 15:21:53 +10:00
help [codex] Update Claude CLI billing docs (#96848) 2026-06-28 11:03:17 -07:00
images chore: remove unused tracked assets 2026-05-26 02:21:58 +01:00
install ci(docker): publish releases to Docker Hub (#97122) 2026-06-28 11:15:34 -07:00
maturity docs: clarify maturity scorecard scoring (#96594) 2026-06-24 17:32:08 -07:00
nodes fix: scanned PDF pages reach chat vision models (#97354) 2026-06-27 23:01:08 -05:00
plan Policy: add sandbox posture conformance checks (#85572) 2026-05-28 21:00:24 -07:00
platforms docs: simplify macOS app overview (#97120) 2026-06-27 16:04:30 -07:00
plugins fix(codex): require admin for native controls (#97952) 2026-06-29 20:41:28 -07:00
providers [codex] Update Claude CLI billing docs (#96848) 2026-06-28 11:03:17 -07:00
refactor fix(sqlite): migrate legacy memory and proxy state 2026-06-19 01:20:06 +08:00
reference fix(doctor): warn and document QMD session recall gates (#80947) 2026-06-28 13:55:27 -07:00
releases [codex] docs: add release notes placeholder (#97959) 2026-06-29 18:25:15 -06:00
security refactor: extract net policy package 2026-05-29 09:45:14 +01:00
snippets/plugin-publish
specs docs: fix docs metadata spellcheck (#93502) 2026-06-22 17:17:35 +00:00
start feat(onboard): show setup timeline note (#97482) 2026-06-28 10:47:11 -07:00
tools fix(acp): require owner for runtime controls (#97953) 2026-06-29 17:29:08 -07:00
web feat(messages): config-level default for the persistent /usage footer 2026-06-24 07:12:33 -07:00
agent-runtime-architecture.md refactor: internalize OpenClaw agent runtime (#85341) 2026-05-27 19:24:04 +01:00
AGENTS.md docs: add maturity docs routes (#91483) 2026-06-23 23:59:47 -07:00
auth-credential-semantics.md refactor: internalize OpenClaw agent runtime (#85341) 2026-05-27 19:24:04 +01:00
brave-search.md
ci.md docs(ci): update runner registration budget (#97943) 2026-06-29 16:27:32 -07:00
CLAUDE.md
date-time.md fix(agents): honor disabled envelope timestamps at model boundary (#93238) 2026-06-16 12:13:24 +08:00
docs.json [codex] docs: add release notes placeholder (#97959) 2026-06-29 18:25:15 -06:00
docs_map.md fix(codex): require admin for native controls (#97952) 2026-06-29 20:41:28 -07:00
index.md refactor: internalize OpenClaw agent runtime (#85341) 2026-05-27 19:24:04 +01:00
logging.md fix(agents): restore model-fetch info logs (#89648) 2026-06-22 17:02:16 +00:00
nav-tabs-underline.js docs: document repo support scripts 2026-06-04 08:01:15 -04:00
network.md
openclaw-agent-runtime.md refactor: internalize OpenClaw agent runtime (#85341) 2026-05-27 19:24:04 +01:00
perplexity.md
prose.md docs: require OpenProse remote import consent 2026-06-24 16:36:48 -05:00
style.css docs: clarify maturity scorecard scoring (#96594) 2026-06-24 17:32:08 -07:00
tts.md
vps.md fix(gateway): keep unmanaged restarts in-process (#83138) 2026-05-17 21:19:05 +00:00
whatsapp-openclaw.jpg