You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Stopping or expiring a question discards its unsent attachments #36581
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Let an agent ask a free-text question.
Attach a file or image to its pending answer, optionally type an answer.
Press Stop before submitting the answer, or let the question expire.
Inspect the thread composer after the question closes.
Expected behavior
The unsent attachments return to the thread composer alongside the recovered answer text and thread chips. Attachment-only answers are preserved too.
Actual behavior
Text and thread chips return, but files and images disappear. Question-draft cleanup releases uploads and revokes image previews without moving them to the thread draft.
Impact
Minor bug or occasional failure
Version or commit
Reproduced on pingdotgg/main at 83d2382. Independently confirmed by Claude Opus 5.5 on aecad62 during the bughunt.
Environment
Linux, web client; provider-independent question resolution. Replay (dev) used for deterministic app proof.
Logs or stack traces
The existing questionAttachments test extended with notes.txt fails for both cancelled and expired statuses: expected files [notes.txt], received files []. Typed text and thread context assertions pass.
Screenshots, recordings, or supporting files
The fix includes a stopped-question-keeps-attachments scenario using a free-text Replay question. It fails before the application fix and passes afterward.
Workaround
Copy typed answers and save or reattach files manually before stopping the turn.
Activity