Files
Bee d9b24c2031 feat(cli): default non-interactive runs to yolo mode (#15644)
* feat(cli): default non-interactive runs to yolo mode

One-shot runs (a prompt argument or piped stdin) have nobody at the
keyboard to approve tools, so they now start in yolo mode instead of act.

Act mode is kept when tool auto-approval is off (--auto-approve false or
the persisted setting), when a mode flag is passed, or when plan mode is
persisted. The TUI and ACP mode are unchanged.

* docs(cli): show --act where one-shot runs need teams or hooks

Yolo mode, now the one-shot default, disables team tools and hooks. The
README team examples and the PR review sample pass --act, and the CLI
reference notes that hooks need act mode.

* fix(cli): arm --timeout before the session starts

The local backend, which yolo runs use, executes the first turn inside
start(). The timeout and the session id used for aborts were only set
after start() returned, so --timeout and Ctrl+C could not stop that
turn. Both are now in place before start() is called.

Also drop the docs statements that hooks are skipped in yolo mode:
workspace hook scripts still run there.
2026-11-10 14:15:15 -08:00
..