Repository navigation
[Bug]: Cannot stop a running turn, edit the last prompt, and restart #11083
Description
Activity
Thanks for the clear write-up — this is a real gap, not just a missing Cursor-style nicety.
T3 Code has no inline “edit last prompt.” The supported path is Revert to this message, then send a corrected prompt. That path currently fails for the message that started the turn you just stopped.
What the code is doing
- Revert is only wired when a later assistant message has a checkpoint (
buildRevertTurnCountByUserMessageIdinMessagesTimeline.logic.ts). The latest user message of a running or early-stopped turn usually has no such row, so the button is omitted. Older messages still show it. - While the session is
running, revert is also disabled (isWorkinginChatView/MessagesTimeline). - Interrupted turns can still get a checkpoint (
CheckpointReactor), but it is markedmissingand is often bound to a synthetic assistant id that never appears in the timeline, so the UI scan still misses. - Desktop can at least revert some earlier messages. Mobile has no revert/edit-last-message UI at all.
So: Stop → return to that prompt → edit/revert → retry is not completable today, especially if you stop before the assistant has written a real message.
Related (same family, not duplicates)
- [Bug]: Cannot revert to prompt after provider error #2627 / [Bug]: Provider finish_reason network_error hides revert button #7982 — revert missing after a failed turn (same mapping hole, different trigger)
- [Bug]: Revert leaves selected user prompt visible and composer empty #5685 — when revert does run, the selected prompt can stay locked and the composer stays empty
- [Bug]: Remote stop button gives no feedback and leaves thread stuck in Thinking #8618 — remote Stop can leave the thread
running; this report is on T3 Connect, so that can also keep revert disabled - Closed edit-last-message attempts: Feat: Editing messages #331, Allow editing the most recent user message by reverting the latest turn into the composer #762, feat:Add inline user message editing #346, Add an edit action for the latest user message #766, feat(ui): add ability to edit user message when reverting #2440, feat(chat): edit the final user message #7237. Maintainer guidance on feat:Add inline user message editing #346 was “revert, then type the revised message” — this issue is that that path does not work for the latest interrupted turn.
Next step
Keep this open as a bug. First slice: after Stop settles, expose revert on the last user message without requiring a following assistant checkpoint; after revert, restore that prompt into the composer (and restore the pre-turn workspace checkpoint, or ask whether to keep partial file changes). Remote Stop reliability stays on #8618.
Cursor/Codex-style inline edit can come later on top of that revert+prefill path.
Reacted by dkx- Revert is only wired when a later assistant message has a checkpoint (
- addedbugSomething is broken or behaving incorrectly.Something is broken or behaving incorrectly.via-triageFiled through npx t3 triageFiled through npx t3 triage
on Sep 10, 2026
Before submitting
Summary
A workflow I regularly use in Cursor and Codex is:
I cannot complete this workflow in T3 Code.
While the turn is running, Revert to this message is unavailable. After trying to stop the turn, I cannot reliably return to the message that started it, edit or revert that message, and immediately retry with a corrected prompt.
Earlier user messages may have a Revert to this message action, but the message that started the current generation does not provide the stop → edit/revert → retry workflow.
Steps to reproduce
Expected behavior
After pressing Stop, I can return to the last user message, correct it, and restart the turn.
If the agent already modified the repository, T3 Code should either restore the previous checkpoint or let me choose whether to keep the partial changes.
Actual behavior
I cannot perform the complete stop → edit/revert last message → retry workflow.
The revert action is available for some previous messages, but not for the latest message that started the interrupted or running turn.
Setup
Related issues
These appear related, but none describes the complete user workflow above:
Impact
Frequent workflow disruption