Skip to content

Deleted draft images affect numbering and persist trace metadata #702

Description

@yxlyx

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions