Repository navigation
improve(ui): refine chat widget host and image actions - #125250
vyctorbrzezowski merged 13 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 20, 2026, 3:50 AM ET / 07:50 UTC. ClawSweeper reviewWhat this changesThis PR makes chat-rendered widgets fill their transcript space, moves raw details into the actions menu, labels image operations truthfully, and hides inline scrollbar chrome without disabling scrolling. Merge readinessKeep open. Current main still lacks the PR’s widget-host, raw-details, and truthful export behavior; no actionable patch defect was found. This maintainer-owned PR needs normal exact-head UI proof and green checks before merge. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherControl UI renders Canvas and MCP widgets inside chat messages, where the host provides framing, actions, and raw-output access. Canvas documents receive restricted host bridges for theme, sizing, prompts, snapshots, and inline presentation. flowchart LR
A[Assistant chat message] --> B[Widget host]
B --> C[Canvas or MCP widget]
C --> D[Host bridges]
B --> E[Widget actions menu]
E --> F[Image export or raw details]
F --> G[Operator feedback]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +100, Tests +68, Docs +1. Total +169 across 13 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the single Canvas/Control UI action path, preserve the existing timeout-only HTML fallback, and merge after exact-head visual and CI evidence confirms the final user-visible outcomes. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a concrete UI refinement PR, not a standalone bug report with a claimed failing current-main reproduction. Is this the best way to solve the issue? Yes. The branch extends the existing Canvas host and export owners rather than duplicating export or embedding policy, while retaining the established timeout-only HTML fallback. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4d6c40ae3024. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
|
Operator-validated Control UI mock evidence on the current head. Full-width widget hostDark: Light: The host fills the transcript slot, keeps rounded superellipse clipping, and adds no outer border around the authored widget content. Image actions and raw detailsDark menu: Light menu: The compact overflow menu shows copy-image, download, and contextual raw-details actions with icons. The pre-pin control remains the existing Dark raw details expanded: Light raw details expanded: The fixture measured the widget host before and after expansion and found the same width. The menu action changes from Internal scrollingDark: Light: The long widget remains internally scrollable without visible scrollbar track or thumb chrome. Truthful snapshot failureDark: Light: A fixture without snapshot support produces the visible re-render-required message instead of reporting a successful image export. |
37263b6 to
ccfe040
Compare
ccfe040 to
6aa14de
Compare
# Conflicts: # src/canvas/wrap.ts
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Exact-head Control UI proof for Widget hostBefore ( After ( ActionsBefore ( After ( Raw detailsBefore ( After ( All six captures were opened and inspected. No credentials or operator data are present. |
|
Land-ready verification for exact head
Known proof gap: no authenticated live Gateway was used. This is a deterministic Control UI presentation change; the real browser flow used the repository mock Gateway and exercised the final rendered host, menu, and disclosure. |
|
Merged via squash.
|
* improve(ui): refine chat widget host actions * fix(ui): keep widget pin presentation unchanged * fix(ui): compact widget actions and restore rounded host * style(ui): format widget action menu * test(canvas): refresh widget host document contract * test(ui): model the widget host wrapper * fix(ui): preserve retained widget downloads * fix(ci): register Codex tool coverage * fix(protocol): keep version exports compact * fix(ui): preserve widget action outcomes --------- Co-authored-by: RoboClaw <[email protected]>
















Related: #125230
What Problem This Solves
Refines the Control UI host around chat-rendered widgets: removes redundant outer framing, keeps raw details contextual, gives image actions truthful labels/outcomes, and hides inline scrollbar chrome without changing scrolling.
Why This Change Was Made
The chat widget host now fills its transcript slot and keeps raw details at a stable width. Internal Canvas widgets expose Copy as image and Download as image. MCP Apps and external embeds that cannot use the trusted PNG snapshot bridge still receive a raw-only menu whenever raw payload exists.
PNG remains the canonical export. Retained same-origin widgets preserve the shipped HTML fallback only after snapshot timeout; the UI now explicitly reports that HTML was downloaded instead of silently presenting it as an image result. Explicit bridge failures still fail.
The wrapper adds a chat-host bridge for inline-only scrollbar presentation. Public docs now enumerate all five injected bridges. Dashboard-aware first-pin wording remains intentionally out of scope and tracked by #125230.
User Impact
Widgets use a cleaner full-width host, stable raw-detail disclosure, clearer export actions, truthful fallback feedback, and less competing scrollbar chrome. Raw details remain reachable for internal, MCP, and external preview kinds.
Production delta:
+122/-22(net +100). Tests:+69/-7. Docs:+2/-1.Evidence
aff2277533e.