Add run_on_client: agents run commands with files on the user's Macs

This commit is contained in:
Ian Gulliver
2026-10-17 14:41:04 -07:00
parent 14975d2ab8
commit fbc0699fdf
16 changed files with 928 additions and 249 deletions
+2 -1
View File
@@ -43,7 +43,7 @@ final class Notifier: NSObject, UNUserNotificationCenterDelegate {
private func wants(_ p: NotificationPrefs, _ item: InboxItem) -> Bool {
switch item.kind {
case .question: p.questions
case .question, .clientRun: p.questions
case .sessionError: p.errors
case .rateLimited: p.rateLimits
}
@@ -55,6 +55,7 @@ private func itemText(_ item: InboxItem) -> String {
case .question: return str(p, "question") ?? ""
case .sessionError: return "Error: \(str(p, "error") ?? "")"
case .rateLimited: return "Rate limited"
case .clientRun: return "Run on your Mac: \(str(p, "why") ?? "")"
}
}