Repository navigation
Conversation
|
Thanks for the contribution. This PR still needs the requested real-behavior proof, and the branch has been idle since that ask. The patch is a plausible, narrowly scoped wording repair and current source confirms that the hidden context message precedes the current user prompt. However, this external PR has been idle for more than 14 days after a dated real-proof request, and neither the PR body nor comments provide an after-fix runtime/model transcript for the claimed model-behavior improvement. So I’m closing this for now to keep the review queue honest. Please reopen or open a fresh PR with real-behavior proof (a live run, logs, or a reproducible validation transcript) and it will be reviewed again. Review detailsBest possible solution: Keep the focused wording change only if a contributor supplies a redacted after-fix agent/runtime transcript demonstrating that the reported false “message not injected” response no longer occurs; otherwise close the stale unproven branch and retain the canonical issue as the report record. Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction is available: source proves the hidden custom message is placed before the current user prompt, but the reported model-specific misinterpretation needs a real provider/runtime transcript to establish frequency and after-fix improvement. Is this the best way to solve the issue? Yes, conditionally: clarifying the header matches the established message ordering and is narrower than altering prompt assembly, but the claim that it changes model behavior remains unproven without an after-fix transcript. Security review: Security review cleared: The two-file text-and-test change introduces no concrete security or supply-chain concern. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against b695c6589a2d. |
57ee309 to
dbb2606
Compare
|
Re: clawsweeper "needs real behavior proof" — the fix is covered by real regression tests run against the actual modules (not the markdown string):
Verification command output and |
…he user message IS included (openclaw#110672) The next-turn runtime-context header read 'OpenClaw runtime context for the immediately preceding user message.' Smaller reasoning models inferred the current message body 'was not injected', even though it is delivered in the same turn (their own reasoning trace quotes it verbatim). Reword the header to state the user message text is delivered separately and IS included, and that this block only supplements it. Closes openclaw#110672
dbb2606 to
d7ed258
Compare
|
ClawSweeper applied the proposed close for this PR.
|
Summary
Fixes #110672 — the next-turn runtime-context header (
OPENCLAW_NEXT_TURN_RUNTIME_CONTEXT_HEADER) readOpenClaw runtime context for the immediately preceding user message.Smaller reasoning-capable models infer the current message bodywas not injected, even though it is delivered in the same turn (their own reasoning trace quotes it verbatim).Reword the header to state the user message text is delivered separately and IS included in this turn, and that this block only supplements it.
Changes
src/agents/internal-runtime-context.ts: rewordedOPENCLAW_NEXT_TURN_RUNTIME_CONTEXT_HEADER.src/agents/embedded-agent-runner/run/runtime-context-prompt.test.ts: updated assertion + added regression test.Validation
node scripts/run-vitest.mjs run src/agents/embedded-agent-runner/run/runtime-context-prompt.test.ts→ 29 passed.Closes #110672.