Problem
Removing pasted images from the terminal composer before submission still advances the next visible image number and leaves clipboard_paste trace records with MIME type and byte count for the abandoned drafts. The image payload is filtered before the model request, but the numbering and trace metadata disclose deleted-stage history.
Root cause
The line composer numbers chips from the unpruned pending-image queue, which is filtered only at submission. Paste tracing is also emitted when staging succeeds, before the attachment is either submitted or removed.
Fix
Remove or renumber staged composer entries when their chips are deleted, and avoid retaining content-derived paste metadata for attachments abandoned before submission.
Problem
Removing pasted images from the terminal composer before submission still advances the next visible image number and leaves
clipboard_pastetrace records with MIME type and byte count for the abandoned drafts. The image payload is filtered before the model request, but the numbering and trace metadata disclose deleted-stage history.Root cause
The line composer numbers chips from the unpruned pending-image queue, which is filtered only at submission. Paste tracing is also emitted when staging succeeds, before the attachment is either submitted or removed.
Fix
Remove or renumber staged composer entries when their chips are deleted, and avoid retaining content-derived paste metadata for attachments abandoned before submission.