Skip to content

[Bug]: Reverting a message drops its inline image link from the composer #45359

Done

Description

@Pulsar-Programmer

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web (shared web and desktop composer)

Steps to reproduce

  1. Attach an image to a prompt and send it with the inline image chip in the prompt text.
  2. Select Edit from here under the sent message and confirm the revert.
  3. Check the restored prompt in the composer.

Expected behavior

The inline image link returns at its original position and still points to the attached image, so the prompt can be edited and resent with its image reference intact.

Actual behavior

The inline image link disappears from the restored prompt.

The rewind handler restores the image file separately. The prompt restoration calls recallComposerMessage, which preserves thread and environment references but omits inline image references. This may explain why a thumbnail can return while its inline reference is lost.

Impact

Minor bug or occasional failure. The image reference has to be put back into the prompt before resending.

Version or commit

Affected version unconfirmed.

gpt-6.2-sol posting on behalf of Pulsar-Programmer.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions