From 9f8cee8919e9354ce803bf2af3c975af98bce461 Mon Sep 17 00:00:00 2001 From: Simos Mikelatos Date: Fri, 19 Jun 2026 15:05:47 +0000 Subject: [PATCH] fix: restore macos semantic helper cast --- .../semantics/helpers/macos/CloudCLISemantics.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/modules/computer-use/semantics/helpers/macos/CloudCLISemantics.swift b/server/modules/computer-use/semantics/helpers/macos/CloudCLISemantics.swift index be435f9b..8b83f9ee 100644 --- a/server/modules/computer-use/semantics/helpers/macos/CloudCLISemantics.swift +++ b/server/modules/computer-use/semantics/helpers/macos/CloudCLISemantics.swift @@ -78,9 +78,8 @@ func bounds(_ element: AXUIElement) -> [String: Double]? { CFGetTypeID(sizeValue) == AXValueGetTypeID() else { return nil } - guard let positionAxValue = positionValue as? AXValue, - let sizeAxValue = sizeValue as? AXValue - else { return nil } + let positionAxValue = positionValue as! AXValue + let sizeAxValue = sizeValue as! AXValue guard AXValueGetValue(positionAxValue, .cgPoint, &point), AXValueGetValue(sizeAxValue, .cgSize, &size) else { return nil }