Skip to content

fix: prevent internal runtime context from appearing in replies - #163471

Merged
RomneyDa merged 23 commits into
mainfrom
fix/runtime-context-carrier-ownership
Oct 3, 2026
Merged

RomneyDa merged 23 commits into
mainfrom
fix/runtime-context-carrier-ownership

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

OpenClaw runtime context had no single model-facing owner. Producers stored hidden custom messages, the agent harness flattened them into ordinary user messages, provider adapters inferred semantics from placement or delimiter text, and output cleanup depended on those same delimiters. Models could therefore treat host context as a new user request, describe it as a prompt injection, or echo internal runtime context into channel replies. The failure spans embedded runs, CLI backends, workers, BOOT, subagent wakes, provider replay, generated-media retry, compaction, and streaming output.

Closes #110190.
Closes #162001.

Related reports include #104602, #108409, #115978, #123265, #129314, #136360, #137493, #139022, #141213, #142754, #144944, #151807, and #161697. Related narrower cleanup: #160174. This includes the empty-snapshot direction originally contributed by @Bartok9 there.

User Impact

  • Runtime facts are represented by typed metadata rather than inferred from magic delimiter text.
  • OpenAI Chat/Responses receive runtime context at developer/system authority.
  • Providers requiring user-role compatibility receive one bounded, explicitly labeled runtime-context message.
  • Legacy stored envelopes normalize on read without transcript rewrites; v2026.9.7 carrier bytes and cache opt-out remain exact, including mixed-media replay.
  • Compaction never summarizes trusted runtime context, and workers fail closed when their current protocol cannot preserve a mixed-media carrier.
  • Literal carrier echoes are stripped from streaming and final output, including split prefixes, while divergent ordinary text is released intact.
  • CLI, worker, BOOT, subagent, media-retry, cache-replay, provider-review, decision-context, and session-cleanup paths share the same carrier contract.
  • No config, migration, or operator action is required.

Why This Change Was Made

The architectural owner is now RuntimeContextMessage: a compatibility-safe user message with nested runtime-context metadata. A separate marker predicate identifies trusted runtime context independently of whether its content is already in a provider-compatible text-only shape. Producers create semantic carriers; the agent harness preserves the discriminant; each provider adapter performs the required role projection; cache retention travels with metadata instead of text markers.

The shipped runtimeContextCarrier fields remain read/write projections during their compatibility window. Marker-only persisted v2026.9.7 records are recognized by one shared classifier across conversion, history cleanup, compaction, cache ownership, request attribution, and decision context. Mixed-media shipped carriers preserve their exact block array locally; worker inference rejects unsupported media context with an actionable local-retry error rather than silently relabeling it as user input.

Provider behavior is explicit:

  • OpenAI Chat/Responses: developer/system projection.
  • Anthropic: typed in-history system projection on eligible direct Claude routes; labeled user compatibility projection elsewhere.
  • Google, Mistral, Bedrock, and Ollama: bounded labeled-user projection required by their message/replay contracts.
  • Bedrock and Anthropic/OpenAI cache selection: canonical and shipped carrier facts both preserve cache policy.
  • Worker inference: current typed wire shape only; stale/unsupported carrier dialects fail closed.

Direct Codex contract inspection supports this ownership model: ../codex/codex-rs/protocol/src/models.rs:797, ../codex/codex-rs/core/src/session/inject.rs:70, ../codex/codex-rs/core/src/context_manager/history.rs:320, and ../codex/codex-rs/core/src/client.rs:850 show client-authored developer input retained and forwarded separately from user messages.

Judged LOC delta against the merge base:

  • Production: +890 / -367 (net +523).
  • Tests and QA support: +1827 / -406 (net +1421).
  • Docs: +10 / -7 (net +3).
  • Tooling/guard inventory: +14 / -5 (net +9).

The production growth is the cross-package discriminant, provider/CLI/worker projections, bounded output defense, and shipped-compatibility handling replacing implicit string/placement policy across 30+ production modules. Current delimiter construction and duplicate carrier classifiers are removed; legacy handling is bounded to shipped transcript shapes.

Evidence

Exact candidate head: 031b446d6d95ec9c70e487a0bb3e71c1631d3e36.

  • Pre-fix carrier proof produced the historical delimiter envelope as a user message and failed the canonical-carrier expectation.
  • Pre-fix streaming proof returned the partial prefix OpenClaw runtime cont through the production projector and subscription path. After repair, the 126-test sanitizer/codec/subscription acceptance set passed.
  • Post-rebase failures were captured before each repair: mixed-media legacy cache opt-out, provider media materialization, decision-context privacy, compaction summary leakage, worker user-role downgrade, mixed-media conversion loss, marker-only persisted cleanup, Bedrock cache checkpoint leakage, and Copilot initiator misattribution.
  • Complete affected owner suites passed after each repair, including provider cache parity (55 tests), replay/decision boundaries (42), compaction/worker privacy (51), marker/conversion/worker ownership (63), conversion/session cleanup (41), and the final Bedrock/Copilot boundaries (91).
  • pnpm test:changed — all 16 selected shards passed on the rebased branch (including 1128 tooling tests, 355 infra tests, 231 agents-core tests, 141 provider-extension tests, and every remaining project shard).
  • pnpm check:changed — the full changed gate passed after rebase. Every post-review repair also passed its path-scoped formatting, type graphs, deprecated-API, dead-export, lint, database ownership, SDK surface, and import-cycle checks.
  • pnpm openclaw qa suite --provider-mode mock-openai --scenario heartbeat-inbound-metadata --output-dir .artifacts/qa-e2e/runtime-context-carrier — 1/1 passed; runtime context arrived as developer input, no legacy delimiter reached the request, and the channel-visible reply remained clean.
  • pnpm build — passed, including declarations, external plugins, SDK surface, runtime postbuild, and Control UI.
  • PR-wrapper extraction closure assertions passed after adding the exact eight runtime files named by CI; the representative failed UI suite passed 33/33.
  • The clean UI test graph resolves the root @openclaw/llm-core source alias; the previously failing Custodian suite passed 29/29.
  • Mixed-media shipped carriers now retain their owning user position during per-request prepending and async Responses replay. Both regressions failed before the repair and the focused suites pass 28/28 after it.
  • Mixed-media canonical carriers now remain behind provider-review continuations and outside Anthropic prompt-cache breakpoints. The focused regressions failed before the owner fixes; the combined carrier suites pass 51/51 after them.
  • The latest-main rebase retained the complete PR-wrapper inventory, refreshed the shrink-only environment-variable ratchet to 474/474, and passed the latest conflict-path suites 45/45 plus their scoped type/lint gates.
  • The prior durable ClawSweeper P1 was reproduced through a version-3 session and real Anthropic request: text-block legacy envelopes gained new framing ahead of retained thinking signatures. The converter now preserves the original block bytes; the regression and 35 focused conversion/replay tests pass, along with the complete owner gate.
  • Exact-head CI exposed stale subagent boundary assertions that still searched ordinary prompt text for typed completion data. The corrected production-projector suite passes 84/84, and the packaged QA self-yield scenario passes 1/1 with its completion turn observed in full provider input.
  • Fresh branch AutoReview at 6f8ddc75565 completed at P0–P2. Its sole P2 was rejected after direct source verification: every active-steering carrier is created through buildRuntimeContextCustomMessage, which sets timestamp: Date.now() before materialization, satisfying the worker schema.
  • Final review found a real OpenAI Completions cache gap for canonical mixed-media carriers. Its regression failed pre-fix (Set{} vs Set{1}); the provider now uses the shared marker predicate, and OpenAI/Anthropic cache suites pass 58/58.
  • ClawSweeper Revision 21’s all-mode regression failed pre-fix because only the final steering carrier survived a batched drain. The AgentSession boundary now keeps every carrier/user pair in the admitted batch; persistence/reopen and v3/v4 media variants pass 11/11.
  • Revision 21’s signed-replay regression also failed pre-fix after reopen because the retained steering carrier was never persisted before its owning user. Append-only session policy now persists that exact prefix, and the reopened Anthropic request contains both the carrier and retained signature in canonical order.
  • Fresh AutoReview then found and drove one retry-lifecycle P2: error/aborted assistant rows retired batched carriers before retry. The two-context regression failed pre-fix, the owner now retires only after successful stop/length, the focused lifecycle set passes 21/21, and the full six-suite acceptance set passes 91/91.
  • Exact-head CI exposed a stale compaction fixture that reused the immutable durable snapshot as a mutable live message. The original case failed deterministically with Cannot add property providerReplay; cloning the snapshot at the fixture boundary passes 12/12, its complete scoped gate, and fresh P0–P2 AutoReview.
  • The exact-head ClawSweeper P1 reproduced against the independent v2026.9.7 request oracle: candidate version-4 replay sent the raw stored body instead of the shipped fragment-rendered envelope before a retained Claude signature. The boundary now reconstructs the historical provider bytes; the original regression fails pre-fix and the version-3/4 replay, harness, and Anthropic cache set passes 35/35 with the complete two-file gate and fresh P0–P2 AutoReview.
  • ClawSweeper Revision 23 found that relocation coalesced a later steering carrier ahead of its owning user. The production-boundary Responses regression failed pre-fix with the second carrier at index 834 before its owner at 994. A projection-stable ownership token now keeps every [user, carrier] pair associated through normalization and provider conversion; the seven-suite acceptance set passes 102/102.
  • The final rebase onto main 02acc1b9710 merged current-main's centralized CLI prompt-context flow with typed runtime fragments and preserved delivery guidance outside the protected carrier. The failed conflict assertion was corrected to require guidance retention plus labeled-carrier placement; the focused CLI cases pass 3/3, the complete conflict-path gate is green, and final committed-head P0–P2 AutoReview is scoped clean.
  • git diff --check — passed.

Channel-visible proof uses the mock-gateway harness verdict permitted by the repository policy for this transport-generic provider/sanitizer change.

ClawSweeper Revision 25 rank-up move (config compatibility): skipped as inapplicable. This PR changes no config key, default, schema, validation, setup/startup behavior, fallback, or operator action; shipped transcript/provider compatibility is covered by the version-3/version-4 replay and reopen proofs above.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@RomneyDa
RomneyDa marked this pull request as ready for review October 2, 2026 11:15
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling extensions: qa-lab extensions: amazon-bedrock extensions: ollama labels Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 031b446d6d95ec9c70e487a0bb3e71c1631d3e36
  • Maintainer: @RomneyDa
  • Repository role: maintain

These security sensitive changes were made:

  • src/agents/exec-auto-review-transcript.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.

Carefully review these changes before merging.

@RomneyDa
RomneyDa force-pushed the fix/runtime-context-carrier-ownership branch from 0a5c00e to dc443c5 Compare October 2, 2026 11:22
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 3, 2026, 3:57 PM ET / 19:57 UTC (Revision 26).

ClawSweeper review

What this changes

The PR separates internal runtime context from user text across model requests, session replay, CLI backends, and workers, and filters context echoes from replies.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains useful, maintainer-authored work. No blocking introduced defect was identified, and the previous generic config/default compatibility blocker is unsupported by the pinned diff.

Priority: P1
Reviewed head: 031b446d6d95ec9c70e487a0bb3e71c1631d3e36

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has coherent owner-level repairs and focused compatibility coverage, with no supported blocking finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its body reports provider-boundary and mock-Gateway after-fix checks; inspected v3/v4 replay and persistence/reopen coverage supports existing-state compatibility. No unresolved authority-chain violation was identified, and this review ran no target code.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its body reports provider-boundary and mock-Gateway after-fix checks; inspected v3/v4 replay and persistence/reopen coverage supports existing-state compatibility. No unresolved authority-chain violation was identified, and this review ran no target code.
Evidence reviewed 10 items Pinned ownership and clean checkout: The introduced delta was inspected from the pinned merge base to the original PR head. Raw test-merge parents match the supplied base followed by that head; targeted merge-result inspection preserves the CLI context changes. The checkout remained clean.
Current main still lacks the complete repair: Current main retains the older carrier fields and delimiter-based output activation. Its direct-Claude system-update work overlaps this PR, but does not supply the cross-provider typed carrier and new streaming-label protection. The latest published release is v2026.9.8; no merged replacement fixing the complete request was established.
Compatibility contract is transcript metadata, not config: The new metadata is optional, and the shipped carrier fields remain supported with an explicit removal condition. The introduced production changes add no user config key or default. Revision 25's generic config/default next step therefore does not establish a current blocker.
Findings None None.
Security None None.

