Commit 1b2ad9a
committed
feat(tarko): switch gui agent to percentage coordinates
Remove devicePixelRatio from screenshot metadata and return percentage
coordinates instead of absolute coordinates from browser operator.
Simplify BrowserControlRenderer to use percentage coordinates directly.
- Remove devicePixelRatio metadata from environment_input events
- Calculate percentage coordinates in browser operator execute method
- Update BrowserControlRenderer to use percentage positioning
- Remove unused getDevicePixelRatio method1 parent 97ef7ad commit 1b2ad9a
3 files changed
Lines changed: 27 additions & 61 deletions
File tree
- multimodal
- agent-tars/core/src/browser
- gui-agent/operator-browser/src
- tarko/agent-web-ui/src/standalone/workspace/renderers
Lines changed: 8 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | 199 | | |
201 | | - | |
| 200 | + | |
202 | 201 | | |
203 | 202 | | |
204 | 203 | | |
| |||
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
217 | | - | |
218 | | - | |
| 216 | + | |
219 | 217 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 218 | + | |
| 219 | + | |
224 | 220 | | |
225 | 221 | | |
226 | 222 | | |
| |||
247 | 243 | | |
248 | 244 | | |
249 | 245 | | |
250 | | - | |
| 246 | + | |
251 | 247 | | |
252 | 248 | | |
253 | 249 | | |
| |||
344 | 340 | | |
345 | 341 | | |
346 | 342 | | |
347 | | - | |
| 343 | + | |
348 | 344 | | |
349 | 345 | | |
350 | 346 | | |
| |||
405 | 401 | | |
406 | 402 | | |
407 | 403 | | |
408 | | - | |
409 | | - | |
| 404 | + | |
410 | 405 | | |
411 | 406 | | |
412 | 407 | | |
| |||
603 | 598 | | |
604 | 599 | | |
605 | 600 | | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
| 601 | + | |
619 | 602 | | |
620 | 603 | | |
621 | 604 | | |
| |||
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
300 | 304 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
305 | 308 | | |
306 | | - | |
| 309 | + | |
307 | 310 | | |
308 | 311 | | |
309 | 312 | | |
| |||
Lines changed: 11 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
67 | | - | |
| 65 | + | |
68 | 66 | | |
69 | 67 | | |
70 | | - | |
71 | | - | |
| 68 | + | |
| 69 | + | |
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
| |||
114 | 112 | | |
115 | 113 | | |
116 | 114 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | 115 | | |
127 | 116 | | |
128 | 117 | | |
| |||
137 | 126 | | |
138 | 127 | | |
139 | 128 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 129 | + | |
149 | 130 | | |
150 | 131 | | |
151 | 132 | | |
| |||
159 | 140 | | |
160 | 141 | | |
161 | 142 | | |
162 | | - | |
163 | 143 | | |
164 | 144 | | |
165 | 145 | | |
166 | | - | |
| 146 | + | |
167 | 147 | | |
168 | 148 | | |
169 | 149 | | |
170 | 150 | | |
171 | 151 | | |
172 | | - | |
173 | | - | |
| 152 | + | |
| 153 | + | |
174 | 154 | | |
175 | 155 | | |
176 | | - | |
177 | | - | |
| 156 | + | |
| 157 | + | |
178 | 158 | | |
179 | 159 | | |
180 | 160 | | |
181 | | - | |
182 | | - | |
| 161 | + | |
| 162 | + | |
183 | 163 | | |
184 | 164 | | |
185 | 165 | | |
| |||
0 commit comments