Repository navigation
improve: keep image actions inside chat previews - #179699
Merged
Merged
Conversation
vyctorbrzezowski
marked this pull request as ready for review
October 21, 2026 16:28
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
vyctorbrzezowski
enabled auto-merge (squash)
October 21, 2026 16:36
vyctorbrzezowski
disabled auto-merge
October 21, 2026 17:06
Member
Author
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
This was referenced Oct 21, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 22, 2026
* improve: keep image actions inside chat previews * fix: preserve image approval action target
This was referenced Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Chat image actions occupy space beside the preview, and unavailable cards can offer copy/download even after the Gateway confirms that the source cannot be read.
User Impact
Copy and Download sit inside the image's lower-right corner, appearing on hover or keyboard focus and remaining visible on devices without hover. Clicking the image still opens its existing viewer. Unavailable cards have a compact, readable filename/status/cause layout and a pill-shaped Retry control; confirmed unavailable sources have no unusable file menu.
Why This Change Was Made
The existing image-action owner renders the two controls with the same copy/download handlers. The presentation carries the availability result it already knows: a failed thumbnail or an unconfirmed read keeps the existing original-file menu, while a confirmed denial hides it. No new request, backend behavior, clipboard implementation, or viewer owner is introduced.
Removed the external image gutter and obsolete unavailable-title decoration. Production delta: +27 lines; tests: -10; docs: +5. Transcript action underlines are handled separately in #179641.
Evidence
6a6fa4d: one horizontally clipped-image keyboard-focus assertion and eight corner hit-testing cases, with identical failure names and assertion messages. Their cause remains outside this change's proof; no assertions or baselines were relaxed to hide them. No physical-device or real-Gateway claim.Measured focused test cost (one worker)
chat-message.test.tsxchat-image-loading.browser.test.tsxmarkdown-clipboard.browser.test.tsxmanaged-image-actions.e2e.test.tsattachment-file-styles.e2e.test.tsMeasured with the repository test runner and
--maxWorkers=1. CI timings pending the first PR run.Desktop at rest:
Full transcript context, before and after
CI repair: preserve the image approval control
CI run 39635135313 exposed an unintended side effect: the compact styling reduced Allow image from its existing 44px minimum height to 30px. The correction gives Allow its own class and restores 44px without changing the approved Retry or Copy/Download layout. The original assertions remain unchanged. Both desktop and mobile cases reproduced the failure before the fix and pass afterward, including the actual approval request and recovered image (6.09s focused suite; failing CI shard: 394.30s). Fresh Codex review found no actionable P0–P2 issues; UI types, formatting and Stylelint passed.
Final CI qualification
Run 39641265053, attempt 1, tested head
a166134cb99daeae71cf066cbc5e0f007d016bb2. All selected E2E, lint, type, security, docs, performance and other jobs passed except UI shard 3 and its aggregate gate. The sole failed case ischat-page-pending-retention.test.ts: “keeps the previous chat mounted without redundant startup through creation and admission.” Before creation begins, it expects “Previous transcript” but sees the provider/model empty state.This failure is unrelated to the attachment change: the tested merge
2e6219f36adcc64b6b9a87f2923a94faf45fe197and its main parent4f1d233068b74e18eeb571496c368af7cde762adhave identical test, page, pane and context fixture blobs. Its history is text-only; it instantiates no changed attachment action. No test modified by this PR runs in the failed shard. The same test blob and failure signature occurred in #179642. The underlying Linux/order cause remains unresolved; the bounded replays documented there did not reproduce or fix it. CI remains failed, and the native attributed-failure landing route retains this limitation.