Repository navigation
fix: hide Claude’s injected context from chat - #207234
Conversation
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: a12bfbc3-45b2-4f99-ba14-564f7ab47db1
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: passed. What this changesThis 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.”
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete 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: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -9, Tests +21, Docs +1. Total +13 across 6 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 27, 2026, 11:49 PM ET / November 28, 2026, 04:49 UTC. |
|
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. |
…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) ...
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
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.Clean comparison
Annotated comparison
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