Skip to content

fix: a microphone in use no longer blocks hiding (1.11.2 regression) - #475

Merged
tieubao merged 2 commits into
developfrom
fix/mic-in-use-blocks-hiding
Nov 15, 2026
Merged

tieubao merged 2 commits into
developfrom
fix/mic-in-use-blocks-hiding

Conversation

@tieubao

@tieubao tieubao commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

What

1.11.2 (#432, via #438) held no visibility restriction while any microphone or camera was in use, so the recording capsule stays visible. Wispr Flow, Krisp, Discord and dictation tools keep the microphone open all the time, so for those users the bar never collapses and Hidden Bar looks broken.

New behavior:

  • A capture start (no device in use, then in use) expands the bar once, the way the arrow does (state, arrow image, auto-hide timer), without bringing Hidden Bar forward.
  • Nothing blocks collapsing. A manual collapse, the hotkey and auto-hide hide as usual while capture continues.
  • The same capture session never expands again. Only a stop followed by a new start expands again.
  • Capture already running when Hidden Bar launches is not a start: no expand at launch.
  • An expanded bar that still hides the always-hidden section shows it too, so the indicator is visible.
  • New Preferences checkbox (macOS 27 rows): "Show the whole bar when the microphone or camera turns on", on by default. The key is in every Localizable.strings, in English.

Trade-off: if the user collapses while capture continues, the capsule is hidden with the rest (the dot in the screen corner stays). That is what the user asked for.

Proof

  • bash scripts/test.sh: Hidden Bar 211 passed / 0 failed, App Store 167 / 0.
  • New engine tests (fake capture monitor, manual clock standing in for the auto-hide timer): capture running at launch gives no expand and collapse hides; a start expands once; a manual collapse during capture stays collapsed; auto-hide during capture collapses; stop then start expands again; checkbox off never expands; an expanded bar with the always-hidden section hidden shows it; a collapse in flight when capture starts lands.
  • Negative control: the same tests on af0f151 (with a compile-only stub for the two new names): 8 of 9 capture tests fail; the 9th is the unchanged pre-existing one.
  • Release-Direct and App Store Release builds: no new warnings against af0f151.
  • On screen, Mac mini on macOS 27 with the Studio Display microphone in use (Wispr Flow, Discord running), Debug-Direct builds driven by the Debug hooks only (no pointer or key input). After collapse:
    • af0f151: state=collapsed captureActive=true assertionHeld=false; every icon stays visible.
    • this branch: state=collapsed captureActive=true assertionHeld=true; the hidden section is hidden.

Auto-hide is tested at engine level: the controller's timer is not injectable, so the test schedules the collapse the timer would make on a manual clock.

1.11.2 held no visibility restriction for as long as any app recorded
from a microphone or used a camera (#432), so the recording capsule
would show. Wispr Flow, Krisp, Discord and dictation tools keep the
microphone open all day, so for those users the bar never collapsed.

Now a capture START (no device in use to in use) expands the bar once,
the way the arrow does, without bringing Hidden Bar forward. Nothing
blocks collapsing: a manual collapse, the hotkey and auto-hide hide as
usual while capture continues. The same capture never expands again;
only a stop and a new start do. Capture already running at launch is
not a start. An expanded bar that still hides the always-hidden section
shows it too.

A Preferences checkbox, "Show the whole bar when the microphone or
camera turns on", turns the expand off; it is on by default. The key is
in every Localizable.strings, in English.
macOS 27's menu-bar allow-list only covers apps it knows by bundle id. It
knows an app in /Applications by bundle id, but not one run from elsewhere
(Downloads, a build folder; measured on 27.2 from /private/tmp and from a
home subfolder). It hides that app's icons even though their bundle id is
allowed, so collapsing hid Hidden Bar's own arrow and left only the hotkey
or the clock to expand with. A probe app placed mid-bar was hidden the same
way, so position is not the cause; adding the process name or the bundle
path to the list does not help.

Outside /Applications or ~/Applications, the direct build now hides nothing
and logs why, in collapse and in the expanded always-hidden case. Debug
builds skip the check unless the install-location-check hook turns it on,
because they run from build folders.
@tieubao
tieubao merged commit 2279bcd into develop Nov 15, 2026
1 check passed
tieubao added a commit that referenced this pull request Nov 15, 2026
Bump MARKETING_VERSION to 1.11.3 and CURRENT_PROJECT_VERSION to 18 in
all eight app configurations (App Store and Direct targets), add the
1.11.3 CHANGELOG entry (#475, #474), and add a runbook step that uploads
a byte-identical Hidden-Bar-macos.zip so the
releases/latest/download/Hidden-Bar-macos.zip URL stays stable.
tieubao added a commit that referenced this pull request Nov 15, 2026
MARKETING_VERSION 1.12.0 and CURRENT_PROJECT_VERSION 19 in all 8 app
configurations (Direct x4, App Store x4).

CHANGELOG: the Unreleased section becomes v1.12.0 (2026-11-15) and folds in
the unshipped 1.11.3 entry (#475, #474, #479); there is no separate 1.11.3
section. The microphone checkbox is named as the redesigned Settings window
labels it.

RUNBOOK: step 5 uploads a byte-identical Hidden-Bar-macos.zip, so
releases/latest/download/Hidden-Bar-macos.zip stays stable (carried over
from #476).
tieubao added a commit that referenced this pull request Nov 15, 2026
MARKETING_VERSION 1.12.0 and CURRENT_PROJECT_VERSION 19 in all 8 app
configurations (Direct x4, App Store x4).

CHANGELOG: the Unreleased section becomes v1.12.0 (2026-11-15) and folds in
the unshipped 1.11.3 entry (#475, #474, #479); there is no separate 1.11.3
section. The microphone checkbox is named as the redesigned Settings window
labels it.

RUNBOOK: step 5 uploads a byte-identical Hidden-Bar-macos.zip, so
releases/latest/download/Hidden-Bar-macos.zip stays stable (carried over
from #476).
@tieubao
tieubao deleted the fix/mic-in-use-blocks-hiding branch November 15, 2026 18:17
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