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
🤖 Add Ghostty search paths and ban sync fs methods (#279)
Fixes Ghostty detection on macOS when installed via Homebrew or as an
app bundle.
## Changes
**Terminal Detection:**
- Check Ghostty in common macOS paths before falling back to PATH:
- `/opt/homebrew/bin/ghostty` (Homebrew)
- `/Applications/Ghostty.app/Contents/MacOS/ghostty` (App bundle)
- `/usr/local/bin/ghostty` (manual install)
- Use async `fs.stat()` with executable bit checking (`0o111`)
- Convert terminal detection to fully async operations
**ESLint Rule:**
- Add `local/no-sync-fs-methods` rule to ban sync filesystem operations
- Catches `statSync`, `readFileSync`, `existsSync`, etc.
- Provides helpful error messages with async alternatives
## Testing
Verify with:
```bash
make typecheck # ✅ Passes
make lint # Shows existing sync fs usage in other files
```
_Generated with `cmux`_
0 commit comments