diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index b2f1f8597..5c2b6acba 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "9ba97ceaed8932da1b7666cabf2f78fa1e5e4197", - "syncedAt": "2026-04-06T04:28:04.320Z" + "sha": "b2cc5ab6366cbdb03ba8f722287461ab2ba23a9e", + "syncedAt": "2026-04-06T04:30:11.398Z" } diff --git a/docs/gateway/configuration-reference.md b/docs/gateway/configuration-reference.md index 5123d0042..ad80794ea 100644 --- a/docs/gateway/configuration-reference.md +++ b/docs/gateway/configuration-reference.md @@ -901,6 +901,18 @@ Disables automatic creation of workspace bootstrap files (`AGENTS.md`, `SOUL.md` } ``` +### `agents.defaults.contextInjection` + +Controls when workspace bootstrap files are injected into the system prompt. Default: `"always"`. + +- `"continuation-skip"`: safe continuation turns (after a completed assistant response) skip workspace bootstrap re-injection, reducing prompt size. Heartbeat runs and post-compaction retries still rebuild context. + +```json5 +{ + agents: { defaults: { contextInjection: "continuation-skip" } }, +} +``` + ### `agents.defaults.bootstrapMaxChars` Max characters per workspace bootstrap file before truncation. Default: `20000`.