mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 16:00:58 +00:00
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:
parent
3f29ce9cb6
commit
fdd4e24246
2 changed files with 5 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue