It does auto close. But its weird. I’m going to speak from Mouse and Keyboard since I don’t remember the default controls for controller.
When I press E to access a chest, the lid opens. If I press E again to exit the inventory it closes.
However.
If I press E too fast (before its open all the way) it stays open. It closes if I access it again. If I press ESC to cancel out of it, it stays open.
There’s a bug with the animation triggers. Or strictly speaking an oversight in the logic.