claude-code - 💡(How to fix) Fix [BUG] `/btw` overlay blocks permission prompt dialog visibility

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…

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When /btw is used to inject a side-message during an active turn, the resulting overlay occludes any permission-request dialog Claude raises during that same turn (e.g., "Allow Edit to file X?"). The dialog is not dismissed — it is simply invisible, leaving the turn blocked with no visible way to approve or deny.

Other in-turn UI elements (progress bullets, status lines, tool-use indicators) continue to render and update normally alongside the /btw overlay.

What Should Happen?

Either:

  • The permission dialog renders on top of the /btw overlay so the user can approve/deny, or
  • The /btw overlay auto-dismisses (or visually de-prioritizes) when a blocking permission prompt is raised.

Error Messages/Logs

Steps to Reproduce

  1. Start a Claude Code session in a project where Claude will need permission to edit files.
  2. Give Claude a task that requires a permission-gated tool call (e.g., "Edit file X to add Y").
  3. While Claude is mid-turn and about to call a gated tool, submit /btw <any message> to inject a side-note.
  4. Claude reaches the permission-gated tool call and the harness fires a permission prompt.

Claude Model

Not sure / Multiple models

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.116

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Related issues:

  • #44876/btw side-question context where the user cannot respond to Claude's clarifying questions. Confirms /btw has prior input/UI interaction problems.
  • #47969 — general permission-dialog visibility problems in other contexts.

extent analysis

TL;DR

The /btw overlay should be modified to either render permission dialogs on top of it or auto-dismiss when a blocking permission prompt is raised.

Guidance

  • Investigate the z-index or layering of the /btw overlay and permission dialog to ensure the dialog is not being occluded by the overlay.
  • Consider adding a check for pending permission prompts before rendering the /btw overlay, and either delay the overlay or auto-dismiss it if a prompt is pending.
  • Review related issues #44876 and #47969 for potential insights into similar UI interaction problems.
  • Verify that the issue is not specific to the macOS or Terminal.app environment by testing on other platforms and terminals.

Example

No code snippet is provided as the issue does not include specific code references.

Notes

The issue may be related to the rendering order or layering of UI elements, and resolving this may require adjustments to the CSS or layout logic. Additionally, the issue may be specific to certain environments or configurations.

Recommendation

Apply a workaround to modify the /btw overlay behavior to prioritize permission dialogs, as this is a blocking issue that prevents users from approving or denying permissions.

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 [BUG] `/btw` overlay blocks permission prompt dialog visibility