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
- Open a session in the web UI
- Paste an image into the composer input
- Navigate to a different session or page
- 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
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
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