[Bug] Allow prompt fails to display, UI state synchronization issue
Bug Description
Feedback 1: Allow Prompt Not Showing Properly
I’ve noticed that in Claude CLI, the allow prompt sometimes fails to appear when it should, causing the process to stall for an extended period.
Interestingly, pressing Esc makes the prompt show up afterward.
This suggests there may be an issue with event triggering or UI state synchronization. It can easily mislead users into thinking the system is unresponsive. You may want to investigate:
Timing of allow prompt triggering
UI rendering / event loop blocking
Possible focus or input state issues that suppress the prompt
Feedback 2: Misleading Error Message (Critical Issue)
I encountered a serious issue that should not happen in a professional tool:
the system returned an error message that looked like a user rejection, even though that was not the case.
What actually happened:
After a second failure, I mistakenly retried the same job without changing strategy
The correct approach would have been to switch strategies (e.g., use grep on partial content or finalize based on known XML data)
However, the more critical issue is:
I was consistently approving every prompt — I did not reject anything.
The real cause appears to be that the tool call was blocked by sandbox permission rules, but the system surfaced this as a “user rejection.”
This creates two major problems:
Incorrect attribution of failure (blaming the user instead of the system)
Leads the agent to make poor decisions (e.g., unnecessary retries)
Suggested Improvements
Clearly distinguish error sources:
User rejection
Sandbox / permission denial
System-level failure
Provide precise and unambiguous error messages
Improve observability in CLI (e.g., debug logs or error codes)
Avoid mislabeling system-level failures as user actions
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.118
- Feedback ID: 3166c096-81f3-49ae-a2b1-42d2a093cdcc
Errors
[{"error":"Error: Request was aborted.\n at t86 (B:/~BUN/root/src/entrypoints/cli.js:5339:1623)\n at next (native:1:11)\n at dt_ (B:/~BUN/root/src/entrypoints/cli.js:8165:5609)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T05:12:27.063Z"},{"error":"Error: Request was aborted.\n at t86 (B:/~BUN/root/src/entrypoints/cli.js:5339:1623)\n at next (native:1:11)\n at dt_ (B:/~BUN/root/src/entrypoints/cli.js:8165:5609)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T05:17:56.742Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