Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

remove extra arg

Dillon DuPont667be22ee5e9
diff --git a/libs/computer-server/computer_server/diorama/macos.py b/libs/computer-server/computer_server/diorama/macos.py
index f5e77178a6..6ced04d722 100644
--- a/libs/computer-server/computer_server/diorama/macos.py
+++ b/libs/computer-server/computer_server/diorama/macos.py
@@ -19,10 +19,13 @@ class MacOSDioramaHandler(BaseDioramaHandler):
if not hasattr(interface, action):
return {"success": False, "error": f"Unknown diorama action: {action}"}
method = getattr(interface, action)
+ # Remove app_list from arguments before calling the method
+ filtered_arguments = dict(arguments)
+ filtered_arguments.pop("app_list", None)
if inspect.iscoroutinefunction(method):
- result = await method(**(arguments or {}))
+ result = await method(**(filtered_arguments or {}))
else:
- result = method(**(arguments or {}))
+ result = method(**(filtered_arguments or {}))
return {"success": True, "result": result}
except Exception as e:
import traceback