orca icon indicating copy to clipboard operation
orca copied to clipboard

Fix Windows setup split terminal behavior

Open Jinwoo-H opened this issue 6 months ago • 0 comments

## Summary

  • make setup scripts default to a vertical split for fresh/missing settings while preserving existing persisted New Tab choices
  • 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.exe to 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.ts
  • pnpm 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.ts
  • pnpm exec tsgo --noEmit -p config/tsconfig.tc.web.json
  • pnpm exec tsgo --noEmit -p config/tsconfig.node.json
  • pnpm exec oxlint <touched files>
  • git diff --check
  • npx 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.

Jinwoo-H avatar May 17 '26 20:05 Jinwoo-H