Skip to content

Restore the macOS display mode after the last viewer disconnects - #113

Draft
10bn wants to merge 2 commits into
tembo:mainfrom
10bn:codex/macos-restore-display
Draft

10bn wants to merge 2 commits into
tembo:mainfrom
10bn:codex/macos-restore-display

Conversation

@10bn

@10bn 10bn commented Nov 17, 2026

Copy link
Copy Markdown

Summary

With dynamic resizing enabled on macOS, closing the last browser viewer leaves the desktop in the last viewer's window size. This adds an opt-in --restore-display-on-disconnect flag that restores the exact display mode from before the first successful resize.

The restore runs after the last connected viewer leaves, including viewers who have paused video. A short reconnect window avoids changing the display during a refresh. Pending resize requests from the closed session are discarded, and a display mode changed outside Voxl takes precedence. The flag is off by default.

The change is independent of the resize control policy discussed in #86.

Validation

  • cargo test --release --locked --offline on arm64 macOS: 24 passed, one benchmark ignored.
  • New regression cases cover overlapping viewers, paused video, pending resize requests and a reconnect before the restore.
  • git diff --check passed. Unit tests do not switch a physical display mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant