Wake iso's display for hands calls while it sleeps
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user