mirror of
https://github.com/thedotmack/claude-mem.git
synced 2026-09-20 04:23:02 +08:00
75faf9ac17
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>
9.7 KiB
9.7 KiB