Display YOLO mode permissions if set when launching TUI (#17877)

- When launching the TUI client, if YOLO mode is enabled, display this
in the header.
- Eligibility is determined by `approval_policy = "never"` and
`sandbox_mode = "danger-full-access"`

<img width="886" height="230" alt="image"
src="https://github.com/user-attachments/assets/d7064778-e32c-4123-8e44-ca0c9016ab09"
/>
This commit is contained in:
canvrno-oai authored and GitHub committed 2026-04-15 18:28:11 -07:00
1 parent d63ba2d5ec
commit d97bad1272
4 files changed
+81 -11

No files matched your search

+1
View File
@@ -1599,6 +1599,7 @@ impl App {
self.config.cwd.to_path_buf(),
version,
)
.with_yolo_mode(history_cell::is_yolo_mode(&self.config))
.display_lines(width)
}