Repository navigation
fix(ui): hide trust wrappers in imported chat history - #140338
Conversation
|
🦞👀 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: blocked before merge. Reviewed September 6, 2026, 2:16 PM ET / 18:16 UTC. ClawSweeper reviewWhat this changesHide generated trust wrappers in imported chat display, search, reply previews, and copied text while preserving stored messages. Merge readiness⛔ Blocked before merge - 1 item remains This remains a useful, focused fix absent from inspected main. No actionable patch defect was found, and the updated body addresses the previous request for visual evidence; independent attachment inspection was blocked by this review environment. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway wraps imported catalog history before storing it. The Control UI reads those messages and prepares their text for chat bubbles, search, replies, and copying. flowchart TD
A[Catalog history] --> B[Gateway trust wrapping]
B --> C[Stored transcript]
C --> D[UI checks import metadata and complete frame]
D --> E[Display copy without wrapper]
D --> F[Preserve unmatched text]
E --> G[Chat, search, reply and copy]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceSource +56, Tests +187. Total +243 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one shared presentation projection for imported history while retaining the original trust framing in stored and model-facing messages. Do we have a high-confidence way to reproduce the issue? Yes, from source: Gateway catalog copies persist the generated frame, and inspected main passes it into chat presentation without removing it. No runtime reproduction was executed in this review. Is this the best way to solve the issue? Yes. A shared, non-mutating UI projection matches the importer contract and keeps display and text actions consistent without rewriting history or weakening model-facing framing. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3d602cd4172f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Keep catalog-import framing in stored and model-facing history while projecting only the message body into chat display, search, reply, and copy surfaces. Require import provenance and a complete matching wrapper; retain literal examples and malformed text. Worked on by: - @fuller-stack-dev Co-authored-by: fuller-stack-dev <[email protected]>
20d0ea2 to
25b90df
Compare
|
Merged via rebase.
|
What Problem This Solves
Fixes an issue where users importing chat history through Beam would see EXTERNAL_UNTRUSTED_CONTENT markers and a Source: External header in user and assistant bubbles. Markdown also interpreted the header separator as a heading.
Why This Change Was Made
Project imported messages for presentation only, requiring catalog-import provenance and a complete matching-ID, no-warning wrapper. Both text extraction and message normalization use the projection, keeping display, search, reply context, full-message recovery, and assistant clipboard copy consistent. The importer, persisted history, and model-facing untrusted-content protections are unchanged.
User Impact
Imported history reads as ordinary chat again. Message bodies and code examples remain intact; literal quoted wrappers, warning-bearing content, tool output, and malformed/truncated wrappers are not silently discarded.
Evidence
Before
After
Local full changed-check execution and the standalone declaration typecheck remain unavailable under the existing host package-age and shared-dependency guards; neither guard was bypassed. The initial full CI run failed only on the inherited docs-navigation assertion. That baseline issue was repaired on main by #140337 (
96bf3652adabc25d86af15a950a72be63575acc5). This branch was rebased onto the fixed main with an unchanged stable patch ID and intact co-author credit; 430 UI tests and all 10 docs-publisher tests pass on rebased head25b90df636458be30e75b30b61f6e202bc4db0df. Fresh exact-head CI passed, including the aggregate gate; the native watcher reports GREEN. The prior run’s three UI check lanes, seven UI E2E shards, and real-Gateway UI tests all passed.The current-head ClawSweeper review reports no patch defect and rates the visual proof sufficient. Its remaining note concerns its own environment being unable to retrieve attachments, not missing inspection: both full-resolution images were independently inspected in the parent session, with the results and captures recorded above. No additional product or safety change is needed for that environment-only limitation.
Worked on by