Skip to content

fix(desktop-windows): fail closed when meeting capture cannot start - #10854

Merged
Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
tianmind-studio:codex/windows-meeting-capture-startup
Jul 30, 2026
Merged

Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
tianmind-studio:codex/windows-meeting-capture-startup

Conversation

@tianmind-studio

@tianmind-studio tianmind-studio commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

What changed and why

Closes #10851.

Windows meeting capture now reports started only after both the requested audio pipelines and Omi transcription transports are ready. Startup failures, dropped lanes, capture-window restarts, cancellation, and retries now tear down the affected attempt and show an actionable error instead of leaving a false "capturing" state.

Capture and listen IPC commands are also bound to trusted windows and session owners so readiness/error events and cleanup reach the renderer that owns the lane.

Product invariants affected

none

How it was verified

  • npx vitest run over 13 focused main/renderer test files: 79 tests passed.
  • npm run typecheck: node and web TypeScript checks passed.
  • Targeted npx eslint over every changed TypeScript/TSX file: 0 errors.
  • npm run build: production Electron build, bytecode verification, and extension bundling passed.
  • npm run test:e2e:meeting: 3 end-to-end Electron scenarios passed; the optional YAMNet fixture scenario was skipped because speech fixtures are not installed.

Tests

Regression coverage now pins the real audio-pipeline readiness barrier, exact startup rejection and cancellation, transactional mic/system startup, continuous-mic health delegation, attempt-isolated retry, early lane failure, capture-window restart routing, owner-bound IPC, and the retry/error toast states.

The meeting E2E now verifies that an unauthenticated startup reports startup-error, clears the capturing state, and never displays "Omi is capturing".

Failure class (fixes)

Failure-Class: none

Review in cubic

@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks for this — it is a careful, well-tested end-to-end fix for a real correctness/UX bug (the toast claiming "Omi is capturing" while nothing was actually recording). A few notes from review:

What lands well

  • The core readiness barrier is the right fix: omiListenClient no longer reports onConnected when only the WebSocket opens — it now waits for both the backend WS AND audio-source-ready, so a mic/loopback/pipeline failure surfaces as a startup failure instead of a silent false "capturing" state. transcriptionClient.startTranscription rejecting (instead of returning null) on startup failure makes that propagate cleanly.
  • Attempt-isolated retries (attemptId sequencing through meetingMonitor → MeetingSessionHost → status events), the 5s capture-startup timeout that fails closed, sibling-lane teardown via Promise.allSettled, AbortController cancellation through meetingSession, and capture-window-restart re-issue are all coherent and well-covered by the new tests.
  • The IPC hardening is a net security improvement: canForwardRendererCaptureCommand makes meeting-capture-start/stop main-only, gates audio-start/stop on listen-session ownership, and sessionOwners (which outlives the WebSocket) + cross-owner replacement rejection + killSessionsForOwner on WebContents destroy bound cleanup to the owning renderer. The spoof guard on omi-capture:event is preserved.

For human review before merge

  • This touches the audio-capture/IPC authorization surface and the ownership model. The authorization logic looks correct and fail-closed, but it is a new security boundary worth a careful maintainer pass — ideally someone who can build and run the Windows suite locally to confirm runtime behavior (the relevant Windows checks do not run in CI here, so the contributor's local vitest/typecheck/build/e2e results are the current evidence).
  • No split requested — the change is cohesive around one outcome (honest meeting-capture startup state) and the readiness barrier spans the whole chain, so splitting would make end-to-end validation harder rather than easier.
  • No security/supply-chain/workflow/dependency concerns found on static review.

Flagging for maintainer review rather than approving: large diff touching the security-sensitive capture/IPC surface, and Windows runtime verification is outside what this automated pass can independently exercise.


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

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

Labels

needs-maintainer-review Needs a human maintainer to sign off before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Omi Windows desktop asks to record a Google Meet meeting, approval is given, but the meeting is not recorded

2 participants