← Problem log

Claude Code stuck in bypass mode

Last verified Oct 20
By the Bluhook team · Updated Nov 8, 2026
Exact text to search:
Dangerous rm operation on statically-unresolvable target Do you want to proceed

1What happened

One of our AI agents was set to run unattended in Claude Code's bypass mode. It went quiet for 15 minutes, and a message to it sat unanswered. Its screen showed a full-screen prompt that a helper agent had raised: "Dangerous rm operation on statically-unresolvable target ... Do you want to proceed?" Bypass mode still asks before an rm when Claude Code can't work out what the rm will delete. Until someone answers, the session sits idle and every new message waits. Our screen check looked for a dialog drawn above the input box. This prompt is full-screen and replaces the input box, so the check called the screen "unreadable", not "stuck". Nothing alerted.

2What we did

  1. Pressed Escape on the prompt. That cancels the rm and leaves the files alone. The agent picked up its waiting messages right away.

  2. Added a watcher that reads each agent's screen every few minutes, read-only. It catches the full-screen kind too: "Do you want to" plus "Esc to cancel" in the last 15 lines.

    For buildersIn tmux, tmux capture-pane -p -t <pane> gives you the screen text to check.
  3. If a prompt stays up too long, the watcher sends one alert to a person, naming the prompt line. It never answers a prompt or types into an agent's session.

3How we know it worked

On Oct 20, 11 tests pass, and the full-screen test fails without the fix. A live read-only scan of every agent's screen found none stuck after the Escape.

4What you can take from it

Bypass mode doesn't mean an agent never stops. Watch for prompts that take over the whole screen, not just dialogs above the input box, and give each one a person and a time limit.

In our glossary: Canary

claude-codeagentsmonitoringPublished Oct 20

Your free AI evaluation

Six free minutes with Sam. Your top 3 jobs for AI land in your inbox.

Show me my top 3 jobs

Questions people ask

Why is my Claude Code agent stuck in bypass mode?

Bypass mode still asks before an rm when Claude Code can't work out what it will delete. The prompt reads "Dangerous rm operation on statically-unresolvable target". Until someone answers, the session sits idle and every new message waits.

How do I clear a stuck rm prompt in Claude Code?

Press Escape. That cancels the rm and leaves the files alone. Our agent picked up its waiting messages right away.

How can I detect an AI agent waiting on a full-screen prompt?

Read each agent's screen every few minutes, read-only, and look for "Do you want to" plus "Esc to cancel" in the last 15 lines. In tmux, tmux capture-pane gives you the screen text. If a prompt stays up too long, send one alert to a person, and never answer the prompt for the agent.

Keep reading

Robb Lejuwaan

Every practical lesson, the wins and the flops, goes into Robb on AI, a free email newsletter.

Robb Lejuwaan, writer of Robb on AI
Get Robb on AI, free

Every lesson, win and flop, by email. Opens Substack.

Robb on AI is our free newsletter, written by Robb Lejuwaan.

We'll add you to Robb on AI, our free newsletter on Substack. Unsubscribe anytime. Privacy policy