Skip to content

Sidebar folder drop always says "This computer's server is not connected yet" when the desktop app uses a separate t3 serve instead of its own backend #38708

Closed

Description

@GooUlla

What happened

I dragged a folder from the file manager onto the sidebar to add it as a project. It failed every time with an error toast: "This computer's server is not connected yet — Try again when it connects." The server was running and connected the whole time, and everything else worked. This was my first time trying the feature.

I run the desktop app with its own local environment turned off. It connects to a npx t3 serve running on the same machine.

Diagnosis

The drop handler in apps/web/src/components/sidebar/SidebarFolderDrop.tsx:47 shows this toast whenever useOpenLocalWorkspace().ready is false.

useOpenLocalWorkspace (apps/web/src/hooks/useOpenLocalWorkspace.ts:26-38) is only ready when usePrimaryEnvironment() returns an environment that is connected, has serverConfig, and has a shell snapshot. The primary environment is resolved by primaryEnvironmentIdAtom (apps/web/src/state/primaryEnvironment.ts:7), which only matches a PrimaryConnectionTarget: the backend the desktop app starts itself.

With localEnvironmentEnabled: false, the desktop app starts no backend, so no PrimaryConnectionTarget exists. The local server is reached as the host environment instead (getHostEnvironmentId / hostEnvironmentIdAtom). As a result, ready is never true and every drop shows the toast. The toast is misleading because waiting never helps.

Other features already fall back to the host environment, including themes (createThemeEnvironmentIdAtom), Open in, file preview and media. Folder drop (#35202) and, presumably, t3 <dir> activations through useOpenLocalWorkspace don't. Possible fix: have useOpenLocalWorkspace fall back to the host environment, as the theme atom does, when there's no primary. If the drop can't work in some state, show a toast that says why.

The logic is unchanged on main as of 8cf97b5 (0.1.11-nightly.20261118.4890).

Steps to reproduce

  1. In the desktop app, turn off the local environment so that desktop-settings.json has "localEnvironmentEnabled": false.
  2. Run npx t3 serve on the same machine with the same T3 home, and connect the desktop app to it.
  3. Wait until it is fully connected and the projects and threads have loaded.
  4. Drag a folder from the OS file manager onto the sidebar.
  5. Expected: the folder is added as a project. Actual: an error toast says "This computer's server is not connected yet. Try again when it connects." Retrying gives the same result.

Version

0.1.10 (desktop AppImage and t3 serve server, which reports serverVersion 0.1.10)

Environment

Fedora 44 (Linux 7.3.3, x64), Node v26.13.1, desktop AppImage, server via npx t3 serve on 127.0.0.1:3773 (network-accessible, Tailscale Serve on)

Evidence

# desktop-settings.json (relevant key)
"localEnvironmentEnabled": false

# <state-dir>/environment-id
d06e2f31-544a-4584-b1fc-38ca1efcd018

# GET http://127.0.0.1:3773/.well-known/t3/environment
{"environmentId":"d06e2f31-544a-4584-b1fc-38ca1efcd018","platform":{"os":"linux",...},"serverVersion":"0.1.10",...}
# -> the running server is the host environment; no PrimaryConnectionTarget exists

# The server trace has nothing related; the check fails entirely in the client before any request.

Related issues

None found (searched "not connected yet", "drag folder sidebar", "drop folder project", "SidebarFolderDrop"). Feature added in #35202.

Fix applied or workaround

Nothing was changed on the machine. Workaround: use Add project in the sidebar and pick the folder.

Filed by

Claude Code (claude-opus-5-5) via t3 triage

Activity

  1. added
    via-triage
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions