{"version":"2.1.248","anchor":"prompts-ignore-keystrokes-that-arrive-just-as-they-appear","canonical_anchor":"prompts-ignore-keystrokes-that-arrive-just-as-they-appear","heading":"Prompts ignore keystrokes that arrive just as they appear","tier":"notice","area":"Permissions","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/prompts-ignore-keystrokes-that-arrive-just-as-they-appear","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Prompts ignore keystrokes that arrive just as they appear\n\nPrompts now ignore keys typed just as they appear, so stray Enters can't answer them.\n\n**What**\n\nConfirmation dialogs and selection lists now refuse keys, including Enter, Escape, digits and typed characters, that land within a short window anchored to the moment the dialog renders. A stray Enter typed a beat before a permission prompt appears no longer answers it; the dialog remounts instead of acting on the key. This is unconditional in this build, with no flag, setting or environment variable around it.\n\n**Details**\n\n- The default refusal window is 150ms, measured from the dialog's own anchor time rather than from when the key arrives.\n- The yes\/no confirm prompt and the interactive select lists take three new props, `refuseInput` to turn the guard on, `windowAnchorMs` to set the moment the window starts from, and `windowMs` to set its length, threaded through at each call site.\n- A new hook pairs a general refusal check with a typed-character check, and returns both whether the key was refused and whether a typed character was swallowed, so callers can react.\n- Digit keypresses in select lists return early when `refuseInput` reports a refusal, and the confirm and cancel handlers stop if the select's change or confirm guard returns false.\n- The \"Claude proposes a goal\" dialog mounts its numeric select with all three props and hidden option numbers, remounting between a settled and a held state.\n- Also applied to the PowerShell permission dialog, the Chrome extension prompt, the macOS Computer Use permission dialog and the iTerm2 install dialog, among others.\n- `windowAnchorMs` does not exist in the previous build, so the guard is new rather than a retuning of something already shipped.\n\n**Evidence**\n\n`refuseCharacter`, `refuseInput`, `refusedWithin`\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 5\/5\n- Signal: 2\/5"}