`!` shell commands block on Claude's response before accepting the next `!` command
Open 💬 0 comments Opened Jul 3, 2026 by addisonlynch
Description
Running a shell command via the ! prefix feeds the command's output back into the conversation as a turn, and Claude processes/responds to it before the next input is accepted. If I run !pwd and then immediately try !ls, the second command queues until Claude finishes responding to the first.
Steps to reproduce
- Run
!pwd - Immediately run
!lsbefore Claude's response to the first command finishes - The second command is queued rather than executed immediately
Expected behavior
Quick, independent shell commands run via ! shouldn't have to wait on Claude's analysis of the previous one — at minimum, an option to run ! commands without triggering a full response turn.
Workaround
Chaining commands in one ! call (e.g. !pwd && ls) avoids the queuing since it's a single turn. Though this does not work if I require seeing the output of pwd before running ls