I personally have difficulty believing Iran didn't know that war was inbound, everyone I talk to was anticipating it within a roughly 3-week window and these are people just working off what they read on internet news. Khamenei might not have known he was going to die that day and if he had his family would probably have been elsewhere. But it seems pretty reasonable to assume that he was purposefully not raising his security in his final days. The narrative win of a calm death vs the perfidious Israeli attack is powerful enough that he must have considered it.
There is an understanding that the strike that took him out also took out a lot of visiting high-level leaders; that'd be quite strong evidence against the idea it was intentional. But the fog of war is thick and it doesn't seem safe to take that occurrence as a given yet.
[1] https://nypost.com/2025/06/18/world-news/iran-supreme-leader...
[2] https://www.news18.com/world/in-the-name-of-haidar-last-post...