v0.18.1 — Project Switch Performance Fix
Changes
⚡ Performance
- Async file listing — converted synchronous
readdirSynccalls to asyncfs.promises.readdirwith periodic event-loop yielding every 25 directories, preventing main-process freezes on large projects - Single recursive watcher — replaced per-directory watcher swarm (up to 5,000 individual
fs.watchhandles) with a singlefs.watch(cwd, { recursive: true })per project, leveraging native FSEvents (macOS) and ReadDirectoryChangesW (Windows) for near-zero overhead - Lazy panel loading — Project Files panel now skips all file fetching and watcher setup when the panel is not visible, avoiding unnecessary I/O during project switching
📦 Dependencies
- SDK bump to
@anthropic-ai/claude-agent-sdk0.2.72
Full Changelog: v0.18.0...v0.18.1