Permission dialog silently steals focus and destroys typed input — accessibility issue
## Description
When Claude Code shows a permission confirmation dialog while the user is typing, the dialog silently steals focus. The user may not notice immediately — they
continue typing, look up later, and discover everything they typed is gone with no way to recover it.
This is an accessibility issue. For users with conditions such as arthritis, retyping a long message is not just inconvenient — it is physically painful and
expensive.
## Steps to reproduce
- Send a message that causes Claude Code to call a tool requiring a permission prompt
- Without waiting, start typing your next message
- The permission dialog appears in the background / steals focus
- Continue typing without noticing
- Look up and discover the input box is empty or the dialog has captured your keystrokes instead
## Expected behaviour
The input box retains focus and preserves typed content regardless of what Claude Code is doing internally. Permission prompts should never silently discard user
input. At minimum, any text already entered when a prompt appears should be restored to the input box after the prompt is dismissed.
## Actual behaviour
Focus is stolen silently. Typed content is destroyed with no warning and no undo.
## Impact
- Affects any user who touch-types or types without watching the screen
- Disproportionately affects users with motor impairments or arthritis for whom retyping is physically costly
- No workaround exists today — there is no setting to prevent focus stealing while keeping permission prompts enabled
## Environment
- Platform: macOS
- Claude Code CLI
EOF