Commit Graph
124 Commits
Author SHA1 Message Date
Julius Marminge 9a1c2df51e Fix unsigned Windows desktop icon 2026-06-26 16:30:21 -07:00
Julius Marminge 97b008ec81 Improve WSL project selection for desktop local backends 2026-06-26 21:52:37 -07:00
Josh Gratton 206feb75de Merge upstream/main (+212): codex Effect-service normalization wave
Catch up to pingdotgg/main (82a9bcc7), resolving 16 conflicts while
preserving the WSL parallel-backend feature set.

Upstream's codex wave normalized Effect services repo-wide: inlined
*Shape interfaces into Context.Service classes, converted errors to
Schema.TaggedErrorClass, switched to namespace imports, and split
make + layer. Our branch keeps DesktopBackendPool + a per-instance
factory (upstream's singleton DesktopBackendManager service does not
exist in this tree).

Resolutions:
- DesktopBackendManager.ts: kept ours (factory model; upstream's
  singleton rewrite does not apply). Re-deleted the superseded
  single-instance DesktopBackendOutputLog.ts and its test.
- DesktopObservability / DesktopBackendConfiguration /
  DesktopLocalEnvironmentAuth / DesktopApp / DesktopWindow /
  DesktopAppSettings: adopted upstream's normalized structure (inline
  service shapes, TaggedErrorClass, make + layer, namespace imports,
  DesktopShutdown module, OTLP tracing) while preserving our WSL
  additions (per-instance log factory, pool-based bearer auth, splash
  and handleBackendReady(httpBaseUrl), WSL settings methods).
- client-runtime EnvironmentRegistry: namespace imports + kept our
  reconcilePlatform / registerPlatform / networkStatus.
- web primary environment: adopted upstream's Schema error classes;
  kept PRIMARY_LOCAL_ENVIRONMENT_ID and the plural
  getLocalEnvironmentBootstraps path.
- Tests: applied the repo-wide *Shape to X["Service"] removal across
  desktop tests; converted singular getLocalEnvironmentBootstrap stubs
  to our plural form; refreshed DesktopAppSettings stubs with the WSL
  methods; restored our factory-based DesktopBackendManager test.

