Triage
Not a duplicate of #5475, and not fixed in a newer stable. v0.0.42 (released 2026-09-16) is still the latest stable. With no channel cookie, app.t3.codes is that build. The server version in the report matches it. Current main (e3e7cc3fc2) has since changed how this screen is mounted, and that change is only on the nightly channel. I could not force the mismatch from the code, and the report is one observation whose trigger is still unknown. The click does create the draft and point the address bar at it, and the chat pane is not rendered from window.location, so the URL and the pane can disagree. Labeling it a bug on that basis.
What the click does
The project crumb is New thread in ${activeProjectName}. It calls startNewThreadForProject, which mints a draft and navigates to /draft/$draftId only after that draft is in the store:
setLogicalProjectDraftThreadId(logicalProjectKey, projectRef, draftId, {
threadId,
createdAt,
branch: options?.branch ?? null,
worktreePath: options?.worktreePath ?? null,
envMode: initialEnvMode,
startFromOrigin:
options?.startFromOrigin ??
resolveNewDraftStartFromOrigin({
envMode: initialEnvMode,
newWorktreesStartFromOrigin: projectSettings.settings.newWorktreesStartFromOrigin,
}),
runtimeMode: defaultRuntimeMode,
...(carryInteractionMode ? { interactionMode: carryInteractionMode } : {}),
});
applyStickyState(draftId);
const modelSelectionOverride = resolveModelSelectionOverride(draftId);
if (modelSelectionOverride) {
// Project defaults and carried selections both outrank global sticky
// state. The project default wins when both are present.
setModelSelection(draftId, modelSelectionOverride, { replaceOptions: true });
}
await router.navigate({
to: "/draft/$draftId",
params: { draftId },
replace: options?.replace ?? false,
});
An empty draft for that project is reused instead of minted again. That is why the later click painted the composer at the same /draft/<uuid>: the first click had already stored it. The imported id (import:codex:…, one %3A-encoded segment) is not special-cased on this path.
The address bar moves in history.push before the new match is committed. The commit runs inside React.startTransition. A match that is still pending suspends, and a transition keeps the previous screen up while that promise is unresolved. There is no console error in that window. Sidebar filtering is local state, so it keeps working. A later navigation cancels the stuck commit. That matches "minutes, no dev.logs, filter still works, another chat then loads, the same draft URL then shows the composer."
Where the pane comes from
On v0.0.42 the thread route and the draft route are sibling screens. Each renders its own ChatView. Leaving /$environmentId/$threadId for /draft/$draftId has to unmount the first and mount the second. Until that commit lands, the old title, messages, and composer stay mounted. The draft route reads only its own draftId (Route.useParams()), so this is not a stale-params mix-up on the stable client.
On main (nightly only, 0f5a1513e0) both leaves render null and the _chat layout owns the screen:
function ChatRouteLayout() {
// Both thread routes render here, not in their own leaf components, so the
// draft-to-thread promotion keeps one ChatView mounted across the swap.
const threadTarget = useParams({
strict: false,
select: (params) => resolveThreadRouteTarget(params),
});
return (
<>
<ChatRouteGlobalShortcuts />
{threadTarget ? <ThreadRouteView target={threadTarget} /> : <Outlet />}
</>
);
}
useParams({ strict: false }) uses match.params, not _strictParams. The resolver then ignores draftId whenever both thread params are present:
export function resolveThreadRouteTarget(
params: Partial<Record<"environmentId" | "threadId" | "draftId", string | undefined>>,
): ThreadRouteTarget | null {
if (params.environmentId && params.threadId) {
return {
kind: "server",
threadRef: scopeThreadRef(params.environmentId as EnvironmentId, params.threadId as ThreadId),
};
}
if (!params.draftId) {
return null;
}
return {
kind: "draft",
draftId: params.draftId as DraftId,
};
}
A committed match that still carries the previous environmentId and threadId keeps painting that thread under a /draft/<uuid> URL. Router 1.170.10 (pinned on both v0.0.42 and main) rebuilds params from the new pathname. The old "both sibling params stick" bug (TanStack/router#6548, fixed in 1.157.16) should not be doing that here. I am not claiming it still does.
Nothing since v0.0.42 changes the navigate call above. The layout move is not in the stable hosted app.
Not a duplicate
| Issue |
Why it stays separate |
| #5475 (open) |
Sidebar V2 project picker navigates to an existing remote thread. Here the address bar did become /draft/<uuid>, and the previous conversation stayed painted. |
| #7183 (open) |
Reusing an archived thread id as a draft. This draft id was new, and the second click showed the empty composer at that same id. |
No other open issue describes a draft URL with the previous chat still on screen.
Not confirmed
I could not find a path that always fails. v0.0.42's draft screen returns null and sends you home when the draft record is missing; that would blank the pane, not keep the old thread. The old thread staying means the route commit never landed. The report does not say whether the sidebar row highlight moved, or whether reloading the draft URL showed the composer. The hosted channel is also unstated. Default is latest (v0.0.42). A t3code_web_channel=nightly cookie is current main.
Workaround
The one in the report is the right one: open another chat, then use that chat's project crumb. Reloading the /draft/<uuid> URL should also show the composer, because the draft is already stored. Neither is a code fix.
Labels / next
- Type: bug, not accepted. One unreproduced case. No deterministic defect on v0.0.42 or
main.
- Labels:
bug.
- Next: a second repro that records the hosted channel (About panel), whether the sidebar selection moved with the URL, and whether a reload of the draft URL was already the composer. On v0.0.42, check why the draft match stayed pending after
history.push. On nightly, also check that the layout match's params are only draftId while the pane is stale.
Filed by Grok 4.7 via Cursor.