Skip to content

[Bug]: Recovered queued edits lose thread mentions while reporting kept #36577

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. Start a turn that waits for approval, then queue a follow-up message.
  2. Edit that queued message and add another thread through the @ picker.
  3. Leave the edit unsaved and the normal thread draft empty.
  4. Approve the active turn so the queued message starts, triggering edit recovery.

Expected behavior

The recovered composer retains the unsaved edit, including the thread mention and its backing context.

Actual behavior

The toast says the edit was kept in the composer, but the thread mention disappears. Recovery strips the inline reference and then clears the backing context from the edit draft. Other draft-owned contexts and reply information are also omitted by the transfer.

Impact

Minor bug or occasional failure

Version or commit

Independently verified by Claude Opus 5.5 on 83d238218d86a035ab3674efb09e51fd68437712; reproduced again on 99071c4953bb50924f23c9282be11a5cfa0eda6a.

Environment

Web client, Chromium on Linux, Replay provider holding an approval. Desktop shares the web composer state path.

Logs or stack traces

The focused recovery test returns kept but observes threadContexts: [] and a prompt with its thread reference removed. A real-app scenario fails on base when the recovered composer no longer contains the mentioned thread.

Screenshots, recordings, or supporting files

Before recovery fix

Workaround

Re-add the mention after recovery. Related closed issue #30850 concerns mention formatting when editing sent messages; this report concerns context loss when an unsaved queued edit is recovered.

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