next_approval_mode(
current: ApprovalMode | str | object,
*,
auto_eligible: bool| Name | Type | Description |
|---|---|---|
current* | ApprovalMode | str | object | |
auto_eligible* | bool | |
yolo_switcher_enabled* | bool |
Return the next Shift+Tab approval mode for the active session.
The cycle is Manual → Auto → YOLO → Manual when both Auto and the YOLO
switcher entry are available. Auto is omitted when auto_eligible is false
(for example a remote sandbox). YOLO is omitted when orgs/users disable
startup.yolo_switcher. Launching with --yolo still leaves unrestricted
mode when the switcher entry is disabled; Shift+Tab only exits YOLO then.
Active approval mode (mode enum or raw value).
Whether classifier-backed Auto can be selected.
Whether unrestricted YOLO appears in the cycle.