openclaw - 💡(How to fix) Fix [Bug]: Openclaw 2026.5.19 PluginHookBeforePromptBuildResult.prependContext is write to system prompt [1 pull requests]

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…

Update from 2026.4.12 to 2026.5.19, in the result of the before_prompt_build event, the prependContext field is appended to the system prompt, whereas it is expected to be placed at the beginning of the user prompt

Root Cause

Update from 2026.4.12 to 2026.5.19, in the result of the before_prompt_build event, the prependContext field is appended to the system prompt, whereas it is expected to be placed at the beginning of the user prompt

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

Yes

Summary

Update from 2026.4.12 to 2026.5.19, in the result of the before_prompt_build event, the prependContext field is appended to the system prompt, whereas it is expected to be placed at the beginning of the user prompt

Steps to reproduce

  1. build an before_prompt_build event, with the respose 'resp.prependContext="user prompt"'
  2. build an llm_input event, to print the system prompt

Expected behavior

In 2026.4.12, the message is on the user prompt. while in 2026.5.19, its on the system prompt

Actual behavior

write to the user prompt

OpenClaw version

2026.5.19

Operating system

Debian GNU/Linux 12

Install method

docker

Model

gpt-5

Provider / routing chain

openclaw

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

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

In 2026.4.12, the message is on the user prompt. while in 2026.5.19, its on the system prompt

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]: Openclaw 2026.5.19 PluginHookBeforePromptBuildResult.prependContext is write to system prompt [1 pull requests]