Problem
Adding many attachments to a chat causes major performance degradation in the desktop app.
Repro steps
- Add attachments to a chat (e.g. 2-3 images).
- Submit the message.
- Continue chatting in the same session.
Observed behavior
- Keystroke latency becomes very high while typing.
- General app responsiveness feels slow after the large attachment submission.
Expected behavior
Submitting many attachments should not cause sustained typing lag or overall UI slowdown. Input and chat interactions should remain responsive.