How this fits together

OpenClaw's agent runtime combines user requests with internal facts before sending them to model providers. Provider adapters project that context, while transcript and output owners preserve replay compatibility and control what users see.

flowchart TD
  A[User requests] --> C[Agent context assembly]
  B[Internal runtime facts] --> C
  C --> D[Typed context carrier]
  D --> E[Provider role projection]
  D --> F[Session replay and worker validation]
  E --> G[Model response]
  G --> H[Filtered user reply]
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production growth justification PR-body accounting: production net +523; tests and QA support net +1421 The stated growth funds a shared discriminant, provider projections, output defense, and shipped-transcript compatibility across existing owners.

Stored data model

Persistent data-model change detected: unknown-truncated-pull-files. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Technical review

Best possible solution:

Use one typed runtime-context contract with provider-specific projection, byte-compatible stored replay, and bounded streaming and final-output filtering.

Do we have a high-confidence way to reproduce the issue?

Yes, source inspection identifies the existing carrier-to-user conversion and delimiter-based streaming boundary; linked reports provide concrete request captures. This read-only review did not execute a current-main reproduction.

Is this the best way to solve the issue?

Yes, the shared semantic marker and provider-owned projections address the existing ownership gap while preserving shipped replay contracts; no new configuration knob is needed.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e7090f6d88be.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: The linked reports describe runtime context disrupting ordinary agent replies and tool workflows across channels and local models.
  • merge-risk: 🚨 compatibility: Provider and transcript contracts change; shipped fields remain supported, replay regressions cover legacy bytes, and the maintainer explicitly accepts rejecting unsupported worker media carriers.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its body reports provider-boundary and mock-Gateway after-fix checks; inspected v3/v4 replay and persistence/reopen coverage supports existing-state compatibility. No unresolved authority-chain violation was identified, and this review ran no target code.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. The output filter changes context text visible in Telegram replies, so the existing Telegram-visible proof classification applies.

Evidence

