[Bug]: Sidebar New thread picker does not open while selected remote is reconnecting (macOS desktop)
Summary
In the macOS Nightly desktop app, the sidebar New thread button sometimes does not open the project picker at all while a saved remote computer is offline/reconnecting. The local computer and its projects remain available. When the remote comes back online, the same button opens the picker and a local new-thread draft can be created.
This reports the failure before the picker appears. It is distinct from #12093, where the picker opens but selecting a disconnected remote project silently fails. It is also a different UI entry point from the Cmd+Shift+N shortcut in #10548.
Reported steps
- In T3 Code Nightly on macOS, have a local project and a saved remote Linux computer with existing threads.
- Leave a thread associated with the remote computer selected.
- Take the remote computer offline. The selected thread shows its computer as reconnecting.
- Click the New thread icon in the sidebar (the action that normally opens the project search/picker).
- Observe that the project picker does not appear and there is no new-thread draft. Bring the remote back online and try the same button again; the picker opens.
These are the reporter's observed steps. The exact native desktop failure has not yet been independently reproduced in an isolated setup.
Expected
The sidebar project picker opens even when the selected thread's remote computer is unreachable. Local projects remain selectable. If the action cannot proceed, it gives visible feedback instead of appearing inert.
Actual
With the remote offline/reconnecting, the click produces no project picker or new draft. This prevents starting a new local thread through that button until connectivity returns.
Environment and evidence
- macOS T3 Code Nightly desktop, local Mac plus a saved remote Linux computer (
marucs-note/ Sirius). - The installed Nightly inspected during the follow-up was
0.0.43-nightly.20260925.2269; the original screenshots do not independently establish their exact build. - Screenshots supplied by the reporter show the picker and new-thread screen when the remote is online. A capture of the failed click while offline is not yet available.
- An isolated test with two disposable servers using the packaged Nightly did not reproduce the pre-picker failure in the web UI: the picker opened while the remote was down. That test did reproduce the later #12093 behavior (choosing the remote project closed the picker without a draft). This distinction is why the present report is separate; it does not establish a root cause.
Related work
- #12093: picker opens, but its disconnected remote project does nothing when selected.
- #10548:
Cmd+Shift+Nshortcut stalls with a selected reconnecting remote thread; the maintainer confirmed a pendingt3.jsonread path there. This report concerns the sidebar button before the picker is visible, and the same root cause has not been verified. - #6358 and PR #7195: blocked new-thread flow after a remote machine goes down. PR #7195 is still open and may address this too, but the pre-picker behavior should be checked explicitly before closing this report.
A sanitized one-command two-server setup is available for further testing; it contains no user data or credentials. Its current result only demonstrates the #12093 path, so it should not be treated as a reproduction of this specific pre-picker failure.
Triage
The sidebar New thread button does not consult the remote connection before deciding whether to open the picker. On current main, and on v0.0.43-nightly.20260925.2269, a plain click opens the project picker whenever the sidebar has more than one logical project. The silent click is the other branch.
What the button does
handleNewThreadClick in apps/web/src/components/Sidebar.tsx calls shouldCreateNewThreadInCurrentProject (apps/web/src/components/Sidebar.logic.ts). That is true for Shift+click, and for a plain click when projectGroups.length <= 1. That branch calls startNewThreadFromContext, which inherits the selected thread’s project and environment. useNewThreadHandler then awaits readT3ProjectFile when that project has no explicit defaultThreadEnvMode. executeAtomQuery waits with suspendOnWaiting: true and no timeout. The environment query returns Effect.never while the supervisor phase is connecting or backoff — the UI reconnecting state — in packages/client-runtime/src/state/runtime.ts. Draft registration never runs, and there is no toast.
Same-repo local and remote copies are one logical project (buildSidebarProjectSnapshots). A local checkout plus a remote copy of it is projectGroups.length === 1, so this button never opens the picker, online or offline. Offline, the click hangs. Online, it creates a draft immediately. That matches “no picker and no draft” only while the catalog is a single logical project. It does not by itself explain the picker appearing again once the remote is back, unless the logical project count changed between the two clicks.
With two or more logical projects, the click only calls openCommandPalette({ open: "new-thread-in" }). That path does not read t3.json and does not check connection phase. A disconnected environment keeps its cached shell snapshot, so its projects stay in the list. That matches the isolated two-server test: the picker opened while the remote was down, and choosing the remote row then hit #12093.
The only source path that produces “nothing, then the picker” is a remote snapshot that is absent while reconnecting (never loaded, or not cached) and that absence leaving exactly one local logical project while a remote thread stays selected. The button then skips the picker and hangs on that remote thread. When the snapshot arrives, the count goes above one and the picker opens.
Not reproduced as filed
A picker that stays closed while more than one logical project is already listed is not what this code does, and the report’s own isolated test did not hit it. There is still no capture of the failed click. The online screenshots do not show whether the sidebar had one logical project or several, or whether Shift was held. The hang also requires no explicit project defaultThreadEnvMode; that setting was not captured.
Related
- #10548 is this same
startNewThreadFromContexthang viaCmd+Shift+N(chat.newLocal). Shift+click on this button is that command. Same root cause if the button took the immediate-create branch. Different control. - #12093 is the picker opening and the disconnected row doing nothing. The isolated test reproduced that, not a picker that never opened.
- #6358 is the same
t3.jsonwait after auto-opening an unsettled thread on a down host. - #7195 skips the file read unless the target is
connectedand retargets to a reachable sibling. It is still open and conflicting (DIRTYagainstmain, last update 2026-08-16). Rebasing it would fix the silent create. It would not change the multi-project click, which already opens the picker.
Confirming a separate bug
A capture of the failed click while the sidebar lists more than one logical project, with Shift not held, would be a different bug from the one in the source above. If the list showed a single project, this is #10548’s hang through the sidebar button.
Until that guard lands, select a thread on the local computer first, then use New thread. With one logical project the button still targets the selected thread’s environment.