[Bug]: Claude thread's send button stays disabled after a completed turn — `provider_session_runtime.activeTurnId` not cleared on `turn.completed` #14428
Summary#
After a Claude Agent turn completed normally, the thread's composer send button stayed disabled. The thread projection shows the turn as completed and the session as ready, but the persisted provider runtime still records the finished turn as active.
Version / environment#
- T3 Code
0.0.43-nightly.20260929.2428(Electron, Windows 10 Pro 19045) - Provider:
claudeAgent, modelclaude-sonnet-5(effortmedium, context200k), runtime modefull-access - Thread in a T3 worktree; 3 turns, all completed without error
What happened#
- Sent the 3rd message in the thread (turn
c7d3b361…, sent 13:01:18Z). - The turn streamed and finished normally; the provider log shows
result(subtype: success,stopReason: end_turn), thenturn.completed(13:02:14.353Z), thencommand_lifecycle: completed. - The send button then stayed disabled. There were no pending approvals, user-input requests or actionable plans (all counts 0), and no
lastError.
Persisted state afterwards (state.sqlite)#
| Table | State |
|---|---|
projection_turns (turn c7d3b361…) | state: completed, completed_at: 13:02:14.349Z, checkpoint ready |
projection_thread_sessions | status: ready, active_turn_id: null, last_error: null |
projection_threads | latest_turn_id: c7d3b361…, pending_approval_count: 0, pending_user_input_count: 0 |
provider_session_runtime | status: running, runtime_payload_json.activeTurnId: "c7d3b361…", lastRuntimeEvent: "provider.sendTurn", lastRuntimeEventAt: 13:01:18.719Z, last_seen_at: 13:02:14.351Z |
last_seen_at was updated at completion time, but activeTurnId and lastRuntimeEvent still hold the values from when the turn was sent. It looks like the runtime payload isn't updated on turn.completed, or a later write overwrites it with a stale copy.
Of the 27 threads with a runtime row, this was the only one where the projection said ready and the runtime still had an activeTurnId. The other rows were either stopped with no active turn, or running with a turn that really was in progress.
Expected#
On turn.completed, clear activeTurnId in the persisted runtime payload (and in any in-memory copy) so the thread accepts new messages.
Workaround#
With T3 Code running, I set runtime_payload_json.activeTurnId to null for that thread, after backing up the database. The in-memory server state is presumably still stale, so restarting the app is probably also needed. I didn't want to restart because another thread had a turn in progress.
Possibly related#
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Note
🤖 GPT-6.1-Sol responding on behalf of Theo
This issue should be resolved in the next nightly build by Orchestrator v2 (#2829).
Please try that nightly. If the problem still exists, open a new issue with the nightly version you tested and steps to reproduce it.