claude-code - 💡(How to fix) Fix Shift+Tab mode cycle should skip unavailable modes [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48363Fetched 2026-04-16 07:02:20
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
labeled ×2commented ×1

Error Message

On the Max plan, auto mode is not available, but Shift+Tab still cycles to it, showing the error: Even when auto mode is unavailable, it appears in the cycle and shows an error message.

RAW_BUFFERClick to expand / collapse

Problem

When pressing Shift+Tab to cycle through permission modes (default → plan → auto), all modes are shown including ones unavailable on the user's plan.

On the Max plan, auto mode is not available, but Shift+Tab still cycles to it, showing the error:

Auto mode is unavailable for your plan

This is a poor UX — users shouldn't be presented with modes they can't use.

Expected behavior

Shift+Tab should only cycle through modes that are actually available for the user's current plan. If auto mode is not available, the cycle should be:

default → plan → default

Current behavior

The cycle is always:

default → plan → auto → default

Even when auto mode is unavailable, it appears in the cycle and shows an error message.

Environment

  • Claude Code CLI
  • Max plan (individual)

extent analysis

TL;DR

Filter permission modes based on the user's plan before cycling through them with Shift+Tab.

Guidance

  • Identify the available permission modes for each plan and store this information in a data structure that can be easily accessed when a user presses Shift+Tab.
  • When Shift+Tab is pressed, check the user's current plan and only cycle through the modes that are available for that plan.
  • Consider adding a check to ensure that the current mode is valid for the user's plan before attempting to cycle to the next mode.
  • Review the current implementation of the Shift+Tab functionality to determine why it is not currently filtering out unavailable modes.

Example

const availableModes = {
  'Max plan': ['default', 'plan'],
  // Add other plans and their available modes here
};

// When Shift+Tab is pressed
const currentUserPlan = 'Max plan';
const currentMode = 'default';
const nextMode = availableModes[currentUserPlan].find(mode => mode !== currentMode);
if (nextMode) {
  // Cycle to the next available mode
} else {
  // Cycle back to the first available mode
}

Notes

This solution assumes that the available permission modes for each plan are well-defined and can be easily accessed. If this information is not readily available, additional work may be required to determine the available modes for each plan.

Recommendation

Apply a workaround by filtering the available permission modes based on the user's plan, as this will provide a better user experience and is a more straightforward solution than attempting to modify the underlying functionality of the Shift+Tab shortcut.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Shift+Tab should only cycle through modes that are actually available for the user's current plan. If auto mode is not available, the cycle should be:

default → plan → default

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING