Expose permission mode in status line JSON input
Resolved 💬 3 comments Opened May 14, 2026 by tenideas Closed May 15, 2026
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
The custom status line JSON input (piped to the statusLine.command script) does not include the current permission mode (the auto-approve state toggled by Shift+Tab: default, auto-accept edits, auto-accept all).
Users who customize their status line lose visibility into which permission mode is active. The built-in status line shows it, but switching to a custom statusLine.command drops this information with no way to restore it.
Proposed Solution
Add a field to the status line JSON, e.g.:
{ "permissions": { "mode": "default" // or "auto-edits", "auto-all", etc.}}
Alternative Solutions
- Reverting to the default status line (loses all other customizations)
- Reading undocumented internal state files (fragile and risky)
Priority
Medium - Would be very helpful
Feature Category
Interactive mode (TUI)
Use Case Example
_No response_
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