Skip to content

fix(tmux): disallow AskUserQuestion in headless agents (#850, #876) - #879

Open
bradbrok wants to merge 1 commit into
mainfrom
fix/disallow-ask-user-question-headless
Open

fix(tmux): disallow AskUserQuestion in headless agents (#850, #876)#879
bradbrok wants to merge 1 commit into
mainfrom
fix/disallow-ask-user-question-headless

Conversation

@bradbrok

Copy link
Copy Markdown
Owner

Problem

CC 2.1.200 (live on fleet since 2026-07-04) removed the AskUserQuestion auto-continue fallback. Any headless tmux agent that calls it now hangs indefinitely — pane alive, transport CONNECTED, but zero API traffic — until the inflight watchdog force-restarts it 600 s later.

The SDK path is already safe: AskUserQuestion is not in DEFAULT_STREAMING_ALLOWED_TOOLS, so it can't be called there.

The tmux path was unguarded: _build_claude_cmd launched claude --dangerously-skip-permissions with no --disallowedTools, leaving AskUserQuestion reachable.

Fix

One line in _build_claude_cmd: pass --disallowedTools AskUserQuestion on every tmux REPL launch.

Test

329 tmux session tests pass.

Closes #850, closes #876.


Generated by Claude Code

CC 2.1.200 removed the auto-continue fallback for AskUserQuestion dialogs;
headless tmux agents now hang indefinitely if the model calls it. Pass
--disallowedTools AskUserQuestion on every tmux REPL launch to close this.
The SDK path is already safe (AskUserQuestion is not in DEFAULT_STREAMING_ALLOWED_TOOLS).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GMiF52XXdqSU7V5hJUovqQ
@bradbrok
bradbrok force-pushed the fix/disallow-ask-user-question-headless branch from 1c7c692 to c5813c8 Compare July 21, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants