Repository navigation
fix(ui): keep uploaded images aligned with their prompts - #147389
Conversation
Apply the existing image-frame width limit to uploaded as well as generated images so the clickable frame cannot reserve space beyond the visible image in WebKit. Add desktop/mobile geometry coverage for user, peer, and assistant images in Chromium and WebKit. Co-authored-by: steipete <[email protected]>
|
🦞👀 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. |
|
cc @vyctorbrzezowski — Peter asked to loop you in on the image-alignment fix. Before/after WebKit evidence and the focused regression results are in the PR body. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 4:41 PM ET / 20:41 UTC. ClawSweeper reviewWhat this changesThe PR extends the existing image-frame width cap to uploaded chat images and adds Chromium/WebKit checks for alignment, proportions, and mobile containment. Merge readiness✅ Ready for maintainer review This remains a useful, focused repair: current main retains the uploaded-image frame mismatch. No blocking correctness or security finding was identified, and the inspected screenshots demonstrate the intended visual improvement. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI renders uploaded and generated images inside shared chat frames. Shared styles size those frames, while participant layout rules align media with the accompanying text. flowchart LR
A[Uploaded or generated image] --> B[Chat image renderer]
B --> C[Shared image frame]
C --> D[Preview width cap]
E[Message participant] --> F[Left or right alignment]
D --> F
F --> G[Image aligned with prompt]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -1, Tests +85. Total +84 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep image sizing at the shared frame owner while preserving the existing gallery, aspect-ratio, and participant-alignment contracts. Do we have a high-confidence way to reproduce the issue? Yes: large uploaded images exercise the uncapped frame around an already capped preview, supported by current source and the supplied before/after WebKit captures. No current-main browser run was performed during this read-only review. Is this the best way to solve the issue? Yes: applying the existing cap at the shared frame is a narrow repair that avoids a second rendering path and preserves the smaller gallery dimensions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a441bd3b1efc. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…1-prep * commit '912ae8d96e5964dfdcdf419b79613fb941cdf0a8': (350 commits) fix: keep workspace preparation responsive during cleanup (openclaw#147358) docs: alphabetize donors and sponsors and add Red Hat logo (openclaw#147302) fix(plugins): retain update authority through doctor effects (openclaw#144316) refactor(qa): share Multipass mount retry lifecycle (openclaw#147084) fix(memory): emit one JSON result for command failures (openclaw#147366) improve(plugins): speed up cold metadata loading (openclaw#147411) fix(sessions): avoid duplicate work after waited child replies (openclaw#147394) fix(agents): retain outstanding child results in parent context (openclaw#112623) test: preserve native workflow loader selection (openclaw#147403) fix: reduce repeated work while polling session pull requests (openclaw#147373) test(qa): preserve task cancellation across process replacement (openclaw#147382) fix: prevent sidebar refresh storms during session activity (openclaw#147400) refactor: simplify skills CLI formatting (openclaw#147368) fix: prevent Git checkout certificate failures behind egress proxy (openclaw#147410) fix(qa): stop live threads after their process leader exits (openclaw#147386) refactor(release): share agent turn retry lifecycle (openclaw#147076) fix(ui): keep uploaded images aligned with their prompts (openclaw#147389) fix(fs): guard skill reads and bound worker bundle staging (openclaw#147336) fix(ci): restore Linux service ownership fixtures (openclaw#147398) fix(plugins): preserve manifest permissions when building plugins (openclaw#147393) ...
…7389) Apply the existing image-frame width limit to uploaded as well as generated images so the clickable frame cannot reserve space beyond the visible image in WebKit. Add desktop/mobile geometry coverage for user, peer, and assistant images in Chromium and WebKit. Co-authored-by: steipete <[email protected]>
Related: #131811, #142671.
What Problem This Solves
Fixes large uploaded chat images sitting left of their right-aligned prompts, especially in Safari/WebKit.
User Impact
Uploaded images and their clickable frames line up with the prompt again. Existing preview sizes, aspect ratios, mobile containment, and multi-image galleries stay unchanged.
Why This Change Was Made
The frame's existing width limit applied only to generated images. Applying it at the shared image-frame owner prevents uploaded images from reserving invisible space beside their capped preview. This removes one production line overall.
Evidence
Desktop
Mobile