ApprovalMode enum
Session-wide approval posture.
- Inheritance
- Available extensions
Values
- alwaysAsk → const ApprovalMode
-
Prompt for every tool call, read-tier included.
- write → const ApprovalMode
-
Auto-allow read-tier calls; prompt for write- and exec-tier calls.
- yolo → const ApprovalMode
-
Auto-allow every call (critical
bashpatterns still prompt). - unattended → const ApprovalMode
-
Auto-allow every call, critical
bashpatterns included — the session NEVER blocks on an interactive prompt. For runs without a user present (overnight/automation); there is nobody to answer a prompt. CLI label (ApprovalModeLabel.label):autopilot(formerlyunattended).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- label → String
-
Available on ApprovalMode, provided by the ApprovalModeLabel extension
The stable lowercase label used in config files and slash commands.no setter - name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ApprovalMode> - A constant List of the values in this enum, in order of their declaration.