A sandbox plugin needs to ask the user about a folder or a website from
the chat when its sandbox refuses one. The desktop's approval card only
knew dangerous commands: it said Run, promised a config.yaml allowlist,
and was cleared at turn end while the sandbox still waited.
The approval server request gains an optional kind. Absent or "command"
keeps today's card. "access" (path, read or read_write) and "network"
(host, optional label) render a folder or site card with the risk line
under it and three buttons: Deny, Always allow... (confirm dialog) and
Allow (until the sandbox is switched off). Deny takes an optional
reason, sent as `reason` on the answer and on the approval.respond
fallback.
- Contract: kind, path, access, host, label and risk on
ApprovalRequestParams; reason on ApprovalResult and approval.respond
(command approvals ignore it). Generated TS and OpenRPC regenerated.
- Turn-end clears keep folder and site cards; Stop, close and reclaim
still clear every kind. Only a command approval stands in for the
turn's tool rows.
- Pending-list replay and resume snapshots keep the kind fields.
- OS notifications say "Folder access needed" / "Website access needed"
and offer Allow / Deny.
- Copy in every locale. Each over-cap locale's approval block moves to
an <locale>_approval.ts sibling unchanged; key manifest regenerated.