The AI thinks too much. And sometimes it thinks only to deliver a line and do nothing. I think they know by now it's buggy and needs to be addressed.
Looking at it as a programmer it seems like the AI routine is caught in a loop that couldn't find a solution and after the n-th try they simply return from the AI routine with doing nothing. Larian will surely fix this in some way but I am glad they at least have a break condition otherwise the game would crash in every such a loop.