From 338704b6e8c22d3ec23599ceefc3512b1ef8c087 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 25 May 2025 21:50:37 -0400 Subject: [PATCH] add request ID to the args list --- app/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/client.py b/app/client.py index 6ea75f6..d68bf50 100644 --- a/app/client.py +++ b/app/client.py @@ -156,6 +156,11 @@ async def receive_commands(websocket): command_name = data.get("name") args = data.get("args", []) + # Check if there is a req ID, if so add it to the args + req_id = data.get("request_id", None) + if req_id: + args.append(req_id) + if command_name in command_handlers: print(f"Executing command: {command_name} with args {args}") # Execute the registered async function