Incident report: runaway file descriptors on Cursor globalStorage/state.vscdb (SpecStory extension 1.0.4)
Tracking issue: specstoryai/getspecstory#208 — [EXTENSION/CLI] CPU spikes issue (Cursor). Reports in that thread match what we see: extreme memory and CPU, many specstory_darwin_arm64 processes, and heavy system load. This document adds independent evidence on extension 1.0.4: hundreds of duplicate FDs on Cursor globalStorage/state.vscdb and -wal, FD counts that grow during short polls, and a multi-process breakdown (extension-host lineage vs orphans). Discussion belongs in #208; this gist is a companion attachment for that issue.
- What’s going wrong: Under Cursor,
specstory_darwin_arm64 watchcan hold hundreds of duplicate open file descriptors on~/Library/Application Support/Cursor/User/globalStorage/state.vscdbandstate.vscdb-wal, and those counts **creep upward over sho