Verified: desktop + web + client-runtime typecheck clean; affected
desktop + web tests pass. The 15 remaining desktop test failures are
pre-existing Windows-only path-separator assertions (forward vs back
slash) and pass on the Linux CI.
2026-06-21 11:52:55 -04:00
Julius Marmingeandcodex e4a84a348e [codex] Structure release output failures (#3470)
Co-authored-by: codex <[email protected]>
2026-06-20 19:20:01 -07:00
Julius Marmingeandcodex 8c2d33abde [codex] Structure release package updater failures (#3468)
Co-authored-by: codex <[email protected]>
2026-06-20 19:09:02 -07:00
Julius Marmingeandcodex 60dc4af916 [codex] Structure desktop build script failures (#3452)
Co-authored-by: codex <[email protected]>
2026-06-20 18:58:22 -07:00
Julius Marmingeandcodex 6fc79737c3 [codex] Structure mobile native static-check failures (#3464)
Co-authored-by: codex <[email protected]>
2026-06-20 18:58:16 -07:00
Julius Marmingeandcodex cdd03591ef [codex] Structure release metadata failures (#3467)
Co-authored-by: codex <[email protected]>
2026-06-20 18:58:13 -07:00
Julius Marmingeandcodex 9243ead1c3 [codex] Preserve Linux icon resize fallback failures (#3447)
Co-authored-by: codex <[email protected]>
2026-06-20 17:09:11 -07:00
Julius Marmingeandcodex f1052dd8b1 [codex] Structure Discord release webhook failures (#3285)
Co-authored-by: codex <[email protected]>
2026-06-20 12:09:34 -07:00
Julius Marmingeandcodex f50a7cddc1 [codex] Structure dev-runner failures (#3283)
Co-authored-by: codex <[email protected]>
2026-06-20 11:58:24 -07:00
Julius Marmingeandcodex 97487d9959 [codex] Structure reference repo sync failures (#3281)
Co-authored-by: codex <[email protected]>
2026-06-20 11:57:48 -07:00
Julius Marmingeandcodex 7eb7b4f4a3 [codex] Structure release metadata failures (#3296)
Co-authored-by: codex <[email protected]>
2026-06-20 11:31:09 -07:00
Julius Marmingeandcodex 40d14647db [codex] Structure catalog dependency resolution failures (#3298)
Co-authored-by: codex <[email protected]>
2026-06-20 11:01:36 -07:00
Julius Marmingeandcodex 20734d4a78 [codex] Structure macOS passkey signing failures (#3303)
Co-authored-by: codex <[email protected]>
2026-06-20 10:41:13 -07:00
Julius Marmingeandcodex 86db35ca61 [codex] Structure mobile native static-check failures (#3302)
Co-authored-by: codex <[email protected]>
2026-06-20 10:40:55 -07:00
Julius Marmingeandcodex 2fa37ec183 [codex] Enforce canonical Node namespace imports (#3238)
Co-authored-by: codex <[email protected]>
2026-06-20 01:06:37 -07:00
Josh Gratton bb6fafc16a Merge upstream/main into josh/desktop-wsl-parallel-backends (auth migration)
Brings in upstream's desktop-auth to Clerk-bridge migration (#3092) plus 9 other
commits. Resolution preserves the WSL parallel-backends work while adopting the
new primary-auth flow.

Contracts / IPC: keep our plural getLocalEnvironmentBootstraps; add upstream's
new getLocalEnvironmentBearerToken (primary bearer token) across the bridge,
preload, and the IPC channel / method / handlers.

Desktop:
- DesktopLocalEnvironmentAuth (upstream's new primary-auth service) now reads the
  primary instance from our DesktopBackendPool instead of the removed legacy
  DesktopBackendManager.
- main.ts composes both our WSL backend layer and the new local-environment-auth
  and Clerk layers.
- DesktopWindow adopts upstream's local-client window loading (getDesktopUrl /
  t3:// scheme) rather than loading the backend URL, dropping the now-obsolete
  backend-URL plumbing. The "Connecting to WSL" splash is kept, re-pointed onto
  the existing backend-ready latch (upstream's DesktopState.backendReady addition
  did not land in this merge; the backend pool drives readiness through
  handleBackendReady / handleBackendNotReady).

Web: keep our Layer.effect platform source (primary plus WSL secondaries); the
primary now authenticates via upstream's primaryEnvironmentHttpLayer and the
secondaries via FetchHttpClient.

Verified: typecheck (web, desktop), web tests (connection / provider /
authBootstrap / desktopAuth), desktop tests (DesktopWindow splash,
DesktopLocalEnvironmentAuth), and lint all pass.
2026-06-19 17:17:17 -04:00
Julius Marmingeandcodex 3e01c4bc57 Migrate desktop auth to Clerk bridge (#3092)
Co-authored-by: codex <[email protected]>
2026-06-19 10:28:28 -07:00
Josh Gratton 6fbe6aa624 desktop build: also stage the Linux fff binary for the WSL backend
Same class as the ffi-rs fix. The WSL (Linux x64) backend loads fff's
native binary (through ffi-rs / fff-node), but resolveFffNativeDependencies
only promotes the host platform's fff binary (win32) to a direct staged
dep, so @ff-labs/fff-bin-linux-x64-gnu never shipped in the artifact. The
backend connects fine because fff loads lazily, but file-finding in WSL
would fail to load the missing binary.

For Windows builds, also promote the Linux x64 fff binaries (gnu + musl)
alongside the host's, reusing resolveFffNativeDependencies("linux", "x64").
2026-06-16 14:22:08 -04:00
Josh Gratton 59ee5c177f desktop build: stage Linux native optional deps for the WSL backend
Windows artifacts also ship the WSL (Linux x64) backend, which loads
Linux-native optional dependencies at runtime -- e.g. ffi-rs's
@yuuang/ffi-rs-linux-x64-gnu. The staged production install set pnpm's
supportedArchitectures to the host platform only (win32/x64), so just the
Windows bindings were fetched. The WSL backend then crash-looped on
require ("Cannot find module '@yuuang/ffi-rs-linux-x64-gnu'") and never
bound its port, surfacing in the app as "Couldn't connect WSL".

For Windows builds, extend supportedArchitectures to also include
linux/x64/glibc so the staged install pulls the Linux optional deps
alongside the Windows ones. Confirmed pnpm then fetches
@yuuang/ffi-rs-linux-x64-gnu into the staged tree.
2026-06-16 14:07:01 -04:00
Josh Gratton 42e863ab74 Merge remote-tracking branch 'upstream/main' into josh/desktop-wsl-parallel-backends
Resolve scripts/build-desktop-artifact.ts: keep both our WSL node-pty
prebuild staging (decodeNodePtyManifest) and upstream's fff native binary
staging (encodeStageWorkspaceConfig / DESKTOP_ASAR_UNPACK), and collapse
the duplicated asarUnpack key the merge left behind into a single entry
that unpacks the fff native binaries, the server bundle, and the full
node_modules tree.
2026-06-16 12:43:52 -04:00
Julius Marmingeandcodex 689a882045 [codex] Add native mobile composer and markdown (#3101)
Co-authored-by: codex <[email protected]>
2026-06-16 09:31:57 -07:00
Julius Marminge 85fe62d402 Stage fff native binaries in desktop builds (#3109) 2026-06-16 09:12:32 -07:00
Julius Marmingeandcodex 708d5383a9 [codex] Trace first-party relay clients (#2995)
Co-authored-by: codex <[email protected]>
2026-06-16 00:11:29 -07:00
Julius Marminge de8bdc10fa Add workspace file browser and preview panel (#3087) 2026-06-15 14:17:07 -07:00
Josh Gratton 8fc1a5df81 Merge remote-tracking branch 'upstream/main' into josh/desktop-wsl-parallel-backends
# Conflicts:
#	scripts/build-desktop-artifact.ts
2026-06-15 11:00:50 -04:00
477795697d refactor: resolve host process state through Effect (#2959)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: codex <[email protected]>
Co-authored-by: Claude Opus 4.8 <[email protected]>
2026-06-14 16:47:56 -07:00
Josh Gratton bbb7ba7b07 fix(desktop): unpack the full node_modules tree for the WSL backend
The WSL backend launches the server with the distro's own Linux Node, which
can't read inside app.asar. asarUnpack only covered the server bundle and
node-pty, but bin.mjs externalizes its runtime dependencies (effect, @effect/*,
...) to node_modules rather than inlining them. So the Linux Node crashed with
ERR_MODULE_NOT_FOUND ("Cannot find package 'effect'") before it even reached
node-pty, which left WSL-only mode unable to launch (the node-pty preflight had
already passed, so there was no Windows fallback).

Unpack the whole node_modules tree so every server import resolves on the real
filesystem. The Windows primary keeps reading the same files through the asar
via ELECTRON_RUN_AS_NODE, so there's no duplication.
2026-06-12 14:22:24 -04:00
Josh Gratton da782dadd8 fix(desktop): ship a prebuilt Linux node-pty for the packaged WSL backend
In packaged builds the server bundle and node-pty were sealed inside app.asar,
which the WSL backend's Linux Node cannot read, so the WSL backend never started
in release builds. It dead-ended on a misleading "node-pty not prepared / run
prepare:wsl" error. node-pty also publishes no Linux prebuilt, and the Windows
artifact is built on a Windows CI runner that cannot compile one.

- asarUnpack the server bundle and node-pty, and point the WSL backend at the
  app.asar.unpacked sibling. The Windows primary still reads app.asar via
  ELECTRON_RUN_AS_NODE, so it is unaffected and there is no payload duplication.
- Build the Linux pty.node in a dedicated Linux CI job and hand it to the
  Windows packaging job as an artifact. build-desktop-artifact stages it into
  node-pty/prebuilds/linux-<arch>/ with a marker, so the packaged app ships a
  ready binary and needs no compiler, node-gyp, or network on first launch.
- node-pty is N-API, so one Linux binary works across all WSL Node versions;
  drop the modules ABI comparison from the preflight probe accordingly.
- Runtime compile is now dev-only (allowBuild: !isPackaged). In packaged builds
  a prebuilt that cannot load surfaces a clear arch/distro diagnostic instead of
  nagging for build tools or silently compiling.
2026-06-10 20:44:48 -04:00
Julius Marmingeandcodex 0e4a43519f [codex] Extract infrastructure, telemetry, and test tooling (#2994)
Co-authored-by: codex <[email protected]>
2026-06-07 20:21:47 -07:00
Julius Marminge 9da430c828 Refactor recoverable Effect fallbacks to orElseSucceed (#2968) 2026-06-05 05:47:56 +00:00
Julius Marminge f60def2054 Migrate tests to vite-plus test APIs (#2964) 2026-06-05 04:39:19 +00: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 Marmingeandcodex a6edad1974 [codex] Filter staged desktop patched dependencies (#2945)
Co-authored-by: codex <[email protected]>
2026-06-03 23:47:20 -07:00
Julius Marmingeandcodex 203f58e456 [codex] Fix desktop packaging patched dependencies (#2944)
Co-authored-by: codex <[email protected]>
2026-06-04 06:34:21 +00:00
Julius MarmingeandJulius Marminge 80b40ce96a [codex] fix mobile native static analysis source discovery (#2942)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-03 23:13:01 -07:00
Julius MarmingeandJulius Marminge 4c262c4b4e [codex] split ci workflow jobs (#2940)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-03 22:57:42 -07:00
Julius MarmingeandJulius Marminge 37bf0f0d1d [codex] remove duplicated pnpm root config (#2939)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-04 05:34:23 +00:00
Julius MarmingeandJulius Marminge 6a1c4da528 fix(release): use workspace electron-builder for desktop packaging (#2938)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-03 22:15:15 -07:00
Julius MarmingeandJulius Marminge 1288909b66 fix(release): surface desktop packaging subprocess output (#2937)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-03 20:47:20 -07:00
b440dd1812 Migrate workspace to Vite+ and pnpm (#2899)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Cursor Agent <[email protected]>
2026-06-03 16:16:53 -07:00
Mike Olson f0116e44b6 fix(desktop): Include standard Linux AppImage icons for Niri/Noctalia (#2915) 2026-06-02 20:38:29 -07:00
Julius Marmingeandcodex bd851c0203 chore: add Alchemy reference repo subtree (#2918)
Co-authored-by: codex <[email protected]>
2026-06-03 00:08:31 +00:00
Julius Marmingeandcodex e3f1405884 chore: add vendored reference repo subtree sync tooling (#2902)
Co-authored-by: codex <[email protected]>
2026-06-01 21:44:23 -07:00
b3e8c0334b T3 Code Mobile [WIP] (#2013)
Co-authored-by: codex <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
2026-05-29 17:00:54 -07:00
Julius Marminge 6b3050ee74 Migrate TypeScript checks to Effect TSGo (#2851) 2026-05-28 15:59:42 -07:00
Julius Marmingeandcodex e6330ead82 [codex] Bump Effect to beta.73 and migrate compatibility APIs (#2840)
Co-authored-by: codex <[email protected]>
2026-05-28 11:13:50 -07:00
Julius Marminge ea20e80021 Exclude workspace packages from desktop runtime deps (#2688) 2026-05-14 07:32:48 +00:00
Julius MarmingeandJulius Marminge 3c32bc8fd1 [codex] Fix hosted channel bootstrap (#2613)
Co-authored-by: Julius Marminge <[email protected]>
2026-05-08 22:57:16 -07:00