Repository navigation
Name FluidMeet meetings and speakers from Apple Calendar - #1444
grohith327 wants to merge 3 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
The PR Policy check is blocking this PR because required template information is missing. Please update the PR description with:
Visual files detected:
Screenshots or video are required for UI, UX, settings, onboarding, overlay, menu bar, or visual behavior changes. If this PR has no visual changes, check the no-visual-change box in the template. If this remains incomplete for 48 hours after opening, the PR may be closed. |
- Read Apple Calendar (EventKit) when recording starts to name the recording after the meeting and pull its invitees. - When several meetings overlap, match the one whose call link (Zoom, Meet, Teams, Webex) belongs to the call being recorded; otherwise offer the meetings underway to choose from. - Retry while recording so invites that sync late still link. - Show invitee names in the meeting header, and offer them in a dropdown when assigning speakers. Typing a name still works. - Name your mic speaker, and the other person on a 1:1 call, from the invite. - Add a dismissable prompt on the Meetings page to connect Apple Calendar, plus calendar settings.
- Let users drag calendars into a preferred order; when two meetings match the call equally, the higher calendar wins. Matching follows the order shown in Settings even before the user reorders. - Link the same invite only once when it appears on several calendars. - Confirm before disconnecting Apple Calendar, and flag calendars that are switched off. - Bring back the Meetings page prompt when calendar matching is turned off, and keep it shown while macOS blocks calendar access. - Read calendar access when Settings opens so the switch no longer flips on after loading; use small switches in the meeting settings.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0924544dfd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if microphone.count == 1, session.microphoneEchoWarning == nil { | ||
| self.assign(currentUser, source: self.currentUserSource, isLocalUser: true, to: microphone[0].id, in: &session) |
There was a problem hiding this comment.
Exclude shared microphones from automatic local-user naming
When an online call uses a microphone marked .shared, a single detected microphone speaker can be another person in the room rather than the calendar account owner. This condition ignores session.selectedMicrophone.role and assigns that speaker the current user's name and isLocalUser = true, incorrectly attributing their transcript and preventing normal speaker merges because MeetingSession.mergeSpeaker rejects local-user speakers. Shared microphones should be excluded from this automatic identity assignment and left for the user to name.
Useful? React with 👍 / 👎.
0924544 to
8091b9e
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8091b9ead1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| private func finalizeCalendarContext(_ session: inout MeetingSession) async { | ||
| self.calendarChoices = [] | ||
| guard session.calendarLink == nil, session.calendarLinkDeclined != true, self.isCalendarEnabled() else { return } |
There was a problem hiding this comment.
Re-evaluate automatic calendar links using the final overlap
When overlapping meetings belong to different calendars, the initial match can select one using calendar order before the recording duration is known. This guard then prevents that automatic choice from ever reaching the final overlap calculation. For example, a preferred-calendar event ending two minutes after recording starts wins over another event covering the remaining 28 minutes, even though testDominantOverlapWinsOverCalendarOrder explicitly expects the latter to win. Reconsider automatic links at processing completion while preserving links explicitly selected by the user; otherwise the wrong title and attendee identities remain attached to the recording.
Useful? React with 👍 / 👎.
| let (events, order) = await self.calendarEvents(start: session.startedAt, end: nil) | ||
| guard self.canLinkCalendarEvent(to: session.id) else { return } |
There was a problem hiding this comment.
Recheck calendar enablement before pending matching attempts
If the user disconnects Apple Calendar while an initial lookup or a scheduled retry is pending, this task continues reading calendar events and can still automatically link and rename the recording. Enablement is checked only before creating the task, and neither canLinkCalendarEvent nor saveCalendarContext checks it again; disconnecting only changes the setting and leaves macOS permission granted. Check enablement before each read and before applying its result so disabling the integration also stops pending matching work.
Useful? React with 👍 / 👎.
[Medium impact] The PR adds an opt-in calendar-reading path to FluidMeet recordings. The PR still needs a fix for automatic links that keep the wrong meeting after recording ends. SummaryAdds opt-in Apple Calendar meeting titles, invitees, speaker suggestions, and calendar settings.
Reviews (2) · Last reviewed commit: "Wait for the session lock before saving ..." · Reviewed by Greptile |
|
|
||
| private func finalizeCalendarContext(_ session: inout MeetingSession) async { | ||
| self.calendarChoices = [] | ||
| guard session.calendarLink == nil, session.calendarLinkDeclined != true, self.isCalendarEnabled() else { return } |
There was a problem hiding this comment.
An automatic match made at recording start is never checked against the finished recording. Two Zoom invites on different calendars can overlap at start, with the higher-ranked invite ending two minutes later. Calendar order selects that invite immediately, and this guard skips the final overlap check. The recording keeps the wrong title and invitees, which can also produce wrong speaker names.
Reconsider automatic links at stop while keeping user-selected links unchanged.
Prompt To Fix With AI
This is a comment left during a code review.
Path: Sources/Fluid/Services/Meeting/MeetingSessionCoordinator.swift
Line: 2670
Comment:
**Wrong meeting stays linked**
An automatic match made at recording start is never checked against the finished recording. Two Zoom invites on different calendars can overlap at start, with the higher-ranked invite ending two minutes later. Calendar order selects that invite immediately, and this guard skips the final overlap check. The recording keeps the wrong title and invitees, which can also produce wrong speaker names.
Reconsider automatic links at stop while keeping user-selected links unchanged.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| case let .choices(events): | ||
| self.calendarChoices = events | ||
| await self.saveCalendarContext(call: call, event: nil, sessionID: session.id) | ||
| return |
There was a problem hiding this comment.
Returning from .choices stops all remaining calendar retries. If an unrelated invite is underway while the actual call's invite has not synced, the first lookup offers the unrelated invite and never reads again during recording. The user keeps seeing stale choices even after the right invite arrives.
Keep retrying while no event has been chosen or declined, and refresh the choices when new invites arrive.
Prompt To Fix With AI
This is a comment left during a code review.
Path: Sources/Fluid/Services/Meeting/MeetingSessionCoordinator.swift
Line: 2606-2609
Comment:
**Late invites stop appearing**
Returning from `.choices` stops all remaining calendar retries. If an unrelated invite is underway while the actual call's invite has not synced, the first lookup offers the unrelated invite and never reads again during recording. The user keeps seeing stale choices even after the right invite arrives.
Keep retrying while no event has been chosen or declined, and refresh the choices when new invites arrive.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| private func finalizeCalendarContext(_ session: inout MeetingSession) async { | ||
| self.calendarChoices = [] | ||
| guard session.calendarLink == nil, session.calendarLinkDeclined != true, self.isCalendarEnabled() else { return } | ||
| let (events, order) = await self.calendarEvents(start: session.startedAt, end: session.endedAt) | ||
| if case let .matched(event) = MeetingCalendarEventMatcher.match( |
There was a problem hiding this comment.
Saved meetings cannot be corrected
Calendar choices disappear as soon as recording stops. finalizeCalendarContext clears pending choices and drops any new .choices result, while choosing and declining both require isRecording. The completed view has no calendar action. Users therefore cannot choose afterward or reject a wrong link first added after transcription.
Keep a choose/change/unlink action on the completed meeting and allow it to save changes there.
Prompt To Fix With AI
This is a comment left during a code review.
Path: Sources/Fluid/Services/Meeting/MeetingSessionCoordinator.swift
Line: 2668-2672
Comment:
**Saved meetings cannot be corrected**
Calendar choices disappear as soon as recording stops. `finalizeCalendarContext` clears pending choices and drops any new `.choices` result, while choosing and declining both require `isRecording`. The completed view has no calendar action. Users therefore cannot choose afterward or reject a wrong link first added after transcription.
Keep a choose/change/unlink action on the completed meeting and allow it to save changes there.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| self.calendarList | ||
| } | ||
| } | ||
| .task { await self.connection.refresh() } |
There was a problem hiding this comment.
Permission repair still looks blocked
The calendar settings refresh permission only when the view opens. After the user follows “Open Calendar Privacy Settings” and grants access, returning to this still-open sheet leaves connection.access at .denied. The switch and calendar list stay off until the sheet is reopened or the user tries connecting again.
Refresh on app activation, as the Meetings page already does.
Prompt To Fix With AI
This is a comment left during a code review.
Path: Sources/Fluid/UI/MeetingCalendarSettings.swift
Line: 49
Comment:
**Permission repair still looks blocked**
The calendar settings refresh permission only when the view opens. After the user follows “Open Calendar Privacy Settings” and grants access, returning to this still-open sheet leaves `connection.access` at `.denied`. The switch and calendar list stay off until the sheet is reopened or the user tries connecting again.
Refresh on app activation, as the Meetings page already does.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
FluidVoice PR build readyDownload FluidVoice-PR-1444-7174bc05bced The artifact contains the ad-hoc-signed app ZIP, Xcode archive, build manifest, and installation instructions. It expires 5 days after the build. Install the app
This build has its own app identity, so its permissions are separate from the release version of FluidVoice. |
Picking a meeting right after the choices appeared could fail while the matcher's own save, or the audio sweep, still held the lock. Show choices only after that save, and let calendar edits wait briefly for the lock. Co-authored-by: Rohith Gandhi G <[email protected]>
|
I built an Apple Calendar integration on my fork before I saw this PR: main...orhanveli:FluidVoice:feat/meeting-calendar-match (one commit, rebased on current
Match Calendar with the Meet
Pick from possible matches
When it's matched you can use attendees list for naming speakers
Settings:
|
|
Thanks for the suggestions @orhanveli, could you branch off |
here is the only part I can contribute #1467 |




Description
Connects FluidMeet to Apple Calendar (opt-in). When a recording starts, the app finds the calendar meeting for the call and uses its title and invitees.
Type of Change
Related Issue or Discussion
Closes #1443. Related to #1400.
Testing
Created a Google Calendar invite synced to Apple Calendar, joined via Zoom, and started a recording: the meeting took the invite's title and listed the invitee, who could be picked as a speaker name. FluidVoice 1.6.13, macOS 27.3, Apple Silicon.
swiftlint --strict --config .swiftlint.yml Sources Tests Package.swiftswiftformat --config .swiftformat SourcesScreenshots / Video
Notes
Adds the calendar full-access entitlement and usage string. Not tested on Intel.
Claude drafted the code; I reviewed the diff and tested it on macOS 27.3 / Apple Silicon.