Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Revert leaves selected user prompt visible and composer empty #5685

ClosedLunarRed(GitHub profile, opens in a new tab) opened this issue 1 comment

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open a thread in a Git worktree and complete at least two user and assistant turns.
  2. Hover over the latest completed user prompt.
  3. Click Revert to this message.
  4. Confirm the rollback.
  5. Observe the timeline and composer after T3 reports that the revert completed.

Expected behavior

The selected user prompt and its following assistant turn should be removed from the timeline. The preceding assistant response should become the final visible message.

If the user-message placement is intended to support an edit-and-retry workflow, the selected prompt should also be restored to the composer as editable text. At minimum, it must not remain in the timeline as an immutable message after T3 has reverted to the checkpoint before that turn.

Actual behavior

The assistant work after the selected prompt is removed, but the selected user prompt remains visible as a locked timeline message. The composer is empty, so the prompt cannot be edited or resent. The user must enter another prompt to continue.

This leaves the live timeline inconsistent with the completed rollback. The screenshot shows the selected prompt still visible directly above an empty composer.

Current main also suggests a client-state mismatch: the server projection removes messages according to the requested checkpoint count, while the live client retains messages without a turn ID. User prompts are recorded without a turn ID.

Related but distinct: #2268 reports the entire thread disappearing and reverted text appearing in a new-chat draft. This report is specifically about the selected prompt remaining in the same thread as immutable history.

Impact

Major degradation or frequent failure

Version or commit

T3 Code desktop app 0.0.32

Environment

macOS, T3 Code desktop app 0.0.32, Claude Opus 5, Medium reasoning, 1M context, Auto runtime, worktree thread

Logs or stack traces

Screenshots, recordings, or supporting files

file-9635947fe1b307225cfa7dfb15631b2e.jpg

Workaround

No complete workaround found. Sending a separate new prompt continues the thread, but the reverted prompt remains uneditable and cannot be corrected or resent.

  1. LunarRed(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. amitray007(GitHub profile, opens in a new tab)commented

    Thanks for the detailed report, I have noticed the bug to be super annoying and wanted to improve it.

    I’ve implemented a fix in #6044.

    • the selected reverted message is removed from the live timeline and restored to the composer, including image attachments.
    • If the composer already contains an unsent draft, that draft is saved to Stash first.
  3. juliusmarminge closed this

Sign in to join this conversation.