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
+4
View File
@@ -113,6 +113,10 @@ func CheckResponse(item api.InboxItem, c api.InboxResponseCreate) (api.InboxStat
return "", fmt.Errorf("%w: item %s: "+format, append([]any{ErrInvalid, item.Id}, args...)...)
}
if item.Kind == api.ClientRun && c.Type != api.Dismiss {
return bad("a run request is only dismissed here; runs are reported to /api/inbox/%s/runs", item.Id)
}
switch c.Type {
case api.Option:
if !question {