Commit Graph
10 Commits
Author SHA1 Message Date
Cursor AgentandJulius Marminge 04ffe3b247 Fix processRunner exports, runtimeEnvironment leak, and null exit code message
- Remove unnecessary exports from processRunner.ts: toRuntimeCommandOptions,
  ManagedChildProcess, RuntimeCommandOptions, spawnPipedProcess,
  ProcessSpawnOptions, ProcessSpawnSyncOptions, killProcessTree
- Destructure runtimeEnvironment out of options in toRuntimeCommandOptions
  to prevent leaking it into ChildProcess.make
- Handle null exit code in detailFromResult to produce a clear message
  instead of 'Command exited with code null'

Co-authored-by: Julius Marminge <[email protected]>
2026-03-05 21:03:50 +00:00
Julius Marminge df5009c70b Handle null-exit and timeout failures in Codex and Git flows
- squash Effect causes to surface real Codex process error messages
- normalize Git process results to error on signal/null exit and keep details
- treat timed-out Codex health probes/auth checks as unavailable or warning with clear messages
- add tests for cause extraction, Git signal termination, and provider timeout paths
2026-03-05 11:44:07 -08:00
Julius Marmingeandcodex 4acb6e91ca Use Effect-managed Codex app-server process lifecycle
- Replace Node child process/readline handling with Effect streams and scoped handles
- Wire CodexAppServerManager to adapter services for runtime-managed execution
- Harden write/exit/stderr handling and close process scope on shutdown

Co-authored-by: codex <[email protected]>
2026-03-05 01:36:14 -08:00
Julius Marminge 45745a247a Improve Windows WSL process and editor/browser interop
- Centralize process spawning/termination in `processRunner` for consistent Windows behavior
- Add runtime environment detection to handle WSL-hosted command resolution
- Update open/editor/browser launch logic to prefer Linux shims and fall back to Windows executables
- Expand server tests for WSL launch paths and shared process helpers
2026-03-05 01:11:29 -08:00
julius 2ae63f4aa2 Fix shell: true side effects on Windows (orphaned processes, swallowed ENOENT)
Add tree-kill via taskkill /T /F in processRunner and codexAppServerManager so timeout enforcement and session stop properly terminate the entire process tree instead of just the cmd.exe wrapper. Detect Windows command not found (exit 9009) in normalizeExitError. Pre-validate editor commands with isCommandAvailable in open.ts before spawning. Fix ProviderHealth test import and dev-runner test path assertion for Windows.

Made-with: Cursor
2026-03-03 21:03:16 -08:00
julius 0a12333448 Fix Codex process spawning and health checks on Windows
- Run Codex-related child processes with `shell` on Windows for reliable command execution
- Switch provider auth probe to `codex login status` and update health-check expectations
- Use Node PTY on Windows instead of Bun PTY in server runtime setup
2026-03-03 21:03:16 -08:00
Julius Marminge c743239b5e fmt 2026-02-14 23:35:48 -08:00
Julius Marminge 6fc632f9a1 Harden git and terminal flows and surface open PR status
- include open PR metadata in git status with graceful `gh` failure handling
- centralize git command execution in `GitCoreService` via `runProcess` with truncation support
- add PTY spawn-helper permission fixes, shell fallback retries, and tests for new behavior
2026-02-12 11:15:11 -08:00
Julius Marmingeandcodex 533dbdfbda Address PR review feedback for git actions
Co-authored-by: codex <[email protected]>
2026-02-11 17:56:16 -08:00
Julius Marminge 39390c0b9a Add stacked git actions flow 2026-02-11 16:34:22 -08:00