If KeepingYouAwake is active and the OS is set to automatically switch between light and dark mode, the OS does not switch the theme while active KeepingYouAwake is active.
I don't know if this is a KeepingYouAwake bug or a [caffeinate] bug - nonetheless probably worth to document.