New threads do not show agent messages until the web app is refreshed #27618
What happened#
After creating a new thread in app.t3.codes and sending the first message, no agent messages appear until the page is refreshed. After one refresh, updates work for the rest of that thread. This happens whenever the user starts a new thread.
Diagnosis#
The symptom occurs during the transition from a new thread to an active conversation. Refreshing restores live updates, but the cause has not been established. An initial review of the server trace did not identify a clear failure. The web client has a draft-to-server-thread promotion flow that may be relevant; its involvement has not been confirmed.
Steps to reproduce#
- Open app.t3.codes on ChromeOS in Chrome and connect to the server.
- Create a new thread.
- Send a message.
- Observe that agent messages do not appear.
- Refresh the page. Messages appear, and subsequent updates work in that thread.
Version#
Affected web client version: unknown.
The connected server was running 0.1.6-nightly.20261030.3917 during triage.
Environment#
- Client: ChromeOS, Chrome, app.t3.codes
- Server: Linux x64, kernel
7.2.8-9-omarchy, Nodev24.22.1 - Server running through the T3 Code desktop app
Evidence#
User reports that a single refresh restores updates for the remainder of the thread. No conclusive trace entry was identified during the initial investigation.
Related issues#
No matching issue found in the initial GitHub searches.
Fix applied or workaround#
Refresh the web app after sending the first message in each new thread.
Filed by#
Codex (gpt-6.1-terra) via T3 Code triage.
+1
+1
Also reproduces in the Windows desktop app, version
0.1.6-nightly.20261030.3917, connected to its local server.New chats repeatedly display “Send a message to start the conversation” despite containing messages. Both user and assistant messages are missing. The messages remain readable through
t3_thread_read.Switching away and back does not restore them. Ctrl+R restores the conversation, but the problem returns in subsequent new chats.
A screenshot captures the affected conversation showing the empty-state prompt. Root cause remains unconfirmed.
Triaged by Codex (
gpt-6.1-sol) through T3 Code.Root cause from a second triage (macOS desktop app,
0.1.6-nightly.20261030.3917, local server), checked against the source at tagv0.1.6-nightly.20261030.3917.Diagnosis#
The thread detail stream treats the draft's pre-launch 404 as a permanent delete.
- Opening a new-thread draft mounts the thread detail state under the draft's thread ID. With no data,
makeSubscribeInputfirst loads the bounded snapshot over HTTP (packages/client-runtime/src/state/threads.ts:953-969). - The thread does not exist yet, so
GET /api/orchestration/threads/<id>/boundedfails withEnvironmentResourceNotFoundError(thread_not_found).boundedThreadSnapshotHttp.ts:101-108maps that to{ _tag: "missing" }. threads.ts:999-1001handlesmissingwithsetDeleted()and thenEffect.never.subscribeThreadis never sent.- On every later attempt,
threads.ts:944-945parks whenstatus === "deleted".setDeletedalso callsremember, which writes the deleted state into the resume cache. A remount starts from that retained state (threads.ts:232-233), which is likely why switching away and back does not recover and only a reload does.
Meanwhile the server runs the turn to completion. The UI keeps showing the launch steps and "Working for …" (or the empty-state prompt) with no messages.
Evidence (server trace, times UTC)#
Same pattern for all three threads created from the UI today:
Thread Bounded snapshot 404 launchThreadsubscribeThread457cd94a…13:27:18 13:27:21 never bcf3c58d…13:33:09 13:33:13 never 166cf9cd…13:49:14 13:49:17 never For
166cf9cd…, the server-side projection shows the runcompletedat 13:51:04, with 3 assistant messages and 14 completed tool calls. The trace hasProjectionStoreThreadNotFoundError→OrchestratorProjectionError→EnvironmentResourceNotFoundError (thread_not_found)fromenvironment.orchestration.threadBoundedSnapshot, followed 3 s later by a successfulorchestration.launchThread. Threads created through MCP skip the draft view and subscribe normally.Possible fix direction#
A
missingresult for a thread the client is about to launch (or has just launched) should not latchdeleted. For example, treat it asunavailablewhile a launch for that ID is pending, or clear the deleted state and resubscribe when the thread appears in the shell stream.Fix applied or workaround#
Reload the window (Cmd/Ctrl+R) after sending the first message.
Triaged by Claude Opus 5.5 (
claude-opus-5-5) via Claude Code, T3 Code triage.- Opening a new-thread draft mounts the thread detail state under the draft's thread ID. With no data,
Note
🤖 Claude Opus 5.5 responding on behalf of Theo
Closing: this is covered by #27522, which landed. Reopen if an important part is still missing.
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
+1