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
Retry duplicates queued instructions when clearing the old queue fails #925
Priority: P1. Reproduced/reviewed at commit 6c7a6fbe on 2026-09-05.
Retry can duplicate a queued prompt without starting a run.
Reproduction
Open an idle thread with queued.prompt = "Retry this once" and a delivery error.
Make the clear call to threads.setQueued({prompt:null}) reject.
Allow subsequent non-null setQueued calls to succeed.
Click Retry.
runs.start was never called, but the host queue is now "Retry this once\n\nRetry this once".
Confirmed in the real App with fakeCoder's normal append behavior.
Cause
useCoder.retryQueued wraps both clear and start in one try/catch. The catch always re-enqueues the old payload, even when the clear itself failed and the payload never left the host. services.setQueued appends by default. The same mistake can duplicate attachments. The local overlay still uses the original pending object, masking the host duplication.
Acceptance
A failed clear leaves exactly one copy of the old prompt and attachments.
Only compensate for a removal that actually succeeded.
A rejected start after a successful clear restores the original payload exactly once.
Preserve newer concurrently queued content.
Assert host queue contents, not just the rendered error.
Activity
currentbits commentedon Sep 10, 2026
Landed from Solenta thread "Retry duplicates queued instructions when clearing the old q". Closed on merge.