You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A Command the User Runs at the Session Prompt Cannot Sit in a Dialog That Blocks the Prompt #3638
GOVERNANCE.md "Communicating with the User" says: "Put a command the user must run in the question's own text." On Claude Code, a command the agent cannot run itself is normally handed over as a ! line, which the user types at the prompt so its output lands in the session. While an AskUserQuestion dialog is open, though, the user cannot type at the prompt. So following the rule as written puts the command inside the one surface that blocks running it.
What happened in a fleet session: the agent put a ! rm -r ... && cp -r ... swap line in a dialog and waited for an answer. The user picked "I ran it", but the line never ran. A read-back showed nothing had changed, so the agent re-asked through another dialog, and that blocked the prompt a second time. The user had to break out of the dialog to say so.
What would fix it
Split the rule by what the command needs.
A command the user runs in some other place, such as a password prompt in another terminal, can stay in the question text as the rule says now.
A command the user runs at this session's own prompt goes in a plain message, as a fenced block, and the turn ends with no dialog open. The agent then checks the result on the user's next message.
The session-handoff and agent-conduct skills carry this section as a generated include, so the change reaches them through build_dist.py.
Activity
Send a Session-Prompt Command in a Plain Message, Never in a Blocking…