Repository navigation
feat(desktop): extract environmental speaker context to detect multi-party calls and meetings - #11808
Conversation
…party calls and meetings - Add EnvironmentalSpeakerSignal and EnvironmentalSpeakerAnalyzer in ProactiveAssistants/Core - Detect multi-party conversation state, unique speaker count, and identified participant names from live diarization segments - Bounded 180s active sliding window to exclude stale turns from earlier calls - Format safe environmental context prompt section with newline sanitization - Wire environmental call context into ContextProactivityEngine volatile prompt assembly - Add e2e flow coverage and changelog fragment - Add 7 comprehensive unit tests in EnvironmentalSpeakerContextTests (all passed)
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…ntalSpeakerContextTests
|
Thanks @aryanorastar — clean, well-scoped feature. Reviewed file by file:
Two non-blocking observations worth a maintainer decision:
The direction itself fits Omi well — turning already-captured diarization metadata into situational awareness ("user is on a call with others") collects nothing new and grounds recommendations in the user's actual context. Leaving the two decisions above for human maintainer review; happy to see this land. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
@kodjima33 @mdmohsin7 Thanks @Git-on-my-level for the thorough review and positive-signal! Merge-readiness summary:
Two product decisions flagged by David's review (non-blocking):
Ready for write-access approval and merge. |
undivisible
left a comment
There was a problem hiding this comment.
Reviewed current GitHub state (open, not draft, 6 files, Desktop Swift tests/compile + hygiene green) and the live diff. Scoped environmental-speaker analyzer + prompt section + unit tests match the brief; no surprise files. Non-blocking follow-ups (speakerPersonMap names, feature flag) can land later. Approving to merge.
What changed and why
Extracts environmental multi-party speaker context from live diarization segments during ambient listening. Previously, diarization tags (
speaker_id,is_user) were stored in raw segments but never summarized into an environmental context signal.With this change:
EnvironmentalSpeakerAnalyzerextracts active speaker count, non-user participant count, and identified participant names (e.g. Maya / Participant 1) over a bounded 180s sliding window.EnvironmentalSpeakerSignaland renders a safe, injection-sanitized prompt section (== ENVIRONMENTAL / CALL CONTEXT ==) for the director and assistant.Product invariants affected
none
How it was verified
swift test --filter EnvironmentalSpeakerContextTests-> 7 passed in 0.007scontext-buckets-dogfood.yamlTests
desktop/macos/Desktop/Tests/EnvironmentalSpeakerContextTests.swift(7 unit tests)Failure class (fixes)
Failure-Class: none