Repository navigation
Description
What happened
Starting a new thread in a project and sending a message shows only my message, with no spinner or reply. After a while the view returns to the empty "send a message to start a conversation" state, with no error. Reopening the thread also shows the empty state, with no message. The message and the agent reply do exist on the server.
Diagnosis
The server worked. The client marked the thread as deleted before it existed and never subscribed again.
Server (database and server.trace.ndjson):
thread.createandlaunchThreadsucceeded at 09:17:56Z.- The user message and the assistant reply are in
orchestration_v2_projection_messages. - The run completed in 12 s.
Client sequence for the thread:
- 09:17:50.127Z
EnvironmentThreadState.makeruns for the new thread ID. The thread is not created yet. GET /api/orchestration/threads/<id>/boundedreturns 404thread_not_found.packages/client-runtime/src/state/boundedThreadSnapshotHttp.ts:104-109maps the 404 to{_tag: "missing"}("treating the thread as deleted").packages/client-runtime/src/state/threads.ts:999-1001callssetDeleted()and returnsEffect.never. The trace showsEnvironmentThreadState.setDeletedat 09:17:50.152Z. ThemakeSubscribeInputspan stays open 33,959 ms.threads.ts:522makesapplyEventa no-op for a deleted thread.threads.ts:944parks any later subscribe. The deleted state is also kept in the resume cache for 5 min (threadRetention.ts:1).- 09:17:56.733Z
launchThreadcreates the thread. The client never fetches or subscribes again, so the UI stays empty.
Trigger: apps/web/src/components/ThreadRouteView.tsx:75-82 reads the thread detail when the route is /$environmentId/$threadId, the shell does not list the thread, and the draft store has no draft for that ID. I did not confirm what put the client on that route 6 s before the send. finalizePromotedDraftThreadByRef (composerDraftStore.ts:4383) removes the draft entry, so a window exists between draft removal and the shell listing the thread. I did not reproduce this in the UI.
Suggested direction: a 404 for a thread the client has just opened should not be permanent. Clear deleted on a thread.created event or on the next subscribe attempt.
Steps to reproduce
Not deterministic. Observed on the desktop app (nightly) against the local server, after the app restarted about 2 minutes earlier:
- Open a new thread in a project.
- Type a message and send it.
- The thread view stays empty. Reload to compare.
Version
0.1.6-nightly.20261030.3917 (app and server). main has the same threads.ts as this tag.
Environment
macOS (Darwin 27.0.0, arm64), T3 Code Nightly desktop with local server, provider claudeAgent, model claude-sonnet-5-5.
Evidence
09:17:50.127 EnvironmentThreadState.make
09:17:50.140 EnvironmentThreadState.makeSubscribeInput 33959ms
09:17:50.141 GET /api/orchestration/threads/<id>/bounded 404
09:17:50.143 GET /api/orchestration/threads/<id>/bounded 404
09:17:50.152 EnvironmentThreadState.setDeleted
09:17:56.733 ws.rpc.orchestration.launchThread 50ms
09:17:56.735 orchestrationV2.dispatch.threadCreate
server cause: ProjectionStoreThreadNotFoundError / EnvironmentResourceNotFoundError (thread_not_found)Related issues
None found in 5 searches of pingdotgg/t3code (thread deleted before creation, blank new thread, setDeleted subscription).
Fix applied or workaround
None applied. Reloading the window or restarting the app should clear the state (not tested).
Filed by
claude (claude-sonnet-5-5) via t3 triage
Activity
Skilux commentedon Oct 30, 2026
Duplicate of #27443. Evidence and the confirmed trigger (#27252's runStopAtom) are posted there.