Skip to content

ToolApprovalScope

ToolApprovalScope = "once" | "session" | "always"

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:373

Persistence scope for an approve decision (spec §6):

  • once — run this single invocation only; remember nothing (the default).
  • session — remember this command, as an exact entry (§3.1), for the life of this runner instance, so the same command stops re-prompting. A longer variant of it still asks: the menu never widens, and breadth is something a human writes in a config file.
  • always — additionally persist that entry to the project store (.gsloth/.gsloth-settings/shell-allowlist.json) so it survives across runs.