Expand description
/yolo: approvals off for this session, visibly.
Two ways to run without being asked already existed — --yes on the command line and
[cli] approval = "auto" in the config — and both are decided before the session starts, are
invisible afterwards, and cannot be undone without starting another one. This is the third
way, and the only one that is a process setting: it starts at whatever the other two decided,
/yolo flips it, and nothing is ever written to config.toml. A mode you forgot about must not
become what the next session starts with.
The flag is shared between the front ends — the terminal, the plain REPL and the dashboard, which
reads it once per run when it builds its approver — and read per turn, which is the whole
difference from the startup value: Gate is chosen at the top of a turn, so a toggle applies to
the next turn rather than to the next process.
It lives in eclipse-core rather than in the CLI for one reason: /yolo answers in one
sentence on every surface, and a sentence worded in two crates is a sentence that eventually
says two different things.
Structs§
- Yolo
- Whether tools may run without asking, for as long as this process lives.
Constants§
- WORDS
- The words
/yoloaccepts, in the order the refusal lists them.
Functions§
- announce
- The sentence an answer prints, in both fronts, so the two cannot word one mode differently.
- quoted
on,off, or the words for a refusal, in one place so a message cannot list a verb that does not work.- refusal
- Why
/yolois not a thing onsurface. - state
- The readout’s word for the state: what the next turn will do with a call that needs a person.