Repository navigation
Hide generated paste filenames on bot comment images - #51105
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
* fix(bots): hide generated paste filenames on comment images * fix(mobile): hide generated paste filenames on bot comments * Use the existing phone chat image label * Preserve labels for older clipboard images
ELI5
When you paste an image into a bot item comment, the image shows without a long generated filename underneath on desktop and phone. A filename supplied with the image still appears when the comment shows captions.
What Changed
The desktop and phone comment renderers use the shared native chat paste-name detector for captions and preview labels. It recognizes generated timestamp-and-UUID names and older timestamp-only PNGs. Other names that share the prefix retain their labels.
Why
A clipboard image gets an internal name when saved. The comment card was showing that name as a caption and using it in the image viewer.
Linked Issue
Maintainer-reported bot item.
Visual Proof
Before and after
Before
After
Testing
On Linux, pasted, sent, reopened, and previewed seeded images in Codex and Claude bot items. Both bots received the images. A named image kept its caption after reopening. The phone UI was not exercised.
Performance
One bounded name check per image in the existing display projection.
Risk
Level: Low. Image reading and attachment records use the existing paths. A revert restores the old display.
AI Disclosure
Review
Agent skill upstream boundary
Notes
Display handling applies to saved and new comments. Attachment transport uses the existing format.
Checklist