Skip to content

Failed queued-message edits close the editor and discard the revised text #926

Closed

Description

@currentbits

Priority: P2. Reproduced/reviewed at commit 6c7a6fbe on 2026-09-05.

Saving an edited queued follow-up discards the edited text when persistence fails.

Reproduction

  1. Open a thread with queued text "Original queued text".
  2. Click Edit and replace it with different instructions.
  3. Make threads.setQueued reject, then click Save.
  4. The editor closes and the old queued text remains.
  5. Reopen Edit: only the original text is available; the revised draft has been discarded.

Confirmed through the real App with a rejecting queue write.

Cause

ThreadView.saveQueuedEdit closes the editor synchronously, before the write. onEditQueued is typed as returning void, and useCoder.editQueued starts an unawaited promise chain. Its catch shows a run error but cannot retain the editable draft as a failed save.

Acceptance

  • Keep the revised text editable until the save succeeds.
  • On failure, retain the revised draft with a visible retryable error.
  • Prevent repeated saves while one write is pending.
  • Preserve ordered queued items and attachments.
  • Add a mounted App regression that reopens or retries after a rejected write.

Source: src/components/ThreadView.tsx#L4762.

Requested disposition: separate Planboard issue, plan:todo. Scope is the concrete defect above.

Activity

  1. added
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Sep 5, 2026
  2. currentbits commented on Sep 8, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Fork: Failed queued-message edits close the editor and disca". Closed on merge.

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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions