Expand description
Per-session permission state and the daemon-wide broker (#7948).
Why: an ask suspends a tool call inside a spawned task, while the answer
arrives on a JSON-RPC connection that knows only a session id. Both sides
need one shared rendezvous, and allow_for_session grants must live exactly
as long as the session that granted them.
What: SessionPermissions (pending requests plus remembered grants) and
PermissionBroker (session id -> SessionPermissions).
Test: permissions::tests::gate_tests, permissions::tests::protocol_tests.
Structs§
- Permission
Broker - The daemon-wide map of per-session permission state.
- Session
Permissions - One session’s live permission state.