Skip to main content

Module policy

Module policy 

Source
Expand description

Maps a SandboxMode to a concrete SandboxPolicy instance.

Functionsยง

build_mode_catalog
All sandbox modes in a fixed display order (read-only โ†’ ask-writes โ†’ open โ†’ deny-all). current marks the currently selected item, mapping to the ACP SessionModeState.
build_policy
Selects the policy implementation based on [sandbox].mode.