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.
This commit is contained in:
commit
08a3f9f94a
707 files changed
+48876
-55909
No files matched your search
@@ -60,52 +60,6 @@ jobs:
|
||||
- name: Test
|
||||
run: vp run test
|
||||
|
||||
test_browser:
|
||||
name: Test Browser
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Vite+
|
||||
uses: voidzero-dev/setup-vp@v1
|
||||
with:
|
||||
node-version-file: package.json
|
||||
cache: true
|
||||
run-install: true
|
||||
|
||||
- name: Cache Playwright browsers
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: ~/.cache/ms-playwright
|
||||
key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-playwright-
|
||||
|
||||
- name: Install browser test runtime
|
||||
run: vp run --filter @t3tools/web test:browser:install
|
||||
|
||||
- name: Browser test / Chat view
|
||||
working-directory: apps/web
|
||||
run: vp test run --mode browser --browser=chromium src/components/ChatView.browser.tsx
|
||||
|
||||
- name: Browser test / Chat markdown
|
||||
working-directory: apps/web
|
||||
run: vp test run --mode browser --browser=chromium src/components/ChatMarkdown.browser.tsx
|
||||
|
||||
- name: Browser test / Components
|
||||
working-directory: apps/web
|
||||
run: |
|
||||
vp test run --mode browser --browser=chromium \
|
||||
src/components/GitActionsControl.browser.tsx \
|
||||
src/components/KeybindingsToast.browser.tsx \
|
||||
src/components/ThreadTerminalDrawer.browser.tsx \
|
||||
src/components/chat/MessagesTimeline.browser.tsx \
|
||||
src/components/chat/ProviderModelPicker.browser.tsx \
|
||||
src/components/chat/CompactComposerControlsMenu.browser.tsx \
|
||||
src/components/settings/SettingsPanels.browser.tsx
|
||||
|
||||
mobile_native_static_analysis:
|
||||
name: Mobile Native Static Analysis
|
||||
runs-on: blacksmith-12vcpu-macos-26
|
||||
|
||||
Reference in new issue
Block a user