Skip to content

Support WSL Codex launch homes - #4318

Merged
Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/codex-wsl-launch-homes
May 31, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/codex-wsl-launch-homes

Conversation

@Jinwoo-H

Copy link
Copy Markdown
Contributor

Summary

  • Add WSL-scoped Codex launch homes so each WSL account/system selection gets isolated auth while sharing the per-distro Orca Codex runtime state.
  • Use WSL-side symlink/readlink/test/rm commands for \\wsl.localhost launch homes, avoiding Windows UNC symlink failures.
  • Preserve WSL token refreshes from selected launch homes across app restarts and system-default -> managed-account switches.
  • Clean up WSL account launch homes on account removal and add WSL PTY coverage for Linux CODEX_HOME/WSLENV propagation.

Validation

  • pnpm exec vitest run --config config/vitest.config.ts src/main/codex-accounts/runtime-home-service.test.ts
  • pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/pty.test.ts -t "WSL Codex homes|wsl.exe|CODEX_HOME"
  • pnpm exec vitest run --config config/vitest.config.ts src/main/codex/codex-home-paths.test.ts src/main/rate-limits/service.test.ts src/main/rate-limits/codex-fetcher.test.ts -t "Codex home|WSL|wsl"
  • pnpm exec vitest run --config config/vitest.config.ts src/main/providers/local-pty-provider.test.ts -t "WSL|CODEX_HOME|wsl.exe"
  • pnpm exec vitest run --config config/vitest.config.ts src/main/daemon/pty-subprocess.test.ts -t "WSL|CODEX_HOME|wsl.exe"
  • pnpm run tc:node
  • pnpm run tc:cli
  • pnpm run tc:web
  • pnpm exec oxlint src/main/codex-accounts/runtime-home-service.ts src/main/codex-accounts/runtime-home-service.test.ts src/main/codex/codex-launch-home-paths.ts src/main/ipc/pty.ts src/main/ipc/pty.test.ts src/main/codex-accounts/service.ts
  • git diff --check
  • Real WSL smoke on Ubuntu: created shared config/sessions, linked them into a launch home with wsl.exe ln -s, verified test -e, test -L, readlink, and cleanup.

Notes

  • Full src/main/ipc/pty.test.ts still has unrelated Windows-host POSIX fixture failures in this environment; the WSL/CODEX_HOME focused cases pass.

@Jinwoo-H
Jinwoo-H merged commit c05cc31 into main May 31, 2026
2 checks passed
@Jinwoo-H
Jinwoo-H deleted the Jinwoo-H/codex-wsl-launch-homes branch May 31, 2026 21:29
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant