Skip to content

v0.5.0 — Robust npx CWD handling

Choose a tag to compare

@drewsephski drewsephski released this 03 Jun 20:54
· 7 commits to main since this release

Fixes & Enhancements

  • Fix: OpenCode now correctly uses the directory where npx squid-chat was run as its working directory (restored process.chdir before spawning the OpenCode server — the SDK doesn't support cwd option)
  • Validate: Target directory existence and read permissions checked before starting
  • Binary check: Verifies OpenCode binary is executable; auto-redownloads if not
  • Cleaner shutdown: Uses AbortSignal for the OpenCode server process lifecycle
  • Port check: Fixed to properly await the test server close callback
  • State tracking: Runtime state now records cwd for diagnostics
  • Cleanup: State files are now properly deleted (unlink) instead of written with empty content

Full Changelog: v0.4.9...v0.5.0