permissions: remove macOS seatbelt extension profiles

This commit is contained in:
Michael Bolin
2026-03-26 16:00:02 -07:00
parent 5906c6a658
commit 9dfeb92eed
50 changed files with 149 additions and 2270 deletions
+2 -2
View File
@@ -1019,7 +1019,7 @@ the client can offer session-scoped and/or persistent approval choices.
### Permission requests
The built-in `request_permissions` tool sends an `item/permissions/requestApproval` JSON-RPC request to the client with the requested permission profile. This v2 payload mirrors the standalone tool's narrower permission shape, so it can request network access and additional filesystem access but does not include the broader `macos` branch used by command-execution `additionalPermissions`.
The built-in `request_permissions` tool sends an `item/permissions/requestApproval` JSON-RPC request to the client with the requested permission profile. This v2 payload mirrors the command-execution `additionalPermissions` shape: it can request network access and additional filesystem access.
```json
{
@@ -1055,7 +1055,7 @@ The client responds with `result.permissions`, which should be the granted subse
}
```
Only the granted subset matters on the wire. Any permissions omitted from `result.permissions` are treated as denied, including omitted nested keys inside `result.permissions.macos`, so a sparse response like `{ "permissions": { "macos": { "accessibility": true } } }` grants only accessibility. Any permissions not present in the original request are ignored by the server.
Only the granted subset matters on the wire. Any permissions omitted from `result.permissions` are treated as denied. Any permissions not present in the original request are ignored by the server.
Within the same turn, granted permissions are sticky: later shell-like tool calls can automatically reuse the granted subset without reissuing a separate permission request.
-3
View File
@@ -801,7 +801,6 @@ mod tests {
write: None,
},
),
macos: None,
},
),
proposed_execpolicy_amendment: None,
@@ -864,7 +863,6 @@ mod tests {
write: None,
},
),
macos: None,
},
),
proposed_execpolicy_amendment: None,
@@ -891,7 +889,6 @@ mod tests {
"read": [allowed_path],
"write": null,
},
"macos": null,
})
);
}