Repository navigation
Commit d23e403
committed
fix(desktop): give the page back to the user mid-action
- A browser action now rechecks, right before each input it sends, whether the
user is working in the page. Between a batch's steps or during a click's
target probes, the user wins and the action stops before its next input.
- The wait for the user is bounded inside the action's own deadline. A user
who keeps working gets the model a clear "not run" instead of a timeout with
an unknown outcome.
- The user's activity belongs to the tab they acted in. Once the agent drives
another tab (the old one closed or replaced, the session reopened), that
activity no longer holds anything up.
- `createSleepBlocker` is documented.1 parent d3f9599 commit d23e403
4 files changed
Lines changed: 97 additions & 20 deletions
File tree
- apps/desktop
- e2e
- src/main
- browser-agent
- desktop-executor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
772 | 810 | | |
773 | 811 | | |
774 | 812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5096 | 5096 | | |
5097 | 5097 | | |
5098 | 5098 | | |
| 5099 | + | |
| 5100 | + | |
| 5101 | + | |
| 5102 | + | |
| 5103 | + | |
| 5104 | + | |
5099 | 5105 | | |
5100 | 5106 | | |
5101 | 5107 | | |
| |||
5107 | 5113 | | |
5108 | 5114 | | |
5109 | 5115 | | |
5110 | | - | |
| 5116 | + | |
| 5117 | + | |
| 5118 | + | |
| 5119 | + | |
| 5120 | + | |
5111 | 5121 | | |
5112 | 5122 | | |
5113 | | - | |
5114 | | - | |
5115 | | - | |
| 5123 | + | |
| 5124 | + | |
| 5125 | + | |
| 5126 | + | |
| 5127 | + | |
| 5128 | + | |
| 5129 | + | |
| 5130 | + | |
| 5131 | + | |
| 5132 | + | |
| 5133 | + | |
5116 | 5134 | | |
5117 | | - | |
5118 | 5135 | | |
5119 | 5136 | | |
5120 | 5137 | | |
| |||
5214 | 5231 | | |
5215 | 5232 | | |
5216 | 5233 | | |
5217 | | - | |
5218 | | - | |
| 5234 | + | |
| 5235 | + | |
| 5236 | + | |
| 5237 | + | |
| 5238 | + | |
| 5239 | + | |
| 5240 | + | |
| 5241 | + | |
| 5242 | + | |
| 5243 | + | |
5219 | 5244 | | |
5220 | 5245 | | |
5221 | 5246 | | |
5222 | 5247 | | |
5223 | 5248 | | |
5224 | 5249 | | |
5225 | | - | |
5226 | 5250 | | |
| 5251 | + | |
| 5252 | + | |
5227 | 5253 | | |
5228 | 5254 | | |
5229 | 5255 | | |
5230 | 5256 | | |
| 5257 | + | |
| 5258 | + | |
| 5259 | + | |
5231 | 5260 | | |
5232 | 5261 | | |
5233 | 5262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
| |||
321 | 324 | | |
322 | 325 | | |
323 | 326 | | |
324 | | - | |
| 327 | + | |
325 | 328 | | |
326 | 329 | | |
327 | 330 | | |
| |||
2371 | 2374 | | |
2372 | 2375 | | |
2373 | 2376 | | |
2374 | | - | |
| 2377 | + | |
2375 | 2378 | | |
2376 | 2379 | | |
2377 | 2380 | | |
| |||
2491 | 2494 | | |
2492 | 2495 | | |
2493 | 2496 | | |
2494 | | - | |
| 2497 | + | |
| 2498 | + | |
2495 | 2499 | | |
2496 | | - | |
| 2500 | + | |
2497 | 2501 | | |
2498 | 2502 | | |
2499 | 2503 | | |
| |||
3129 | 3133 | | |
3130 | 3134 | | |
3131 | 3135 | | |
3132 | | - | |
3133 | | - | |
| 3136 | + | |
| 3137 | + | |
3134 | 3138 | | |
3135 | 3139 | | |
3136 | | - | |
| 3140 | + | |
3137 | 3141 | | |
3138 | | - | |
3139 | | - | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
3140 | 3145 | | |
3141 | 3146 | | |
3142 | 3147 | | |
3143 | 3148 | | |
3144 | | - | |
| 3149 | + | |
3145 | 3150 | | |
3146 | 3151 | | |
3147 | 3152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
0 commit comments