Add run_on_client: agents run commands with files on the user's Macs
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user