Skip to content

fix: hide Claude’s injected context from chat - #207234

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
openclaw/faint-shrimp-47dfe9
Nov 30, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
openclaw/faint-shrimp-47dfe9

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #130427

What Problem This Solves

When Claude Code compacts a long conversation, the Control UI shows the internal continuation summary under “System · injected context.” The summary is for Claude, not part of the conversation the user needs to read.

User Impact

The entire row is gone. Claude still receives the same continuation context, and surrounding messages, tool activity, and other system notices remain visible. There is no new setting or migration.

Why This Change Was Made

The Control UI omits the notice using the imported row’s existing provenance, not its wording. The stored transcript and Gateway history API are unchanged, and a message typed or pasted by the user is still shown even if it matches the summary text.

Evidence

  • Reproduced the expanded notice on 17e2ec956042b, then verified in Chromium that it is absent with this change, including after reload. Both captures used the real Control UI with synthetic Claude CLI history; no live provider was used.
  • 47 focused transcript and compaction tests passed. The new regression failed on the baseline. Localization verification, targeted lint, and whitespace checks passed.

Clean comparison

Before: Claude’s continuation summary appears in chat

After: the reply follows the request with no injected-context row

Annotated comparison

Before annotated: the expanded notice

After annotated: no row between the request and reply

Thanks @vyctorbrzezowski for reporting the notice and clarifying the intended behavior.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: a12bfbc3-45b2-4f99-ba14-564f7ab47db1
@clawsweeper

clawsweeper Bot commented Nov 28, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S labels Nov 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR hides provenance-marked Claude continuation context from the Control UI timeline while preserving surrounding conversation and activity grouping.

Example: A Claude conversation continues after the request “Please finish reviewing the release notes and flag anything missing.”

  • Before: An expandable “System · injected context” row separates the request from the answer.
  • After: The answer follows the request without the internal continuation row.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, worthwhile presentation change with inspectable browser evidence, distinct regression coverage, and no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Chromium screenshots exercise the real Control UI with synthetic Claude history and show the changed notice projection; the body also reports reload verification and a regression failing on the baseline.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Claude's model-facing continuation summary occupies the conversation timeline as an expandable system notice.
Reason: The prior disclosure was intentional, but this maintainer-authored PR establishes the new direction and implements it with a narrow presentation change.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR makes a focused, maintainer-authored display change absent from current main, with no actionable correctness findings.

Reviewed head: 1ea400bf50cd4e384503ac864006d2f0951892e0

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Gateway imports Claude history with structured provenance, and the Control UI projects those messages into visible conversation and activity groups.

flowchart LR
  A[Claude transcript] --> B[Gateway history importer]
  B --> C[History with provenance]
  C --> D[Control UI notice projection]
  D --> E[Invisible activity boundary]
  E --> F[Conversation grouping]
  F --> G[Visible chat timeline]
Loading

Technical review

Best possible solution:

Use the existing notice projection to hide internal context while retaining activity boundaries and leaving canonical history unchanged.

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

Current main explicitly renders this provenance as a visible disclosure, matching the supplied before screenshot; no independent product execution was performed during this read-only review.

Is this the best way to solve the issue?

The change is appropriately placed in the existing presentation owner, uses structured provenance rather than wording, and removes the superseded notice registration and English copy.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Injected-context disclosure changes intended behavior with a stated reason (88aff1f: Preserve access to harness context while avoiding false operator attribution and additional user-turn boundaries.)
  • English notice catalog keeps the original intent (fadfdcf: Move optional English copy into lazy catalogs while preserving shared namespace registration; this PR removes only the retired notice's copy and anchor.)
  • Notice promotion tests keeps the original intent (df27314: Keep pending and persisted system inputs consistently projected; obsolete visible-context expectations are replaced with the hidden-context contract.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit f464b6e adds ui/src/pages/chat/chat-system-notice.ts:48 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f464b6eda01b; files: ui/src/pages/chat/chat-system-notice.ts)
  • Ayaan Zaidi: Raw commit 703c82d adds ui/src/pages/chat/chat-system-notice.ts:127 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 703c82d20c5c; files: ui/src/pages/chat/chat-system-notice.ts)

PR surface

Source -9, Tests +21, Docs +1. Total +13 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 17 26 -9
Tests 1 39 18 +21
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 57 44 +13

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 27, 2026, 11:49 PM ET / November 28, 2026, 04:49 UTC.

@clawsweeper

clawsweeper Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: applying reviewed decision.

I am applying the reviewed decision for this pull request: fix: hide Claude’s injected context from chat This is item 1/1 in the current shard. Shard 1/1.

This transient lease prevents a newer review from overlapping label, comment, or close mutations.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 30, 2026 07:19
@vyctorbrzezowski
vyctorbrzezowski merged commit 3a4bb6a into main Nov 30, 2026
100 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/faint-shrimp-47dfe9 branch November 30, 2026 07:20
vincentkoc added a commit that referenced this pull request Nov 30, 2026
…ogic

* commit 'f7ccd914102ab408606c45c0aa3adbd8427051eb': (1290 commits)
  refactor(ios): remove unreachable settings and automation controls (#208958)
  fix: verify deferred activation in package recovery acceptance (#208901)
  improve(ci): avoid unused adaptive scoring work (#208926)
  chore(ui): refresh control ui locales (#208959)
  test(agents): verify user recall and file state across OpenAI compactions (#208909)
  fix(ui): update the sidebar on startup and recovery screens (#207967)
  fix(whatsapp): quote the first queued swipe-reply answer (#208791)
  test(memory-wiki): generate metadata replacement transitions (#208932)
  fix(ui): hide Claude injected context from chat (#207234)
  fix(ui): count people instead of emoji in reaction badges (#207235)
  fix: keep Daybreak when another provider's model list fails (#208883)
  test(telegram): check the registered preload at polling worker startup (#208936)
  fix(qa): test Slack verbosity with one direct shell call (#208023)
  fix(qa): wait for Telegram messages before checking their formatting (#208024)
  feat(ios): show build details at the bottom of Settings (#208944)
  chore(ui): refresh control ui locales (#208937)
  fix: goals stop after native child-result handoffs (#193024)
  fix(ui): show current tool actions in collapsed chat activity (#208925)
  improve(ios): put About last in Settings (#208928)
  test(memory-wiki): generate human-note preservation regressions (#208921)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants