From 71444bf21679ebd9bbf03fef163d8621962a2c3a Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 16 Oct 2026 14:24:53 +0400 Subject: [PATCH] refac --- terminals/routers/proxy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/terminals/routers/proxy.py b/terminals/routers/proxy.py index 7b2eb55..60afadd 100644 --- a/terminals/routers/proxy.py +++ b/terminals/routers/proxy.py @@ -658,7 +658,11 @@ async def _ws_proxy( try: async with upstream: - await upstream.send(json.dumps({"type": "auth", "token": instance.api_key})) + await upstream.send(json.dumps({ + "type": "auth", + "token": instance.api_key, + "chat_id": ws.headers.get("x-session-id", ""), + })) async def _client_to_upstream(): try: