Expose permission_mode in the statusline payload + statusLine.hidePermissionModeIndicator (refresh of #46419/#47345)

Status Closed — duplicate
Maintainer reply None cached
Activity 2 comments · opened Jul 18, 2026 · closed Aug 20, 2026

Feature request

Two complementary additions, both with direct precedent in the existing statusline design:

  1. Expose the current permission mode in the statusline stdin payload — a permission_mode field ("default" | "acceptEdits" | "plan" | "bypassPermissions" | "auto" | "dontAsk"). Precedent: vim.mode is already exposed exactly this way so custom statuslines can render editing state themselves.
  2. Add statusLine.hidePermissionModeIndicator to suppress the built-in "⏵⏵ bypass permissions on" / "⏵⏵ accept edits on" line. Precedent: statusLine.hideVimModeIndicator exists for precisely this pattern — hide the built-in indicator when the user's statusline renders the same information.

Together these let a custom statusline show a compact, styled mode badge (e.g. ⏵⏵ bypass) in its own colour scheme and layout, instead of the fixed full-width hint line, without losing the safety signal.

Why

  • The built-in indicator consumes a terminal row and cannot be shortened, restyled, or merged into a custom statusline. For users who run a dense custom statusline (multi-row, themed), the mode information is the one piece of session state that cannot be integrated.
  • The safety concern that presumably motivates the fixed indicator is preserved by the pair: the payload field lets the statusline render the warning (and users who hide the built-in line while rendering nothing are making the same explicit choice hideVimModeIndicator already permits for vim state).

Prior art

This has been requested repeatedly; every prior issue was closed for staleness rather than on the merits, and the closing message on #46419 invites a fresh issue:

  • #46419 "Allow customizing or hiding the permission mode indicator text" — closed not-planned, "inactive for too long. Please open a new issue if this is still relevant."
  • #47345 "Allow disabling hardcoded mode indicator in status line" — closed, same pattern
  • #53268, #56956 — closed as duplicates of the above
  • related: #54032

Environment

Claude Code v2.1.214, Windows 11 (also applicable on macOS/Linux). Happy to test a preview build — we maintain a native statusline that would adopt permission_mode immediately.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