Skip to content

Update error messages to guide agents to ask users for destructive actions#15

Merged
mattzcarey merged 3 commits intomainfrom
claude/update-zagi-error-message-I29sU
Feb 18, 2026
Merged

Update error messages to guide agents to ask users for destructive actions#15
mattzcarey merged 3 commits intomainfrom
claude/update-zagi-error-message-I29sU

Conversation

@mattzcarey
Copy link
Owner

When zagi blocks a destructive command in agent mode, the error now
instructs the agent to ask the user to run the command themselves and
confirm when done, rather than just stating the command was blocked.

https://claude.ai/code/session_01B6U9cKiYt9Dr1BrK8Bg9Hk

…tions

When zagi blocks a destructive command in agent mode, the error now
instructs the agent to ask the user to run the command themselves and
confirm when done, rather than just stating the command was blocked.

https://claude.ai/code/session_01B6U9cKiYt9Dr1BrK8Bg9Hk
Cherry-pick changes from PR #3 to block `git push --delete` and
`git push origin :<branch>` refspec delete syntax in agent mode.
Also reverts the task edit hint back to recommending 'tasks append'.

https://claude.ai/code/session_01B6U9cKiYt9Dr1BrK8Bg9Hk
Remove the 'blocked:' line showing the raw command (not useful to
agents) and strip parenthetical annotations from reason strings
to keep messages concise.

https://claude.ai/code/session_01B6U9cKiYt9Dr1BrK8Bg9Hk
@mattzcarey mattzcarey merged commit 1e8dbd8 into main Feb 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants