mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-06 16:31:12 +08:00
Root cause: HTTP Keep-Alive connections kept event loop alive, preventing process.exit() from executing even after CLI_EXECUTION_COMPLETED event was sent. Fix: Add `agent: false` and `Connection: close` header to HTTP requests in notifyDashboard() and broadcastStreamEvent() functions. - agent: false - Creates new Agent per request instead of global Keep-Alive Agent - Connection: close - Tells server to close connection after response Fixes issue where `ccw cli --tool gemini` would complete execution but Bash command would hang indefinitely.