t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: A /compact cut by a server restart never resumes, and the message queued behind it never starts

Open Derpedyea opened this issue 4 weeks ago • 0 comments

Area

Server (orchestration v2, restart recovery)

Steps to reproduce

  1. Keep "Continue threads after server updates" on (the default).
  2. In a Claude thread, send /compact and queue a follow-up message behind it. Sending into an idle thread with "compact on return" does the same thing: the client sends /compact followed by your message.
  3. Restart the T3 server (an update, a desktop restart, or a SIGTERM) while the compaction is still running.

Expected behavior

After the restart, the compaction runs again and the queued message is sent once it finishes.

Actual behavior

Recovery cancels the compaction run and holds the queued follow-up (queueHeld: true). It does record a restart continuation for the cut run, but continueRestartedRun returns early for maintenance commands (isNativeMaintenanceCommand, which covers /compact and /logout). So nothing ever starts. The compaction stays cancelled and the follow-up stays queued until the user notices and resumes the queue by hand.

Seen in real use: /compact and a follow-up were sent at 02:00:23. The restart cut the compaction at 02:00:37, and the follow-up only started at 02:12 when the user resumed it by hand. Reproduced on main (cefb544af3) with a dev server and Claude Haiku: 45s after the restart the follow-up was still queued and held, and no continuation had been dispatched.

Impact

The thread looks idle while the message the user sent never goes out. Compact on return makes this more likely, because every send into a cold thread starts with a compaction.

Version or commit

main @ cefb544af3

Environment

macOS, desktop app and dev server, Claude provider

Workaround

Resume the held queue by hand, or send /compact again.

Derpedyea avatar Nov 03 '26 14:11 Derpedyea