What I checked:

  • Pinned ownership and clean checkout: The introduced delta was inspected from the pinned merge base to the original PR head. Raw test-merge parents match the supplied base followed by that head; targeted merge-result inspection preserves the CLI context changes. The checkout remained clean. (031b446d6d95)
  • Current main still lacks the complete repair: Current main retains the older carrier fields and delimiter-based output activation. Its direct-Claude system-update work overlaps this PR, but does not supply the cross-provider typed carrier and new streaming-label protection. The latest published release is v2026.9.8; no merged replacement fixing the complete request was established. (src/agents/embedded-agent-helpers/sanitize-user-facing-text.ts:253, e7090f6d88be)
  • Compatibility contract is transcript metadata, not config: The new metadata is optional, and the shipped carrier fields remain supported with an explicit removal condition. The introduced production changes add no user config key or default. Revision 25's generic config/default next step therefore does not establish a current blocker. (packages/llm-core/src/types.ts:373, 031b446d6d95)
  • Prior replay and steering findings addressed: The inspected version-3/version-4 session-boundary tests independently specify historical Anthropic request bytes ahead of retained signatures. Steering coverage exercises persistence/reopen and every admitted batch pair; the Responses boundary regression asserts each carrier follows its own user. The body records failing-before and passing-after results for these repairs; this review did not execute tests. (src/agents/embedded-agent-runner/run/attempt-session-runtime-context.test.ts:43, 031b446d6d95)
  • Explicit worker compatibility tradeoff: The maintainer-authored body explicitly chooses rejection of unsupported mixed-media runtime carriers rather than silently converting them into ordinary user input. The worker throws an actionable local-retry error, and focused cases cover both canonical and shipped markers. Applicable Gateway policy requires the exact prepared worker dialect; this accepted limitation does not require another acceptance request. (src/worker/embedded-agent-transcript.runtime.ts:29, 031b446d6d95)
  • Security and SDK boundary: Carrier recognition checks structured provenance instead of delimiter text; extension-owned near matches remain ordinary input, conversation fragments remain quoted data, and footer text is escaped. The SDK additions expose the shared classifier to bundled providers while retaining existing fields. The security-flagged transcript change is a text-block iteration rewrite and introduces no execution grant, dependency, secret access, or sandbox change. (packages/agent-core/src/harness/messages.ts:125, 031b446d6d95)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • jjjhenriksen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (25 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-03T11:33:22.183Z sha 3d1dfcbb6a297c45708dd25ca4af6cafb0468707 :: blocked before merge. :: [P1] [P1] Preserve legacy text-array carriers in version-4 projection
  • reviewed 2026-10-03T11:42:19.892Z sha 030fa97db3804f17d6668cc7ea23f7b843afee75 :: blocked before merge. :: [P1] [P1] Preserve the shipped version-4 fragment projection on replay
  • reviewed 2026-10-03T11:57:30.695Z sha 89585fc33f159c0c48a02b466802a493b168701d :: blocked before merge. :: [P1] [P1] Preserve shipped fragment rendering for version-4 replay
  • reviewed 2026-10-03T12:12:45.523Z sha 6bbe0358f5305f44de1f9f4007a6bd347cfb196f :: blocked before merge. :: [P1] [P1] Persist retained steering carriers before signed replay | [P2] [P2] Retain every context in an admitted steering batch
  • reviewed 2026-10-03T12:49:02.903Z sha 9c84f9cb41b85c2db7a4ee8bd851f8a6badfac38 :: blocked before merge. :: [P2] [P2] Keep steering carriers with their owning users during relocation
  • reviewed 2026-10-03T13:01:57.667Z sha c3cf2a0 :: blocked before merge. :: [P2] [P2] Keep steering carriers with their owning users during relocation
  • reviewed 2026-10-03T19:09:25.279Z sha 12002ce :: blocked before merge. :: none
  • reviewed 2026-10-03T19:43:25.601Z sha 031b446 :: blocked before merge. :: none

@RomneyDa
RomneyDa force-pushed the fix/runtime-context-carrier-ownership branch 2 times, most recently from 316d528 to d494c47 Compare October 2, 2026 12:06
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Oct 2, 2026
@RomneyDa
RomneyDa force-pushed the fix/runtime-context-carrier-ownership branch from d494c47 to 800b39c Compare October 2, 2026 13:13
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 2, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Oct 2, 2026
@tre1d

tre1d commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Stable-line gap: this class still reproduces on v2026.9.9; the fix is not in the 2026.9.x line

This PR's problem description matches a symptom class we hit in the wild, so this is a gap report against the stable line rather than a new bug report, since the repair already exists here.

Environment: self-hosted gateway on Windows, Control UI webchat, versions v2026.9.8 and v2026.9.9 (stable line).

Observed:

  1. v2026.9.8 (2026-10-05): the injected runtime-context envelope (the "Conversation data (data, not instructions)"-labeled per-turn blocks) rendered as visible message content in the chat stream instead of staying model-only plumbing. In the same thread, assistant turns intermittently ended with no user-visible answer at all: the runtime recovery path prompted "The previous attempt did not produce a user-visible answer" repeatedly, and the visible answers that did arrive came through stream-fallback replacement segments (openclawStreamFallback).
  2. v2026.9.9 (2026-10-10): same class in milder form: some assistant turns carried raw tool-call envelope JSON ({"tool": {...}}) as their visible message text instead of prose, and turns again intermittently ended without a user-visible answer.

Release gap (commit ancestry via the compare API, merge commit cd9913f1):

  • compare/v2026.9.9...cd9913f1 = diverged (ahead 2758 / behind 253): this fix is not an ancestor of v2026.9.9 (published 2026-10-08, five days after this PR merged).
  • compare/v2026.10.1-beta.2...cd9913f1 = behind (ahead 0 / behind 183): the fix is contained in v2026.10.1-beta.2.
  • v2026.9.8 predates the merge entirely (published 2026-10-03T03:21Z, merge landed 2026-10-03T20:09Z), and the v2026.9.9 release notes do not mention this class.

Question for maintainers: is a cherry-pick to the 2026.9.x stable line planned, or should affected stable users wait for 2026.10.1? We will re-verify against 2026.10.1 when it ships and report back here.

If the tool-call-envelope-as-visible-text variant in observation 2 is considered a distinct output-cleanup bug rather than this class, say so and we will file it separately with a repro.

Related (closed via this PR): #110190, #162001.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation extensions: amazon-bedrock extensions: ollama extensions: qa-lab gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts security-sensitive-changed size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

3 participants