macOS: log control responses

This commit is contained in:
Peter Steinberger
2025-12-09 02:41:18 +00:00
parent 8d8584849c
commit 76d559efc1

View File

@@ -331,6 +331,7 @@ actor AgentRPC {
guard let data = line.data(using: .utf8) else { return false }
guard let parsed = try? JSONDecoder().decode(ControlResponse.self, from: data) else { return false }
guard parsed.type == "control-response" else { return false }
self.logger.debug("control response parsed id=\(parsed.id, privacy: .public) ok=\(parsed.ok, privacy: .public)")
guard let waiter = self.controlWaiters.removeValue(forKey: parsed.id) else {
self.logger.debug("control response with no waiter id=\(parsed.id, privacy: .public)")
return true