Repository navigation
fix(ui): preserve transparent chat widget backgrounds - #151972
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: needs maintainer review before merge. Reviewed September 18, 2026, 3:13 PM ET / 19:13 UTC (Revision 6). ClawSweeper reviewWhat this changesMakes chat widget preview frames transparent so unpainted areas blend into the conversation while explicitly painted widget surfaces retain their backgrounds. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main still paints the unwanted backdrop. The inspected screenshots support the visual result, and no actionable correctness or security findings remain. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI displays generated widget documents inside sandboxed preview frames. The frame’s CSS determines what appears behind transparent portions of those documents. flowchart LR
A[Widget document] --> B[Sandboxed preview frame]
C[Conversation background] --> B
B --> D{Widget paints a background?}
D -->|Yes| E[Widget color remains visible]
D -->|No| F[Conversation surface shows through]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -4. Total -4 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Let the existing conversation surface show through transparent widget frames while preserving widget-owned colors and the current theme bridge. Do we have a high-confidence way to reproduce the issue? Yes: a transparent widget on a tinted conversation surface exposes main’s opaque iframe backdrop, matching the supplied before screenshot. This review verified the source path and images without running the application. Is this the best way to solve the issue? Yes: changing the shared frame background directly restores the documented transparency contract without adding a second rendering path or changing widget content. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 861f60e0bc5c. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
6a454b9 to
5ce326e
Compare
5f2666a to
6580202
Compare
|
Merged via squash.
|
…pr-149282-proof-20260919 * commit '534100dfb1eda19b0793c14fd0fba67eaf729ee0': (1800 commits) perf(gateway): avoid roster scans in catalog delivery (#151938) fix(telegram): preserve dispatcher composition under Bun (#152055) test(gateway): seed fixture auth without native plugin imports (#152058) test: restore document focus after shared cleanup (#152065) fix(ui): preserve attachment reader focus during link refresh (#151858) perf(tests): isolate metadata heap checks (#152063) fix(ui): make RTL side panel resizing follow input direction (#151989) fix(doctor): move Workshop diagnostic reads off the caller thread (#149905) fix(google): prevent Gemini errors from optional schema metadata (#151327) test: retain safe quota recovery failure evidence (#152003) test(qa-lab): stabilize self-yield follow-up release proof (#152048) perf(codex): reduce residual app-server framing overhead (#152035) improve(cron): batch automation names in chat history (#152054) fix(ui): preserve transparent chat widget backgrounds (#151972) fix(ui): HTML attachment previews leave most of the side panel unused (#152031) perf(gateway): coalesce person presence activity broadcasts (#152042) fix(ui): keep session Actions clickable beside attachments (#151975) refactor(qa): reuse Matrix CLI JSON parser (#152087) feat(ui): navigate message images in the lightbox (#152027) fix(codex): avoid fallback replies after intentional silence (#151951) ...
What Problem This Solves
Inline visualizations with transparent backgrounds show a white rectangle against the chat's tinted background.
User Impact
Transparent areas of chat widgets now blend into the conversation surface. Surfaces explicitly painted by a widget retain their own backgrounds.
Why This Change Was Made
The shared preview iframe painted
var(--card)behind otherwise transparent widget documents. Make that iframe transparent so the existing chat surface shows through.Evidence
Verified the reported visualization in Chrome using the equivalent stylesheet override. Its surrounding white rectangle disappears while the mock search panel remains white. The screenshots below are inspected crops of a synthetic design concept.
Stylelint, formatting, and
git diff --checkpass. No production JavaScript or widget sandbox behavior changes.CI recovery and retained diagnostic
Earlier CI exposed inconsistent quota-test fixes, now reconciled on main by #151947 and #152010. This PR contains only the CSS change. The complete hosted suite passed again on the final CSS-only head: CI run 35382388693, commit
65802023cc75341ef41ddd7fae7984fb4c85b943.One focused local automatic-recovery run failed earlier in unchanged quota-probe behavior, before the status assertion. Saved-block clearing and catalog recovery passed. That diagnostic is retained; the later full hosted suite passed without weakening assertions or retrying that local failure away.