mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:50:45 +00:00
fix: keep bootstrap context in system prompt
Keep pending BOOTSTRAP.md and bootstrap truncation notices in system-prompt Project Context instead of WebChat/runtime user context. Preserve bootstrap instructions when systemPromptOverride is configured.
This commit is contained in:
committed by
GitHub
parent
57b2d29761
commit
0fa70f5a47
@@ -116,12 +116,16 @@ Max total characters injected across all workspace bootstrap files. Default: `60
|
||||
|
||||
### `agents.defaults.bootstrapPromptTruncationWarning`
|
||||
|
||||
Controls agent-visible warning text when bootstrap context is truncated.
|
||||
Controls the agent-visible system-prompt notice when bootstrap context is truncated.
|
||||
Default: `"once"`.
|
||||
|
||||
- `"off"`: never inject warning text into the system prompt.
|
||||
- `"once"`: inject warning once per unique truncation signature (recommended).
|
||||
- `"always"`: inject warning on every run when truncation exists.
|
||||
- `"off"`: never inject truncation notice text into the system prompt.
|
||||
- `"once"`: inject a concise notice once per unique truncation signature (recommended).
|
||||
- `"always"`: inject a concise notice on every run when truncation exists.
|
||||
|
||||
Detailed raw/injected counts and config tuning fields stay in diagnostics such
|
||||
as context/status reports and logs; routine WebChat user/runtime context only
|
||||
gets the concise recovery notice.
|
||||
|
||||
```json5
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user