The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(gateway): fanout transport uses the shared serialization guard too
teknium1532608db63b6
diff --git a/tui_gateway/transport.py b/tui_gateway/transport.pyindex 5b3820e5cd3..5051d6da51f 100644--- a/tui_gateway/transport.py+++ b/tui_gateway/transport.py@@ -237,8 +237,9 @@ class FanoutTransport:returndef write(self, obj: dict) -> bool:- # Freeze the queued frame so a caller cannot mutate it after admission.- encoded = json.dumps(obj, ensure_ascii=False)+ # Freeze the queued frame so a caller cannot mutate it after admission. Same serialization+ # guard as the single-peer transports: an unserializable frame reaches every peer as -32603.+ encoded = serialize_frame(obj, "fanout", logger)size = len(encoded.encode("utf-8", errors="surrogatepass"))frame = json.loads(encoded)with self._lock: