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
{{ message }}
Repository navigation
Commit 8f2ff58
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/crates/execution/tool-contracts/src/computer_use_geometry.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ impl CaptureGeometry {
129
129
&& y.checked_add(height)
130
130
.is_some_and(|bottom| bottom <= top + content_height);
131
131
if !inside {
132
-
returnErr("[INVALID_COORDINATES] Region must be a nonempty rectangle inside the captured image content".into());
132
+
returnErr(format!("[INVALID_COORDINATES] Region must be a nonempty rectangle inside the captured image content: requested x={x} y={y} width={width} height={height}; content is x={left} y={top} width={content_width} height={content_height}"));
133
133
}
134
134
let scale_x = self.bounds[2] / f64::from(content_width);
135
135
let scale_y = self.bounds[3] / f64::from(content_height);
returnErr(OpenBitFunError::tool(format!("TARGET_COORDINATES_OUTSIDE_WINDOW: Text field idx={idx} is not visible in the window; no click was sent. Scroll it into view and observe again")));
217
+
}
218
+
Ok(())
219
+
}
220
+
221
+
/// Remember the field a real click just focused, so a later focus request on
222
+
/// it does not click again and lose the caret or selection.
Copy file name to clipboardExpand all lines: src/crates/services/computer-use/src/computer_use/desktop_host/observation.rs
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
//! Observation lifecycle shared by AX, UIA and AT-SPI providers.
2
2
usesuper::*;
3
3
4
+
constUNPAINTED_WINDOW_NOTE:&str = "[note] WINDOW_NOT_REPAINTED: The window image is identical to the previous observation although the accessibility tree changed. The application may not have repainted this window, which is common for covered Chromium and Electron windows, or the change may not be visible. Use the tree for the current state; the image does not show whether the input took effect.\n";
0 commit comments