Fix message routing by broadcasting to all providers and consumers
- Router was stopping propagation after first handler returned true - This prevented consumers from seeing messages that providers handled - executionConsumer never received execution-complete because ConsoleRuntimeProvider handled it first - Now all providers and consumers receive all messages - Fixes javascript_repl never completing
This commit is contained in:
@@ -166,13 +166,6 @@ export class ConsoleRuntimeProvider implements SandboxRuntimeProvider {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Don't handle execution-complete/error - let executionConsumer handle those
|
||||
// We just need to respond to allow the message to proceed
|
||||
if (message.type === "execution-complete" || message.type === "execution-error") {
|
||||
respond({ success: true });
|
||||
return false; // Don't stop propagation
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user