Wake iso's display for hands calls while it sleeps

This commit is contained in:
Ian Gulliver
2026-10-18 21:23:26 -07:00
parent 4347d4e9e4
commit 7728484e86
3 changed files with 45 additions and 1 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ struct Server {
return ["content": [Content.text("unknown tool: \(name)").json], "isError": true]
}
do {
let content = try await tool.run(args)
let content = try await withDisplayAwake { try await tool.run(args) }
return ["content": content.map { $0.json }]
} catch let e as ToolError {
return ["content": [Content.text(e.message).json], "isError": true]