The pet window only appeared on the macOS Space (desktop workspace)
where it was initially created. Switching to another Space made the
pet disappear.
Root cause: Electron BrowserWindow defaults to being bound to the
Space where it's created. The alwaysOnTop + floating level keeps it
above other windows *within the same Space*, but does not make it
span across Spaces.
Fix: Call setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true })
on macOS after creating the window. This tells macOS to show the
window on all Spaces and even over fullscreen apps.
The visibleOnFullScreen option ensures the pet remains visible when
a fullscreen application occupies the current Space, matching the
'always visible companion' UX intent.
This is safe because OpenPets already hides its dock icon via
app.dock.hide(), so the known Electron issue #26350 (dock icon
disappearing after setVisibleOnAllWorkspaces) is irrelevant.