Files
OmniRoute/tests
diegosouzapw 79a8411709 fix(providers): stop devin-cli spawn error from double-closing SSE controller (#12517)
child.on("error") was manually calling controller.close() without
setting the finished flag, so the subsequent child.on("close") event
for the same failed spawn saw finished=false and called finish() ->
emit() -> controller.enqueue() on an already-closed controller,
throwing an uncaughtException. Route the error handler through the
existing finish(msg) helper, which already guards on finished, so the
error still reaches the client as a sanitized SSE error event exactly
once.
2026-09-10 15:19:31 -03:00
..