Files
t3code/apps/web
Cursor Agent 80c2dac816 Fix: always remove optimistic message on dispatch error to prevent ghost messages
When attemptedTurnStart is true but the thread.turn.start dispatch fails
(e.g. network error), the optimistic user message was never removed from
optimisticUserMessages. The catch block only cleaned up when
!attemptedTurnStart, leaving a permanently visible ghost message.

Move setOptimisticUserMessages filter outside the !attemptedTurnStart guard
so it always runs on error. The prompt/image restoration remains gated
behind !attemptedTurnStart since that only applies to pre-send failures.
2026-02-27 04:36:44 +00:00
..
2026-02-19 01:42:56 -08:00
2026-02-19 01:42:56 -08:00