The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): Python ticket bridge tolerates and forwards the endpoint's control_home
teknium16425c33d4f2c
diff --git a/apps/desktop/electron/local-gateway-python.ts b/apps/desktop/electron/local-gateway-python.tsindex 0027d10dfc2..beaa766c9da 100644--- a/apps/desktop/electron/local-gateway-python.ts+++ b/apps/desktop/electron/local-gateway-python.ts@@ -6,6 +6,8 @@ interface TicketEndpoint {profile_id: stringinstance_id: stringruntime_protocol: number+ /** Multiplexer home whose control socket mints tickets for a served secondary. */+ control_home?: string | null}// Reuse the runtime's SID-validated, deadline-bounded pipe client. No Node pipe@@ -16,7 +18,7 @@ from pathlib import Pathfrom types import SimpleNamespacefrom hermes_cli.gateway_client import _session_ticketrequest = json.loads(sys.stdin.buffer.read(65537))-endpoint = SimpleNamespace(**request['endpoint'])+endpoint = SimpleNamespace(control_home=None, **request['endpoint'])home = Path(endpoint.profile_id)if str(home.resolve()) != endpoint.profile_id or endpoint.runtime_protocol != 1:raise ValueError('invalid ticket endpoint')