hands test 2

This commit is contained in:
Ian Gulliver
2026-10-17 23:11:31 -07:00
parent ccf8c551ec
commit 39ca42316f
5 changed files with 21 additions and 18 deletions
+5 -1
View File
@@ -139,8 +139,12 @@ func actTool(_ args: [String: Any]) async throws -> [Content] {
close(lock)
}
}
var before = 0
if !steps.isEmpty, let needle = args.string("wait_for") {
before = try windowMatches(w, needle)
}
var log = try await runSteps(steps, id, w, table)
if let note = try await waitFor(args, acted: !steps.isEmpty, { try windowText(w, contains: $0) }) {
if let note = try await waitFor(args, acted: !steps.isEmpty, { try windowMatches(w, $0) > before }) {
log.append(note)
}
var out: [Content] = []