Commit Graph
1626 Commits
Author SHA1 Message Date
Josh Gratton 495c2dd046 fix(desktop): clear stale WSL readiness state 2026-06-07 17:22:46 -04:00
Josh Gratton b7bbad9faf fix(desktop): pass WSL node engine range to resolver 2026-06-07 17:13:59 -04:00
Josh Gratton d72c85a888 fix(desktop): retry idle WSL backend after preflight cap 2026-06-07 13:28:19 -04:00
Josh Gratton ac4d02ee63 fix(web): retry local secondary registration after connect failure 2026-06-07 13:11:47 -04:00
Josh Gratton aba2f1b9c8 fix(desktop): reuse SSH node resolver for WSL 2026-06-07 12:58:01 -04:00
Josh Gratton fe77570b5b fix(desktop): surface WSL preflight failures cleanly 2026-06-07 12:56:48 -04:00
Josh Gratton 383d41c1d1 fix(desktop): cap WSL preflight failures, surface them, fall back to Windows
A fatal WSL preflight failure (no node, wrong version, missing build tools)
used to reschedule the backend forever with no cap and no UI, so in wsl-only
mode the app sat invisible (no onReady, no window) retrying a setup that can't
fix itself.

Classify preflight failures as fatal vs transient. Transient ones (WSL cold-
starting, wslpath while the VM boots) keep retrying so the backend self-heals.
Fatal ones stop after MAX_PREFLIGHT_FAILURE_ATTEMPTS and fire onPreflightFailed.
On the primary the pool wires that to show an error dialog and persist Windows
mode, so the manager's next restart re-resolves the primary as Windows and a
window opens instead of hanging.
2026-06-07 11:58:52 -04:00
Josh Gratton 19c2146453 fix(desktop): resolve nvm/fnm/asdf-managed node for the WSL backend
The WSL preflight ran probes via 'bash -l -s' and the backend launched bare
'node' via 'wsl.exe -- node'. Both miss version-manager-installed node: nvm/
fnm/asdf/volta hook in below the interactive guard at the bottom of .bashrc,
which a non-interactive login shell returns before reaching, and a bare
'wsl.exe -- node' uses the non-login PATH. So wsl-only mode failed preflight
(or launched the wrong node) for the common nvm setup.

