claude-code - 💡(How to fix) Fix Permission dialog toggle label is clickable but clicking it changes the value — counterintuitive UX

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…
RAW_BUFFERClick to expand / collapse

The "Allow this bash command?" dialog has a scope toggle on option 2 that switches between "this session" and "this project (just you)". The toggle is implemented as clickable underlined text embedded in the option label. This creates a serious UX trap:

Steps to reproduce

  1. Trigger a Bash permission prompt.
  2. Read option 2: "Yes, allow <cmd> for this project (just you)".
  3. Decide "this project (just you)" is the desired scope.
  4. Click on the underlined words "this project (just you)" to confirm that choice.
  5. The toggle fires — the label now reads "this session" instead.
  6. The user has accidentally selected the opposite scope.

Expected behaviour

Clicking anywhere on option 2 selects that option with the currently displayed scope. The toggle should be a separate, visually distinct control (e.g. a small inline button or chevron) so that "click to toggle" and "click to select" are clearly different actions.

Actual behaviour

The toggle and the selection target occupy the same element. There is no visual affordance to distinguish them. Clicking the underlined text to confirm your chosen scope switches you to the other one silently.

Suggested fix

Separate the toggle from the selection hit area — for example, a [session | project] pill control to the right of the option text, or simply two distinct option rows (one per scope).

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Permission dialog toggle label is clickable but clicking it changes the value — counterintuitive UX