Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

ReminderRouter and TaskGovernance: readFileSync("/dev/stdin") throws ENXIO under Claude Code, so both hooks never run

Open corobis opened this issue 2 months ago • 1 comments

hooks/ReminderRouter.hook.ts and hooks/TaskGovernance.hook.ts read stdin with readFileSync("/dev/stdin", "utf-8"). Claude Code hands hooks a socket, and the read throws ENXIO. ReminderRouter catches it and exits 0, so it never fires and never says why.

Fix: JSON.parse(await Bun.stdin.text()).

Environment: Linux (WSL2), Bun, Claude Code 2.1.278.

corobis avatar Sep 20 '26 16:09 corobis

Thanks @corobis. Both hooks have since been retired: TaskGovernance had no remaining consumers, and ReminderRouter launched a process on every prompt for a job a skill already covers. On upgrade, the installer's retirement list moves both aside, so the /dev/stdin read goes with them.

danielmiessler avatar Oct 03 '26 04:10 danielmiessler