HydraIssues

makeWindowFollowAllSpaces ORs CanJoinAllSpaces onto MoveToActiveSpace, which AppKit rejects
open bug Priority: low Project: hydra-experiencenet Reporter: 18 Oct 2026 19:16

Description

Corrected 2026-10-18, read this first

This issue was filed believing the kiosk drew no window on macOS 26.1. That conclusion was wrong. The screen was LOCKED: lsappinfo front returned loginwindow, with the console session still owned by the kiosk user since 17:47 and 42 minutes of HID idle. No app can present a window on a locked session, which explains every reading: 0 AX windows, wallpaper with no dock or menu bar, and window/show appearing to do nothing.

Cause of the lock was self-inflicted during the #833 work: kiosk mode was disabled on that head at 18:08, which stops the one process holding PreventUserIdleDisplaySleep ("HydraExperienceNet kiosk mode - display must stay on"). With nothing holding the assertion the Mac idled and locked.

There is no evidence the kiosk UI is broken, and no reason to think the venue kiosks are dark. The earlier note asking someone to check Cloud Seven and Rupelmonde is withdrawn. peppy-dumpling-32 does carry the same log line, but that line is now known not to stop a window appearing.

What remains, and it is real

app/platform/macos_permissions.mm, makeWindowFollowAllSpaces():

NSWindowCollectionBehavior behavior =
    [win collectionBehavior] | NSWindowCollectionBehaviorCanJoinAllSpaces;

It ORs onto whatever the window already carries. When that includes MoveToActiveSpace, the result is a pair AppKit documents as mutually exclusive, -[NSWindow _validateCollectionBehavior:] throws, and the log fills with:

kiosk overlay: setCollectionBehavior failed: window behavior cannot be both
  NSWindowCollectionBehaviorCanJoinAllSpaces and NSWindowCollectionBehaviorMoveToActiveSpace

The throw is caught, so the visible consequence is only that the exit overlay never gets the behaviour it asked for: it will not follow onto another Space. 82b627d2 fixed the previous version of this (FullScreenAuxiliary + Stationary, SIGABRT at launch) by removing the added flags, but kept the OR.

Fix, clearing the conflicting flag rather than trusting what the window arrived with:

NSWindowCollectionBehavior behavior =
    ([win collectionBehavior] & ~NSWindowCollectionBehaviorMoveToActiveSpace) |
    NSWindowCollectionBehaviorCanJoinAllSpaces;

Dropped from critical to low: it is a confirmed defect in overlay Space behaviour, not a dark kiosk.

The lesson worth keeping

A locked macOS session looks exactly like a crashed UI from every remote probe: processes alive, local APIs answering, zero windows, a valid screenshot of wallpaper. Check lsappinfo front for loginwindow BEFORE concluding anything about a head's UI. Related: whatever stops the kiosk app also releases the display-sleep assertion, so disabling kiosk mode on a Mac head will lock it out from under you.

Session Context

Venue
mobile-kit