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: