The AI is a little basic, but it uses the exact same base code as the player. Instead of being controlled by hand it makes decisions based on a script. As far as I know it shouldn't be able to interrupt its own actions because like the player it only has control when it's not currently attacking or blocking. I'll keep an eye out though, maybe it's just parrying?
The corner thing should be an easy fix if I just make the AI back up when you're cornered. I'll try it out.
I'm going to push a new build soon with some difficulty options that will affect the AI's reflexes and aggressiveness. It should be a bit more forgiving for new players, plus an extra hard mode for a bigger challenge.
Thanks for the feedback, I'll see what I can do to tweak the intelligence as I go.