Repository navigation
v0.5.0 — Robust npx CWD handling
Fixes & Enhancements
- Fix: OpenCode now correctly uses the directory where
npx squid-chatwas run as its working directory (restoredprocess.chdirbefore spawning the OpenCode server — the SDK doesn't supportcwdoption) - Validate: Target directory existence and read permissions checked before starting
- Binary check: Verifies OpenCode binary is executable; auto-redownloads if not
- Cleaner shutdown: Uses
AbortSignalfor the OpenCode server process lifecycle - Port check: Fixed to properly await the test server close callback
- State tracking: Runtime state now records
cwdfor diagnostics - Cleanup: State files are now properly deleted (
unlink) instead of written with empty content
Full Changelog: v0.4.9...v0.5.0