Commit Graph
613 Commits
Author SHA1 Message Date
Josh Gratton 08a3f9f94a Merge upstream/main into josh/desktop-wsl-parallel-backends
Re-integrates the WSL parallel-backends renderer onto upstream's rewritten
connection/RPC architecture (#2978), which deleted the saved-env / environmentApi
/ serverState / wsConnectionState subsystem this branch was built on.

Core (packages/client-runtime/connection):
- Add dynamic platform-managed bearer environments: a PlatformConnectionRegistration
  union (Primary|Bearer) and registry.reconcilePlatform(set), which adds/removes
  platform-managed environments as the host topology changes and stashes the bearer
  credential. This models the dual-mode WSL secondary (separate loopback origin,
  bearer auth, dynamic port so it is rederived rather than persisted). The primary
  and the WSL-only primary keep the same-origin cookie path.

Web platform source (apps/web/src/connection/platform.ts):
- Emit the platform set from the plural getLocalEnvironmentBootstraps() IPC: the
  primary (cookie) plus each WSL backend (bearer via bootstrap-token exchange),
  polling and reconciling on toggle. Replaces the deleted 541-line reconciler.

Renderer re-home:
- Drop the old subsystem (environmentApi, rpc/serverState, rpc/wsConnectionState,
  environments/runtime/*, environments/local/*) and their tests.
- Re-home the Sidebar cold-boot indicator, the ConnectionsSettings WSL picker, and
  the multi-environment provider-update feature onto the new hooks (useEnvironments,
  serverEnvironment.updateProvider, the primaryServer* atoms). Desktop-local
  environments are identified by a BearerConnectionTarget with a "local:"
  connection id.
- Drop the inert swap-suppression surface superseded by parallel backends.

Verified: typecheck (web, desktop, client-runtime), connection / provider /
localApi / authBootstrap tests, and lint all pass.
2026-06-19 16:25:39 -04:00
Ishan 0651af92b8 fix(server): use bound host for MCP endpoint (#3114) 2026-06-18 20:41:14 -07:00
Julius Marminge 52a24c8902 Add origin-based worktree bootstrap option (#3157) 2026-06-18 20:39:52 -07:00
30034ecedc Add archived threads and mobile file viewer (#3155)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: codex <[email protected]>
2026-06-18 20:24:48 -07:00
Julius Marmingeandcodex e95b57dc26 [codex] Rewrite client connection architecture (#2978)
Co-authored-by: codex <[email protected]>
2026-06-18 13:10:32 -07:00
Andrew Forster 75b3b3c48a [codex] Make background VCS fetch non-interactive (#3133) 2026-06-17 22:49:09 +00:00
Julius Marminge a5efb7cb6b Parallelize VCS status refresh and status reads (#3112) 2026-06-16 10:54:00 -07:00
Julius Marminge 8f9911f79d Add DELETE-based MCP session termination (#3113) 2026-06-16 10:53:25 -07: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 708d5383a9 [codex] Trace first-party relay clients (#2995)
Co-authored-by: codex <[email protected]>
2026-06-16 00:11:29 -07:00
Julius Marminge d12da198ad Use fff for workspace search queries (#3099) 2026-06-16 00:02:03 -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 ba5d3c695e Merge remote-tracking branch 'upstream/main' into josh/desktop-wsl-parallel-backends
# Conflicts:
#	apps/desktop/src/ipc/DesktopIpcHandlers.ts
#	apps/desktop/src/window/DesktopWindow.ts
#	apps/web/src/components/Sidebar.tsx
2026-06-14 12:29:24 -04:00
Julius Marminge 85d5df6256 Unify browser asset preview routing
- Replace attachment and favicon routes with signed asset URLs
- Harden workspace and attachment asset resolution
- Update browser preview components and shared contracts
2026-06-13 22:18:37 -07:00
Julius Marminge d8fe3d72c8 Scope preview listeners and control sessions
- Tie preview and debugger listeners to Effect scopes
- Factor shared automation helpers for snapshot and input handling
- Improve cleanup for browser preview sessions and port scanning
2026-06-13 22:18:37 -07:00
Julius Marminge 3d9e8dea7d Refactor desktop preview IPC onto shared manager
- Move preview session and IPC wiring into the new preview module
- Tighten IPC validation with schema-based handlers
- Update preview asset paths and tests for the browser preview port
2026-06-13 22:18:37 -07:00
Julius Marminge f7c422d581 Refactor MCP services into top-level modules
- Move MCP session registry and preview broker out of `Layers/` and `Services/`
- Update imports, tests, and server wiring to use the new module layout
2026-06-13 22:18:37 -07:00
Julius Marminge dd739c880d Port browser preview annotations to desktop
- Add IPC and runtime plumbing for preview annotation theming
- Generate and ship annotation CSS for the desktop overlay
- Add pointer and artifact handling for browser preview interactions
2026-06-13 22:18:37 -07:00
Julius Marmingeandcodex 6c6740e381 Refine collaborative browser preview
Co-authored-by: codex <[email protected]>
2026-06-13 22:18:37 -07:00
Julius Marminge 29150b5736 Add shared MCP preview automation 2026-06-13 22:18:37 -07:00
Julius Marmingeandcodex 50bc18b208 fix(preview): declare RPC authorization scopes
Co-authored-by: codex <[email protected]>
2026-06-13 22:18:37 -07:00
Julius Marmingeandcodex 9b43123ba2 fix(preview): port browser preview to current main
Co-authored-by: codex <[email protected]>
2026-06-13 22:18:37 -07:00
Aiden Bai 52c77c1ec4 feat(preview): in-app browser preview panel
Adds a desktop-only browser preview that lives in the right panel slot
alongside plan/diff. Lets the user point an Electron <webview> at any
URL — typed into a chrome-style URL bar, clicked from the empty-state
list of detected localhost dev servers, or auto-opened by a project
script with `previewUrl` set. Single-tab per thread.

Server (Effect/Layers):
- PreviewManager: per-(thread, tab) session metadata via SynchronizedRef
  + PubSub<PreviewEvent>; survives WS reconnect via `list`/replay.
- PreviewPortScanner: lsof on macOS/Linux, TCP probe fallback on
  Windows; reference-counted polling so we only scan when subscribed.
- WS RPC + streams (`preview.open|navigate|refresh|close|list|reportStatus`,
  `subscribePreviewEvents`, `subscribeDiscoveredLocalServers`).

Desktop:
- PreviewViewManager owns Chromium WebContents per tab, mediates
  navigation/zoom/devtools/clear-storage. registerWebview gates by
  webContents.getType() === "webview" and host-window match.
- IPC channels for create/close/register/navigate/back/forward/refresh/
  zoom/hardReload/openDevTools/clearCookies/clearCache/getBrowserPartition.
- Forwards app-level shortcuts (mod+shift+J, mod+K, mod+,, mod+W) from
  the webview back to the main window.
- Persisted browser session partition (cookies, cache).

Web:
- PreviewPanel/PreviewView/PreviewWebview render the surface; chrome row
  with back/forward/refresh + URL input + Open-in-browser + 3-dot menu
  (Hard reload, DevTools, Zoom −/+/reset, Clear cookies/cache).
- usePreviewSession subscribes to server events; usePreviewBridge
  mirrors desktop state into the store and forwards Loading→Success/
  LoadFailed back to the server.
- previewStateStore: per-thread snapshot + desktopOverlay + recently-
  seen URLs (Zustand).
- rightPanelStore arbitrates plan vs. preview vs. diff; ChatView's
  toggles strip the `?diff=1` URL hint when switching to preview and
  vice versa so the panels are mutually exclusive.
- Top-nav Globe toggle in ChatHeader (desktop builds only) and a
  `mod+shift+J` keybinding routed via a typed previewActionBus.
- PreviewEmptyState lists detected localhost servers (scanner +
  configured project URLs + recently-seen) with live "listening" pulse.
- PreviewUnreachable: theme-aware port of Chromium's "site can't be
  reached" page.
- Resizable inline panel (RightPanelResizeHandle + useResizableWidth);
  width persists to localStorage on drag-end.
- Terminal link "Open in preview" context-menu integration for loopback
  URLs.

Contracts:
- preview.ts schemas (PreviewSessionSnapshot, PreviewNavStatus,
  PreviewEvent, RPC inputs/results, DiscoveredLocalServer).
- ProjectScript schema gains optional `previewUrl` + `autoOpenPreview`.
- New keybinding commands: preview.toggle/refresh/focusUrl/zoomIn/Out/
  resetZoom; new `when:` contexts `previewFocus` / `previewOpen`.

Shared:
- @t3tools/shared/preview: normalizePreviewUrl, isPreviewableUrl,
  isLoopbackHost, newPreviewTabId, LSOF_LOCAL_HOST_TOKENS.

Tests:
- contracts: schema decode tests for all preview events/snapshots/inputs.
- shared: URL normalization coverage.
- server: PreviewManager (open/navigate/reportStatus/refresh/close,
  multi-subscriber isolation, idempotency); PortScanner (lsof parsing
  including IPv6, TCP probe, reference-counted polling).
- web: previewStateStore (per-tab event application, dedupe,
  reconnect recovery); rightPanelStore arbitration.
2026-06-13 22:18:37 -07:00
Josh Gratton 6a03762c9c Merge remote-tracking branch 'upstream/main' into josh/desktop-wsl-parallel-backends 2026-06-13 20:37:23 -04:00
Josh Gratton 76bd75b9f0 fix(server): run provider update commands through the shell on Windows
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.
2026-06-13 10:50:55 -04:00
Mika CohenandJulius Marminge ae39bacf0e Handle non-resumable pending user input (#2766)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-12 02:13:34 +00:00
Julius MarmingeandJulius Marminge 1ea17026ee [codex] fix slow websocket shutdown (#2869)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-12 01:39:25 +00:00
Magnus Alexander StrømsengandJulius Marminge 7db034905b fix(git): disable external diff for patch output (#2553)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-11 18:18:13 -07:00
Julius MarmingeandClaude Fable 5 57f6bf7edb Fix turn fold proejctions (#3041)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-06-10 23:51:43 -07:00
Julius Marmingeandcodex 0baf1986e8 [codex] Reduce Git status polling churn (#3037)
Co-authored-by: codex <[email protected]>
2026-06-10 17:10:19 -07:00
Julius Marmingeandcodex ae7e88b0e0 [codex] Sync app-server protocol, service tiers, and provider startup (#3036)
Co-authored-by: codex <[email protected]>
2026-06-10 16:24:19 -07:00
Julius Marmingeandcodex 343061a053 Misc chrome polish: header badges, plan sidebar, diff panel, empty state (#3027)
Co-authored-by: codex <[email protected]>
2026-06-10 12:25:03 -07:00
Julius Marmingeandcodex 22f9f3058b [codex] Rebrand T3 Cloud as T3 Connect (#3011)
Co-authored-by: codex <[email protected]>
2026-06-09 12:25:02 -07:00
Josh Gratton 0bb1553690 Merge remote-tracking branch 'upstream/main' into josh/desktop-wsl-parallel-backends 2026-06-09 14:09:54 -04:00
Julius Marmingeandcodex de58ec8e24 Add Claude Fable 5 model (#3009)
Co-authored-by: codex <[email protected]>
2026-06-09 17:39:18 +00:00
Julius Marmingeandcodex 8e6f4229da [codex] Fix main CI Effect test runtimes (#3008)
Co-authored-by: codex <[email protected]>
2026-06-09 09:43:03 -07:00
Milosz JankiewiczandJulius Marminge 38ea6d483e feat(grok): add Grok CLI provider via ACP (#2809)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-09 09:28:40 -07: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
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
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
Josh Gratton adaa1839ed Merge remote-tracking branch 'upstream/main' into josh/desktop-wsl-parallel-backends 2026-06-05 13:43:46 -04: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
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 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