You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 Remove sync fs operations and path-finding from runtime (#447)
Eliminates blocking filesystem operations in the runtime layer and
removes unnecessary path-finding complexity.
## Changes
**Removed sync fs operations:**
- Replaced `fs.existsSync()` + `fs.mkdirSync()` with
`fsPromises.access()` + `fsPromises.mkdir()` in `LocalRuntime.ts`
- All filesystem operations in runtime are now async, preventing main
thread blocking
**Removed path-finding module:**
- Deleted `executablePaths.ts` (57 lines) that was checking hardcoded
paths for `bash` and `nice`
- Updated `LocalRuntime.ts` and `SSHRuntime.ts` to rely on system PATH
- Simplifies codebase by 74 lines total
## Verification
- ✅ TypeScript compilation passes
- ✅ All unit tests pass (same results as before)
- ✅ No sync fs operations remain in runtime files
_Generated with `cmux`_
0 commit comments