It’s difficult to distinguish whether the command failed because of a typo or because the program it launched crashed.
I was thinking about this the other day and I was specifically trying to think of a way to avoid the command typos ending up in the history file. I don’t think it’s useful to keep those around.
AI Agents using tools also benefit from seeing past usage of the tools (what worked, what didnt) to help them inform future usage