Expose permission mode in status line JSON input

Status Fixed / completed
Maintainer reply None cached
Activity 3 comments · opened May 14, 2026 · 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_

View original on GitHub ↗

3 Comments

github-actions[bot] · 5 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/54032
  2. https://github.com/anthropics/claude-code/issues/52083
  3. https://github.com/anthropics/claude-code/issues/44982

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

tenideas · 5 months ago

Looks like this is a dup.

github-actions[bot] · 3 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.