Skip to content

bug(web): pasted image in composer lost when switching sessions #465

@hqhq1025

Description

@hqhq1025

Problem

When a user pastes an image into the composer input of a session, then navigates away to another session (or page) and comes back, the pasted image attachment is lost. Only the text content is preserved.

Steps to Reproduce

  1. Open a session in the web UI
  2. Paste an image into the composer input
  3. Navigate to a different session or page
  4. Navigate back to the original session

Expected: Both the text and the pasted image should still be present in the composer.
Actual: The text is preserved, but the pasted image is gone.

Expected Behavior

Image attachments in the composer should be persisted (e.g., in session state or localStorage) and restored when the user navigates back to the session, similar to how draft text is already preserved.

Environment

  • Web UI (all platforms)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions