Skip to content

fix(desktop): Only Meetings shows its own icon and reads as on in the top-bar listening control - #12810

Merged
kodjima33 merged 3 commits into
BasedHardware:mainfrom
nathanchengx:fix/only-meetings-button
Sep 8, 2026
Merged

kodjima33 merged 3 commits into
BasedHardware:mainfrom
nathanchengx:fix/only-meetings-button

Conversation

@nathanchengx

@nathanchengx nathanchengx commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor
Screenshot 2026-09-05 at 5 08 33 PM

What

The top-bar listening control now reads Only Meetings honestly:

  • Only Meetings shows its own icon. While that mode is selected the control wears person.2.fill instead of the microphone. The corner badge that used to sit on top of the mic (and overlapped its foot) is gone. Always On and Off keep the mic.
  • Armed Only Meetings reads as on. The armed wait (mode selected, no call yet) was modelled as inactive, so the control wore the off-slash and a hollow dot while also wearing the mode mark. An armed session is switched on, since the next call is recorded, so listeningStatus now reports it active: green dot, no slash.
  • The click hint is just the name. Landing on Only Meetings shows "Only Meetings"; the explanation moves to the tooltip, which for the armed wait says recording starts when a call is detected. The cycle stays Off -> Always On -> Only Meetings -> Off.

Why

The mode mark was drawn on top of a slashed, hollow-dot mic, and the two collided on the glyph's foot. Pushing the badge clear still read as two silhouettes fused into one. Only Meetings names a different capability (record calls, not the room), so the mode owns the silhouette outright and the dot and slash keep saying on/off/blocked on top of whichever glyph is showing.

Changes

  • ShellStatusGlyph.modeBadge(for:) becomes listeningGlyph(for:); ShellStatusIconButton loses its badge overlay; the file header documents the mode-not-state swap.
  • CaptureListeningLogic.listeningStatus treats isAwaitingMeeting as active; ShellStatusTooltip.audio gains the armed-wait sentence.
  • DashboardPage uses the same status logic (touches an INV-CHAT-1 path glob; no chat transcript behaviour changes).
  • Tests updated in ShellListeningCycleTests, DashboardCaptureStateTests, ShellStatusIconLegibilityTests.

Tests

  • DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer xcrun swift test --package-path Desktop --filter 'ShellListeningCycleTests|ShellStatusIconLegibilityTests|DashboardCaptureStateTests' -> 42 tests, 0 failures
  • swift-format lint --strict clean on the changed Swift files
  • Ran the omi-only-meetings-button named bundle signed in: Only Meetings shows only the people glyph with a green dot; Always On and Off show the mic.

Product invariants affected

  • INV-CHAT-1

Failure class

Failure-Class: none

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ws5JE3NXAmo34XxiCC7bVH

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 7 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks @nathanjcx — careful work: the semantics, doc comments, tests, and changelog all move together. Notes per file, verified on 2f095d2:

  • CaptureListeningLogic.swift — listeningStatus now reads isLiveCapturing || isAwaitingMeeting. Since isLiveCapturing is isTranscribing && !isAwaitingMeeting, this collapses to "a transcription session exists," which is exactly the armed-means-on claim — internally consistent, and the doc comment keeps isLiveCapturing as the live-transcript distinction.
  • DashboardPage.swift — helpText's condition (status != .blocked && isAwaitingMeeting) correctly follows the armed wait into .active, so hover/VoiceOver keeps the "waiting for a call / Click to turn off" sentence instead of falling through to plain status text. Only comments and this condition move — the description's INV-CHAT-1 note checks out; no chat transcript paths touched.
  • ShellStatusIcons.swift — modeBadge(for:) → listeningGlyph(for:), badge overlay removed from ShellStatusIconButton. I checked the other ShellStatusIconButton call site (DesktopTopBar.swift): it never passed badge: (the property defaulted to nil), so nothing outside this PR's files breaks. The header comment reframes the no-swap rule as a mode-not-state exception rather than quietly deleting it — good.
  • DashboardCaptureStateTests.swift — the flipped expectation plus the new third assertion (armed → in-call → off) pins the full cycle, and the source-inspection contract was updated to the new predicate rather than loosened.
  • ShellListeningCycleTests.swift — the silhouette rules stay directly testable at the type level, and pinning meetingsHint == audioRecordingModeTitle(.onlyMeetings) keeps the popover label and the tooltip naming the same thing.
  • ShellStatusIconLegibilityTests.swift — moving the armed tooltip test to .active and asserting it never claims "listening" is the right honesty guard for the new semantics.
  • changelog/unreleased/20260905-only-meetings-listening-control.json — matches the unreleased-changelog convention and describes the actual behavior.

One edge case worth a small follow-up (same one the code-review bot raised; I verified it in the diff): in ShellStatusTooltip.audio, the new case .active where isAwaitingMeeting: returns before the .inactive branch's hasMicrophonePermission guard. The old awaiting sentence sat after that guard, so an armed session that has lost mic permission (e.g. revoked in System Settings mid-session) used to get "Omi needs microphone access. Click to grant it." — now it gets "Recording starts when a call is detected" with no path to re-grant. "Click for Off" stays honest (cycling to Off doesn't need the permission), so this is copy-level rather than behavioral, but a hasMicrophonePermission check in the armed branch would close it.

Two consistency notes for whoever signs off:

  • AppState.isLiveCapturing's doc comment still says live UI, including "the top-bar mic dot," must follow isLiveCapturing — now in tension with armed-as-active; whichever way this lands, that comment deserves a touch-up.
  • This reverses two invariants shipped Aug 15 (armed wait modelled as inactive "so lighting the green dot would lie"; the mode mark riding on the mic rather than replacing it). The new rationale is defensible — armed is what the user switched on, and person.2.fill already names the mode on Home — but what the green dot means (armed vs. audio flowing) is a product call on recently-shipped behavior, so I'm leaving the final call to a maintainer.

Nice iteration across the two commits — the badge-colliding-with-the-slash screenshot made the problem concrete.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level Git-on-my-level added macOS needs-maintainer-review Needs a human maintainer to sign off before merge labels Sep 6, 2026

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Legit desktop bug fix (icon collision + armed-state semantics), 42 tests + live battery. mergeStateStatus is DIRTY (merge conflict) so holding at approve per policy — not rebasing/force-pushing. Please rebase and I'll land it next run.

Nathan and others added 3 commits September 7, 2026 16:33
The Only Meetings mode badge was drawn on top of a slashed, hollow-dot mic: the armed
wait was modelled as inactive, so the control wore the off-slash while also wearing the
mode mark, and the two collided on the glyph's foot. An armed Only Meetings session is
switched on (the next call is recorded), so listeningStatus now reports it active:
green dot, no slash. The mode badge is also pushed clear of the glyph so it never sits
on the silhouette.

The hint popover shown when a click lands on Only Meetings is now just "Only Meetings";
the explanation moves entirely to the tooltip, which for the armed wait says the
microphone opens when a call is detected. The cycle stays Off -> Always On -> Only
Meetings -> Off.

Verification:
- DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer xcrun swift test --package-path Desktop \
  --filter 'DashboardCaptureStateTests|ShellListeningCycleTests|ShellStatusIconLegibilityTests' -> 43 tests, 0 failures
- swift-format lint and scripts/check_desktop_test_quality.py clean
- Rendered ShellStatusIconButton offscreen in all four states (off, always on, armed Only Meetings,
  and the previous slashed+badged look): the new armed state shows a green dot, no slash, and the
  badge outside the mic
- Not exercised in a signed-in bundle: auth seeding was blocked by a login-keychain prompt

Failure-Class: none

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016fydURVkJ4CMomvtt7aW53
…tening control

The Only Meetings mark rode on the mic as a corner badge and, even pushed clear of the
glyph's foot, still read as two silhouettes fused into one. Only Meetings names a different
capability (record calls, not the room), so the mode now owns the silhouette outright:
`person.2.fill` replaces `mic` while the mode is selected, the corner badge is gone, and
the dot and slash keep saying on/off/blocked on top of whichever glyph is showing. Always
On and Off keep the mic.

`ShellStatusGlyph.modeBadge(for:)` becomes `listeningGlyph(for:)` and
`ShellStatusIconButton` loses its `badge` overlay. The header's no-swap rule still guards
the on/off bit (`listening` is measured across states, not modes), and the file says so.

Verification:
- DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer xcrun swift test --package-path Desktop \
  --filter 'ShellListeningCycleTests|ShellStatusIconLegibilityTests|DashboardCaptureStateTests' -> 42 tests, 0 failures
- swift-format lint --strict clean on the two changed Swift files
- Ran the omi-only-meetings-button named bundle signed in; the control shows only the people
  glyph in Only Meetings and the mic in Always On / Off

Failure-Class: none

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Ws5JE3NXAmo34XxiCC7bVH
…one grant

An armed Only Meetings wait reads as on, so its tooltip moved out of the
`.inactive` branch and past the microphone guard. Without the grant it
promised "Recording starts when a call is detected", which no call could
keep. The armed sentence now says the grant is missing and where a click
goes, since from Only Meetings a click turns listening off without prompting.

Failure-Class: none

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BwsPy8eRjhWCgm2BJu28fm
@nathanchengx
nathanchengx force-pushed the fix/only-meetings-button branch from 2f095d2 to e0d048b Compare September 7, 2026 20:40
@nathanchengx

Copy link
Copy Markdown
Contributor Author

Rebased onto current main — DashboardPage.swift is gone there, so the branch's edit to it folds away and the same expectation lives in ShellStatusTooltip. Also took the one open thread: the armed Only Meetings tooltip now says the microphone grant is missing (and where a click goes) instead of promising a recording that cannot start; ShellStatusIconLegibilityTests covers it. Listening-control suites: 30 tests green locally.

@Git-on-my-level

Copy link
Copy Markdown
Member

Follow-up on the rebased head, verified at e0d048b — the open thread from the earlier review is resolved, and cleanly:

  • ShellStatusTooltip.audio — the new case .active where isAwaitingMeeting: now guards hasMicrophonePermission before promising "Recording starts when a call is detected", and the production call site (ShellStatusIcons.listeningTooltip) passes appState.hasMicrophonePermission, so the missing-grant sentence actually renders rather than living only in tests. testTheAwaitingMeetingAudioTooltipNamesTheMissingMicrophoneGrant pins both halves (names the grant, refuses to promise a recording).
  • Rebase onto current main checks out: DashboardPage.swift is gone there, no modeBadge references remain anywhere at head, and the armed-tooltip expectation lives on in ShellStatusIconLegibilityTests with the .active-state honesty guards.
  • CaptureListeningLogic.listeningStatus stays internally consistent — isLiveCapturing || isAwaitingMeeting collapses to "a transcription session exists", and DashboardCaptureStateTests walks the armed → in-call → off cycle. Desktop Swift build/tests, release compile, and static contracts are green.

One small carry-over, non-blocking: AppState.isLiveCapturing's doc comment still lists "the top-bar mic dot" among the live UI that must follow isLiveCapturing, which is now in tension with armed-as-active reading .active. A one-line touch-up whenever convenient — happy for it to ride along here or in a follow-up.

The earlier approval predates the rebase, so leaving this with needs-maintainer-review for a quick re-confirm on the new head; everything material is unchanged in intent.


by AI on behalf of David — the remaining item is a maintainer re-confirm of the rebased head, since the prior approval was on 2f095d2.

@Git-on-my-level Git-on-my-level added the positive-signal Automation verified a genuine fix/quality contribution label Sep 8, 2026

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix(desktop): title-match qualifies for desktop owner-override fast lane. CI green (Swift build/release/static-contracts pass), no conflicts, confirmed bug (modeBadge) still present on main, no abuse signals.

@kodjima33
kodjima33 merged commit e90dedb into BasedHardware:main Sep 8, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

macOS needs-maintainer-review Needs a human maintainer to sign off before merge positive-signal Automation verified a genuine fix/quality contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants