Skip to content

The agent that grows with you

Merge remote-tracking branch 'origin/main' into ethie/pm-clean

ethernetc70129205f16
diff --cc tui_gateway/compute_host.py
index f649b97270e,6719c2189c1..72504d493f5
--- a/tui_gateway/compute_host.py
+++ b/tui_gateway/compute_host.py
@@@ -522,10 -522,14 +522,15 @@@ def _default_workers() -> int
def run_host(stdin: Any = None, stdout: Any = None) -> None:
os.environ["HERMES_COMPUTE_HOST_CHILD"] = "1"
- stdin = stdin or sys.stdin
+ # JSONL framing is byte-oriented; avoid text-stream read-ahead on Windows pipes.
+ stdin = stdin if stdin is not None else getattr(sys.stdin, "buffer", sys.stdin)
host = ComputeHost(stdout=stdout or sys.stdout)
shutting_down = threading.Event()
+ # No client is connected to this process: session-less broadcasts (``broadcast_plugin_event``
+ # from a plugin tool/hook running in the isolated turn) ride the host pipe to the parent
+ # gateway, which fans them out to its clients (compute_host_bridge._relay_compute_host_rpc).
+ from tui_gateway import server
+ server.register_live_transport(host._transport)
def _signal_handler(_signum, _frame) -> None:
if shutting_down.is_set():