Skip to content

A Command the User Runs at the Session Prompt Cannot Sit in a Dialog That Blocks the Prompt #3638

Closed

Description

@ptr727

The defect

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.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions