The companion tries to get to the player as close as possible,
and both player and bot automatically step onto obstacles to move over them.

Here the bot sees the player as objstacle and steps onto him, or
the other way around.

you can avoid that by letting the bot stop earlier or let the bot not step onto the player (ignoring him in the trace)