Provider update executables are package-manager launcher shims (`npm` ->
`npm.cmd`, `pnpm` -> `pnpm.cmd`, etc.). On Windows a bare-name spawn does
not resolve PATHEXT, so `ChildProcess.spawn("npm", ...)` fails with ENOENT,
surfaced to users as "Failed to run update command npm: NotFound". This
broke one-click updates for every npm/pnpm/bun/vp-managed provider on the
Windows backend.
Spawn the maintenance command with `shell: true` on win32 so the shell
resolves the shim, matching how every other provider command is already
spawned (ClaudeProvider, CodexSessionRuntime, CursorProvider, GrokProvider,
opencodeRuntime, AcpSessionRuntime). The update args are a fixed allowlist
of package names, so there is no shell-injection surface.
Resolve conflicts from the upstream bun->pnpm+Vite migration (#2899),
relay tunnels (#2837), and proof-key bootstrap auth:
- apps/web/src/environments/primary/auth.ts: upstream switched the
contracts import to `import type` and added ServerAuthSessionMethod;
keep that and re-add PRIMARY_LOCAL_ENVIRONMENT_ID as a value import
(still used at runtime to find the primary bootstrap entry).
- apps/web/src/environments/runtime/catalog.ts: keep both new optional
fields on SavedEnvironmentRecord (our desktopLocal marker and
upstream's relayManaged).
- apps/server/src/auth/PairingGrantStore.test.ts: keep upstream's new
proof-key thumbprint test and our reusable-bootstrap-grant test
(the desktop bootstrap credential is reusable: remainingUses
unbounded, 24h TTL).
- apps/web/src/components/settings/ConnectionsSettings.tsx: render both
the WSL row and upstream's CloudLinkRow in the connected section.
Resolves conflicts from upstream #2013 (mobile WIP), which moved several
web modules into @t3tools/client-runtime and deleted their old paths:
- ConnectionsSettings.tsx: drop the now-dead `~/rpc/wsRpcClient` type
import; WsRpcClient is now provided by @t3tools/client-runtime. Keep our
`~/environments/local` imports.
- runtime/service.ts: drop unused `projectReactQuery`/`providerReactQuery`
imports (source files removed upstream). Keep reconcileLocalSecondaryEnvironments.
- environments/local/index.ts (clean-merge breakage): `../remote/api` was
removed; repoint bootstrapRemoteBearerSession / fetchRemoteEnvironmentDescriptor
/ fetchRemoteSessionState to @t3tools/client-runtime. Those are now Effect.fn,
so wrap the three call sites in remoteHttpRuntime.runPromise(...), matching
the pattern upstream uses in runtime/service.ts.
Full typecheck green across all 14 packages; web tests 62/62.
The desktop-bootstrap credential used the same single-use + 5-minute
TTL semantics as a user-facing pairing link. That fit the original
mental model (one renderer, one bootstrap exchange) but breaks
parallel backends where a slow WSL cold boot lands outside the
renderer's first reconcile pass, and breaks page reloads where the
renderer no longer has the bearer it traded the bootstrap for and
needs to re-exchange.
Switch the seed for `desktopBootstrapToken` to `remainingUses:
"unbounded"` with a 24h TTL. The seed is delivered over trusted IPC
(fd3 / stdin) at backend launch and lives in the renderer/desktop
processes the user already trusts, so single-use buys us nothing
operationally and costs us recoverable error paths.
Tests:
- BootstrapCredentialService.test.ts now asserts repeat consumption
succeeds and that expiry kicks in past 24h, not 5 minutes.
- server.test.ts: the "rejects reusing" test is rewritten as
"allows reusing" against the same credential.
Stdin pipes inherited across the wsl.exe boundary fail to re-open
via /proc/self/fd/0, so add EACCES to the codes that drop back to
reading the fd directly. Without this the WSL desktop backend
fails to load its bootstrap envelope with "Failed to duplicate
bootstrap fd" and ends up in a scheduled-restart loop.