Skip to content

[Bug]: Stopping or expiring a question discards its unsent attachments #36581

Closed

Description

@StiensWout

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

Steps to reproduce

  1. Let an agent ask a free-text question.
  2. Attach a file or image to its pending answer, optionally type an answer.
  3. Press Stop before submitting the answer, or let the question expire.
  4. 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

  1. added
    vouch:trusted
    on Nov 14, 2026
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

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions