[Bug] Permission request UI flashes before hook auto-approval completes
Resolved 💬 2 comments Opened Apr 9, 2026 by Crazytieguy Closed May 23, 2026
Bug Description
When a PermissionRequest hook is configured to auto-approve certain commands, the permission request UI briefly flashes on screen before the hook completes and dismisses it. The hook does work correctly, but the visual flicker is distracting. Likely related to the hook and UI permission request running concurrently via Promise.race in createCanUseTool() (#44157) — the UI starts rendering immediately rather than waiting for the hook result first.
Environment Info
- Platform: darwin
- Terminal: WezTerm
- Version: 2.1.97
- Feedback ID: c0c8ab6c-e639-470d-93a3-95d157aa130f
Errors
[]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