Skip to content

fix(presentation): follow the 1.12 capture rule, guard reveal, arrivals and palette while presenting - #509

Merged
tieubao merged 5 commits into
developfrom
fix/presentation-seams
Nov 15, 2026
Merged

tieubao merged 5 commits into
developfrom
fix/presentation-seams

Conversation

@tieubao

@tieubao tieubao commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

What

Fixes the seams between presentation mode and the other 1.13.0 features, found by the convergence review.

  1. Capture rule: presentation mode follows the 1.12 rule instead of a whole-capture pause. Switch on: a microphone or camera turning on lifts once (macOS shows the capsule naming the app), the Presenting capsule shows Paused with a "Hide again" action, a collapse also resumes hiding, and capture ending resumes by itself after the 2.5 s quiet period. A capture already on at start begins paused once, same action. Switch off: never pauses.
  2. Copy: while paused nothing is hidden, sensitive apps included. Settings footnote, Sensitive apps caption, the picker note and the paused panel say so. 13 locales, plutil -lint clean.
  3. Reveal gestures (scroll, empty click, shake) do nothing while presenting.
  4. The arrivals question does not open while presenting (dot stays, the question waits).
  5. The palette leaves sensitive apps out of its list while presenting, and out of the "shown" and "quit" hints too. The "stays hidden while presenting" state named the app on the shared screen and is gone with its snapshot scene, strings and test. If the engine still refuses a sensitive app (presentation began with the palette open), the app drops out of the list without a name.
  6. Palette Command-Return and Option-Return hints and actions are off when pinned sections are off; the palette hotkey is registered only on the native engine.
  7. One combined engine test: presenting, palette allow open, clock click, mic on then off.
  8. DECISIONS.md lines.
  9. A shortcut that clashes with another Hidden Bar shortcut is no longer saved (warning kept, naming the other). The registry makes every binding again whenever any shortcut changes, so the one that lost a clash works after the other is cleared.
  10. The arrow note while presenting says "N apps stay hidden", no names (Present-Edge board's note, minus the app list).
  11. An App Store import posts .pinnedSectionsChanged.
  12. "Clock and battery stay." is now "macOS's own items stay." (the engine keeps every system item).
  13. The Sensitive apps caption carries the pause exception.

Decisions

  • A collapse during the pause resumes hiding, auto-hide timer included, as on the main bar in 1.12. Known gap: a mirror trigger at launch with capture already on is followed by the launch collapse, which resumes at once; rare, left.
  • The quiet period (2.5 s) before the automatic resume is kept so a flapping microphone does not flap the bar; a user resume has none.
  • .sensitive stays in the engine and session as a guard; only its palette message went.
  • CHANGELOG.md and docs/MANUAL.md untouched (PR release: 1.13.0 candidate (changelog, docs, version) #508 owns them).

Tests

Full scripts/test.sh: direct 633 passed, App Store 430 passed, 0 failed.

Negative controls (production change disabled in the working tree after committing, full direct run, 31 then 24 failures, each new test among them; tree restored): collapse stays lifted, resume a no-op, the switch ignored (always pauses), temporary allow kept across the lift, gestures not suspended, arrivals not suppressed, palette filter off, sensitive refusal not refreshed, move guards and hints off, palette hotkey unconditional, clash refusal off, registry reload skipped, import notification dropped, note names apps, old copy strings.

New tests: PresentationStateTests (switch off, user resume, started during capture, switch turned off mid-pause), PresentationModeEngineTests (collapse during pause, switch on lifts once and user resumes, switch off never pauses, started during capture resumes, combined palette plus clock plus microphone), RevealControllerTests, ArrivalsControllerTests, PaletteModelTests, PalettePanelTests, HotKeyRegistryTests, ShortcutRecorderRowTests, AppStoreMigrationTests, PresentationViewsTests (paused panel, note, footnote, caption).

Snapshots

Offscreen, light and dark, read: direct-present-paused-{light,dark}.png (Hide again), direct-present-click-{light,dark}.png (count note), direct-palette-presenting-*, direct-palette-nopins-*, direct-present-settings-* (footnote and caption; the General tab also carries the 1.12 switch). Written to ~/.cache/hidden-bar/snap-seams2/ on the author's machine.

Presentation mode now lifts once when a camera or microphone turns on, as the main bar does, when the show-the-whole-bar switch is on; the user can hide again at once, and it resumes by itself after capture ends. With the switch off it never pauses. The Settings footnote, the Sensitive apps caption and the paused panel say nothing is hidden while paused, and the arrow note gives a count, not names.
Reveal gestures do nothing, the arrivals question waits, and the palette leaves sensitive apps out of its list. The palette offers the move keys only while pinned sections are on.
A combination another Hidden Bar shortcut uses is not saved. Any shortcut change makes every binding again, so one that lost a clash works once the other is cleared. The palette shortcut is registered only on the native engine. An App Store import posts the pinned-sections notice.
A capture already running when presentation starts no longer pauses it; only a fresh start does. The capsule panel gives counts and names no app. The palette environment is built in one tested place. The footnote names the switch the pause follows.
@tieubao
tieubao merged commit 78ac3f5 into develop Nov 15, 2026
3 checks passed
@tieubao
tieubao deleted the fix/presentation-seams branch November 16, 2026 01:33
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