Shell commands can contain variables and substitutions. These are pieces that turn into other text when the command runs. If that expanded text is longer than Claude Code's permission check reads, Claude Code now refuses to run the command. The permission check is the step that decides whether a command is safe to run or needs your approval.
The refusal message says: "This command's variables and substitutions expand to more text than the permission check reads, so it was not run. Use fewer or shorter ones, or put the long text in a file."
This is a safety measure. A command whose real content went past what the check reads could otherwise get approved without being fully checked. If you see this message, follow its advice: use fewer or shorter variables, or put the long text in a file.