Bug Fixes
Hook Framework JSON Status Output (#655)
Fixed an issue where the worker service startup wasn't producing proper JSON status output for the Claude Code hook framework. This caused hooks to appear stuck or unresponsive during worker initialization.
Changes:
- Added
buildStatusOutput()function for generating structured JSON status output - Worker now outputs JSON with
status,message, andcontinuefields on stdout - Proper exit code 0 ensures Windows Terminal compatibility (no tab accumulation)
continue: trueflag ensures Claude Code continues processing after hook execution
Technical Details:
- Extracted status output generation into a pure, testable function
- Added comprehensive test coverage in
tests/infrastructure/worker-json-status.test.ts - 23 passing tests covering unit, CLI integration, and hook framework compatibility
Housekeeping
- Removed obsolete error handling baseline file