orca
orca copied to clipboard
Fix Windows setup split terminal behavior
## Summary
- make setup scripts default to a vertical split for fresh/missing settings while preserving existing persisted
New Tabchoices - handle late setup split payloads when the runtime has already mounted the startup terminal
- infer setup runner commands from the runner path so Windows clients do not send
cmd.exeto POSIX/SSH runner paths - share Windows terminal capability probing between settings and the terminal
+menu so WSL/PowerShell options stay consistent - add unit coverage and a Playwright Electron e2e that verifies Create Workspace renders one visible terminal tab with two split panes
Verification
pnpm vitest run --config config/vitest.config.ts src/main/persistence.test.ts -t "setup-script"pnpm vitest run --config config/vitest.config.ts src/main/runtime/orca-runtime.test.ts -t "does not pre-spawn setup as a standalone terminal|follows normal setup policy"pnpm vitest run --config config/vitest.config.ts src/renderer/src/lib/setup-runner.test.ts src/renderer/src/lib/worktree-activation.test.ts src/renderer/src/components/terminal-pane/TerminalPane.setup-split-late-queue.test.tsx src/renderer/src/components/terminal-pane/use-terminal-pane-lifecycle.test.tspnpm vitest run --config config/vitest.config.ts src/renderer/src/lib/windows-terminal-capabilities.test.ts src/renderer/src/components/tab-bar/TabBar.windows-shell-launch.test.ts src/renderer/src/components/tab-bar/TabBar.context-menu.test.ts src/renderer/src/components/settings/TerminalPane.pwsh.test.tspnpm exec tsgo --noEmit -p config/tsconfig.tc.web.jsonpnpm exec tsgo --noEmit -p config/tsconfig.node.jsonpnpm exec oxlint <touched files>git diff --checknpx electron-vite build --mode e2e$env:SKIP_BUILD='1'; pnpm exec playwright test tests/e2e/worktree.spec.ts --config tests/playwright.config.ts --project=electron-headless -g "creates setup as a split pane" --reporter=line
Note: local verification still reports the existing Node engine warning because this machine is on Node v25.9.0 while the repo wants Node 24.