Commit cbff109
authored
update cua agents key & system prompt handling (#1125)
# why
currently, for openai cua agent, we are handling keypress actions
incorrectly
currently, there is no way to pass a custom system prompt to the Google
cua agent
# what changed
- All key actions, are now ran through mapKeyToPlaywright function to
ensure we are properly mapping the agents actions to valid playwright
keys
- Custom system prompts now override the default system prompt for
Google Cua agent
# test plan
tested locally with google & openai cua agents
Fixes #11221 parent 89f9237 commit cbff109
File tree
3 files changed
+14
-4
lines changed- .changeset
- lib
- agent
- handlers
3 files changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
206 | 210 | | |
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
210 | 214 | | |
211 | | - | |
212 | | - | |
213 | | - | |
| 215 | + | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
| |||
0 commit comments