You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixescorbt#12
Update `performAction` and `runAgent` functions to handle 'ctrl' and 'cmd' keys for Mac OS.
* **Key Mapping:**
- Add 'ctrl' and 'cmd' keys to the `keyMap` in `performAction` function.
- Map 'ctrl' to `Key.LeftControl` and 'cmd' to `Key.LeftSuper`.
* **Mac OS Specific Logic:**
- Add logic in `runAgent` function to replace 'ctrl' with 'cmd' for Mac OS.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/corbt/agent.exe/issues/12?shareId=XXXX-XXXX-XXXX-XXXX).
Environment:
Mac OS Sonoma 14.5
Firefox 131.0.3
Node 22.9.0
When trying to manipulate Firefox to open a new tab using
ACTION { type: 'key', text: 'ctrl+t' }
I get the error message:
UnhandledPromiseRejectionWarning: Error: Tried to press unknown key: ctrl
I told the agent it was running on a Mac and to replace actions with ctrl to cmd and it still failed with:
UnhandledPromiseRejectionWarning: Error: Tried to press unknown key: cmd
I don't have this problem when running in the Computer Use Demo (it correctly opens new tabs).
The text was updated successfully, but these errors were encountered: