From 55e360bfa62558f852e06d53c0bcfc2f97479eea Mon Sep 17 00:00:00 2001 From: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com> Date: Thu, 12 Nov 2026 03:02:35 +0000 Subject: [PATCH] docs(computer): say why text readback polls for async AX trees --- .../computer-use-macos/Sources/OrcaComputerUseMacOS/main.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/computer-use-macos/Sources/OrcaComputerUseMacOS/main.swift b/native/computer-use-macos/Sources/OrcaComputerUseMacOS/main.swift index 1c12d9c8b3f..f25b5e8b7c9 100644 --- a/native/computer-use-macos/Sources/OrcaComputerUseMacOS/main.swift +++ b/native/computer-use-macos/Sources/OrcaComputerUseMacOS/main.swift @@ -2977,7 +2977,7 @@ private enum TextInput { return nil } setSelectedTextRange(element, CFRange(location: startOffset + text.utf16.count, length: 0)) - // Why: a stale Chromium cache only ever shows the old value, so any other value is final. + // Why: a cached, out-of-process AX tree can show the old value for a moment; any other value is final. let readback = settledValueReadback(element) { next == current || ($0 as? String) != current } as? String guard readback == next else { // Why: typing the text as keys after a write that landed enters it twice, so only an unchanged field falls back.