Repository navigation
fix(desktop): detect a joined Google Meet tab in meetings-only capture - #12029
Conversation
browserCallWindowPresent() ran the browserCallKeywords loop inline instead of
calling isBrowserCallTitle, so the one title shape a live Meet call actually
carries was the one it missed. A joined tab is titled with the bare meeting code
("Meet - amc-iajq-asx") and contains none of "Google Meet", "meet.google.com",
or "Teams - Microsoft". isBrowserCallTitle exists precisely for that case and had
no production caller at all.
Impact: on macOS 14.0-14.3 the window title is the only meeting-detection path,
so a joined Meet was never detected. On 14.4+ it is the fallback a *muted*
browser call drops to once mic input stops.
isBrowserCallTitle is a strict superset of the inline loop — same keywords plus
the bare-code pattern — so this only adds the missing shape.
Verified on a real bundle in onlyMeetings mode, same bundle id for both builds so
Screen Recording grants were identical, with a Safari window titled
"Meet - abc-defg-hij" and no browser holding mic input (forcing the title path):
unpatched, fixture present -> MeetingDetector: meeting STARTED count 0
patched, fixture absent -> count 0 (no false positive)
patched, fixture present -> count 1, then
"Transcription: System audio capture started (mode=onlyMeetings)"
Tests: desktop/macos/scripts/dev-feedback.py --once swift 'ConferencingAppsTests'
-> Executed 11 tests, 0 failures
Failure-Class: none
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Verified the fix end to end statically — a clean, well-scoped change. File by file:
About the red checks — neither failure comes from this diff. One follow-up observation, no change requested: Great bug report and verification table — the fixture-absent control row is exactly the right instinct. This should only need a maintainer's merge call once CI is re-run and green; the detection logic itself checks out. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Desktop Swift Static & Test Contracts failed on RewindCaptureExclusionGenerationTests.testOwnerSnapshotStaysCurrentWhenAuthLeadsUnresolvedRewindDatabase, an owner-snapshot/auth test in a subsystem this PR does not touch, in a CI window that also produced two other unrelated Swift test failures on other PRs. No code change.
kodjima33
left a comment
There was a problem hiding this comment.
Desktop bug fix (owner-override): fixes missed detection of a joined Google Meet tab titled with just the meeting code, replaces inline keyword loop with the shared isBrowserCallTitle helper, adds regression test. CI green, no abuse signals.
Summary
browserCallWindowPresent()ran thebrowserCallKeywordsloop inline instead of callingisBrowserCallTitle, so the one title shape a live Google Meet call actually carries was the one it missed.A joined Meet tab is titled with the bare meeting code —
Meet - amc-iajq-asx— which contains none ofGoogle Meet,meet.google.com, orTeams - Microsoft.isBrowserCallTitleexists precisely for that case (its doc comment says so) and had no production caller at all;browserCallTitlePatternwas only being used byOnDeviceMeetingIdentityServicefor identity extraction, not for detection.This swaps the inline loop for the helper.
isBrowserCallTitleis a strict superset — same keywords plus the bare-code pattern — so nothing that matched before stops matching.When this path is the one that decides
callAppIsUsingMicrophone()goes false when the browser stops using the mic, and detection falls back to the title. With the bare code unmatched, the off-grace expires and capture stops mid-meeting — while system audio (everyone else speaking) is still what the user wants recorded.Caveat, stated plainly: the "a browser drops mic input when muted" premise is taken from the existing comment on
callAppIsUsingMicrophone()(ConferencingApps.swift:147), not from my own measurement — verifying it needs a real two-party Meet call. I verified the title half physically. If that premise is wrong, this fix still corrects a real gap, it just matters mainly on older macOS.Verification
Run against a real bundle in
onlyMeetingsmode, same bundle id for both builds so Screen Recording grants were identical, with a Safari window titledMeet - abc-defg-hijand no browser holding mic input (forcing the title path):MeetingDetector: meeting STARTEDThe patched run with the fixture present then logged:
The middle row matters as much as the last: it shows the patched build isn't simply firing on everything.
Tests
desktop/macos/scripts/dev-feedback.py --once swift 'ConferencingAppsTests'→ Executed 11 tests, 0 failures.The new test pins both halves: the bare meeting code (hyphen and en dash) now matches, near-misses like
Meet - notacodeandMeeting notes - Acmedo not, and every keyword shape that matched before still matches — since this replaced an inline keyword loop, that regression direction needed pinning too.Failure-Class: none