Files
thedotmack__claude-mem/plugin/scripts/bun-runner.js
Alex Newman 75faf9ac17 fix: add error listener to child.stdin in bun-runner.js to prevent EPIPE crash (#3895) (#3976)
A write to the spawned bun child's stdin can race the child exiting,
producing an EPIPE. With no 'error' listener on the Socket, Node
re-throws it as an unhandled exception and crashes the hook wrapper.

Add a no-op error listener before the write block so the EPIPE is
silently absorbed — consistent with the script's existing exit-0-on-error
contract for hook failures.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Alex Newman <thedotmack@users.noreply.github.com>
2026-09-10 18:54:34 -07:00

9.7 KiB