Source the managers explicitly via a preamble prepended to every WSL probe,
resolve the absolute node path the preflight validated, and launch with that
exact path so preflight and launch agree on one node.
2026-06-07 11:41:25 -04:00
Josh Gratton 6ebdc74cb2 Merge remote-tracking branch 'upstream/main' into josh/desktop-wsl-parallel-backends
# Conflicts:
#	apps/web/src/components/CommandPalette.tsx
2026-06-06 13:03:53 -04:00
Julius Marmingeandcodex 3ea6adf17d [codex] Enrich relay authorization diagnostics (#2977)
Co-authored-by: codex <[email protected]>
2026-06-05 18:01:34 -07:00
Julius Marminge a56496c7f2 Annotate relay error spans with schema fields (#2976) 2026-06-05 16:35:14 -07:00
b76f161d55 fix(desktop): stop looping macOS TCC permission prompts (#2745)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
2026-06-05 12:07:18 -07:00
Peter Hozák 75257d64e9 "claude system message" instead of "runtime warning" when using 4.8 from claude code (#2972) 2026-06-05 11:27:37 -07:00
Abdul AzeezandJulius Marminge e1ce9f8500 fix: handle Claude Agent SDK 0.3.x system messages to stop runtime-warning flood (#2872)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-05 18:26:32 +00:00
Julius Marminge 602148f8fe fix(cloud): use Electron fetch for proxying Clerk IPC requests (#2973) 2026-06-05 11:08:34 -07:00
Josh Gratton bd82399cca refactor(desktop): use Effect.orElseSucceed for WSL probe fallbacks
Align the four list/path/IP/home probe fallbacks with the convention
upstream adopted in #2968: replace Effect.catch(() => Effect.succeed(x))
with the more direct Effect.orElseSucceed(() => x). Behavior is
identical (recover from the error channel with a default); silences the
new catchToOrElseSucceed lint.
2026-06-05 14:00:27 -04:00
Josh Gratton 3ca0696b95 test: point WSL test imports at vite-plus/test after upstream sync
Upstream #2964 migrated the workspace test imports from "vitest" to
"vite-plus/test" and dropped vitest as a resolvable module. Our WSL
test files predate that migration and still imported from "vitest",
which broke typecheck (TS2307) after merging main. Repoint them.
2026-06-05 13:51:07 -04:00
Josh Gratton adaa1839ed Merge remote-tracking branch 'upstream/main' into josh/desktop-wsl-parallel-backends 2026-06-05 13:43:46 -04:00
Josh Gratton 7d15110e65 fix(desktop): preserve existing WSLENV verbatim when forwarding secrets
mergeWslEnv split the user's WSLENV on every colon and re-serialized it,
collapsing empty :: segments, trimming, and de-duplicating entries. That
diverged the forwarded value from what the user configured on Windows.
Keep the existing WSLENV byte-for-byte and only append the secret names
we forward that aren't already declared. Empty segments are WSL no-ops,
so nothing stopped forwarding, but verbatim preservation matches intent
(and the test name) and removes the surprise.
2026-06-05 09:08:15 -04:00
Josh Gratton 56c0512666 fix(desktop): tolerate numeric networkInterfaces family in mirrored-mode detection
isLocalHostIpv4 matched interface family against the string IPv4 only.
Some Node builds report family as the numeric 4 (Electron 41 / Node 22
reports the string, but the representation has varied across versions),
which would make mirrored-mode detection silently miss and leave the
renderer pointed at the distro IP instead of loopback. Normalize via
String() and accept either form.
2026-06-05 08:49:51 -04:00
Julius Marminge 92be60e7c1 include @latest 2026-06-04 23:01:09 -07:00
Julius Marminge 0d6e9e9add we support cursor, duhhh 2026-06-04 23:00:40 -07:00
Julius Marminge 8ab58a0b26 tip 2026-06-04 22:59:28 -07:00
Julius Marminge 6f42bd9c88 cleanup 2026-06-04 22:58:53 -07:00
Julius Marminge 5b26bd408b link 2026-06-04 22:57:04 -07:00
Julius Marminge c04d15d3be document vp instead of mise 2026-06-04 22:56:18 -07:00
Julius Marminge 9da430c828 Refactor recoverable Effect fallbacks to orElseSucceed (#2968) 2026-06-05 05:47:56 +00:00
Julius Marminge a084fbbc0a Remove duplicate 'publish' argument in CLI script 2026-06-04 22:39:59 -07:00
Julius Marminge b870a6e349 Rename function for publishing arguments to vp pm (#2967) 2026-06-05 05:22:37 +00:00
Julius Marminge e1cb19b55b Use pnpm for server publish workflow (#2966) 2026-06-04 22:16:52 -07:00
Julius Marminge 94fc117561 publish deploy status on relay deploy workflow 2026-06-04 21:47:12 -07:00
Julius Marminge 113b9d84c7 remove vp staged 2026-06-04 21:41:54 -07:00
Julius Marminge f60def2054 Migrate tests to vite-plus test APIs (#2964) 2026-06-05 04:39:19 +00:00
Julius Marminge eda163ca17 bump alchemy to fix drizzle schema out attempt 2 2026-06-04 21:03:05 -07:00
Josh Gratton 993261f53f fix(desktop): call handleBackendReady with URL in off-origin nav test
The merge combined our handleBackendReady(httpBaseUrl) signature change
with an upstream-added test that still yielded it as a bare Effect.
Pass the resolved URL like the other call site so the merged test
typechecks against the function form.
2026-06-04 23:49:36 -04:00
Julius Marminge 3579005114 bump alchemy to fix absolute drizzle schema out 2026-06-04 20:45:34 -07:00
Josh Gratton ae03db4f47 Merge upstream/main into josh/desktop-wsl-parallel-backends
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.
2026-06-04 23:35:04 -04:00
Julius Marminge af3dfd229e forward args directly 2026-06-04 20:19:06 -07:00
Julius Marminge 969e6d274c implicit install from vp 2026-06-04 20:16:56 -07:00
Julius Marminge 769bdd251d fallback to None when RELAY_DOMAIN is unset 2026-06-04 20:16:23 -07:00
Julius Marminge 295b9db113 dont fail if env-file is unspecified 2026-06-04 20:12:42 -07:00
Julius Marminge b5a62504d4 move 2026-06-04 20:05:30 -07:00
Julius Marminge ec18938bf9 Restructure documentation into topical folders (#2963) 2026-06-04 20:03:12 -07:00
Julius Marmingeandcodex 5ae77c0d63 feat(relay): Add managed relay tunnels and APN service (#2837)
Co-authored-by: codex <[email protected]>
2026-06-04 19:53:56 -07:00
Julius MarmingeandJulius Marminge 300f7fd11d [codex] Avoid shell for system executables (#2950)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-04 15:25:46 -07:00
Guilherme Vieira 53042f47f8 fix(composer): support spaces in file mentions (#2625) 2026-06-04 15:19:06 -07:00
Julius MarmingeandJulius Marminge 6ce6f678b5 [codex] Avoid shell for Windows environment probe (#2951)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-04 15:15:26 -07:00
Julius MarmingeandJulius Marminge a74dfd4f3c [codex] Avoid shell for Node executable spawns (#2952)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-04 15:14:07 -07:00
Guilherme VieiraandJulius Marminge 49c1b64687 fix(source-control): handle self-hosted GitLab, multi-account GitHub auth & azure devops web url (#2480)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-04 15:13:04 -07:00
Julius MarmingeandJulius Marminge dfdb5a46db [codex] fix release finalize install (#2961)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-04 21:57:43 +00:00