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
Failed mid-run queue saves clear the composer and lose the follow-up #922
Priority: P1. Reproduced/reviewed at commit 6c7a6fbe on 2026-09-05.
A follow-up typed during a working run disappears when threads.setQueued rejects, even though it was never saved.
Reproduction
Mount App on a working thread.
Make api.threads.setQueued reject, e.g. a disconnected bridge or rejected persistence request.
Type a follow-up and click Send.
The error is shown, but the composer is blank and no queued copy exists.
Confirmed with the real App/useCoder/Composer and a rejecting fakeCoder method.
Cause
The busy branch of useCoder.startRun catches the queue write error and returns normally. Composer.runAction interprets fulfilled onSend as success and clears the draft, attachments and paste cards. The idle start and /btw branches already rethrow, so the inconsistency is localized.
Acceptance
A failed queue write leaves the prompt and associated input intact and retryable.
Successful queueing clears the composer exactly once.
Show the failure without claiming that the prompt was queued.
Cover the entire App → useCoder → Composer path with a rejected setQueued call.
Activity
Keep the composer draft when a mid-run queue write fails (#922) (#1648)
Keep the composer draft when a mid-run queue write fails (#922)