hands test 2
This commit is contained in:
@@ -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] = []
|
||||
|
||||
Reference in New Issue
Block a user