Skip to content

Name FluidMeet meetings and speakers from Apple Calendar - #1444

Open
grohith327 wants to merge 3 commits into
mainfrom
rohith/fluidmeet-apple-calendar
Open

grohith327 wants to merge 3 commits into
mainfrom
rohith/fluidmeet-apple-calendar

Conversation

@grohith327

@grohith327 grohith327 commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • Matches by call link (Zoom, Meet, Teams, Webex room or service), never just by time. Overlapping meetings are settled by the link, by overlap at stop, or by the user's calendar order; otherwise the user picks.
  • Retries after start, so invites that sync late still link. All-day, cancelled and declined events are skipped.
  • Shows invitees in the meeting view and adds an Invitees menu to speaker naming; typed names still work.
  • Settings to connect, rank or turn off calendars, plus a dismissable prompt on the Meetings page.

Type of Change

  • 🐞 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 🧹 Chore
  • 📝 Documentation update

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.

  • Tested on Intel Mac
  • Tested on Apple Silicon Mac
  • Tested on macOS version: 27.3
  • Ran linter locally: swiftlint --strict --config .swiftlint.yml Sources Tests Package.swift
  • Ran formatter locally: swiftformat --config .swiftformat Sources
  • Ran tests locally: calendar matcher, speaker namer, meeting coordinator and model suites pass

Screenshots / Video

CleanShot 2026-11-28 at 7 03 44 PM@2x CleanShot 2026-11-28 at 7 03 30 PM@2x

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.

  • A human created this PR or reviewed and approved it before submission, understands the full diff, and takes responsibility for the change.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T03:09:21.673275Z 7174bc0 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added the needs screenshots Pull request needs screenshot or video evidence. label Nov 29, 2026
@github-actions

Copy link
Copy Markdown

The PR Policy check is blocking this PR because required template information is missing.

Please update the PR description with:

  • Screenshots / Video

Visual files detected:

  • Sources/Fluid/Persistence/SettingsStore.swift
  • Sources/Fluid/UI/MeetingAssignSpeakersSheet.swift
  • Sources/Fluid/UI/MeetingCalendarChip.swift
  • Sources/Fluid/UI/MeetingCalendarConnection.swift
  • Sources/Fluid/UI/MeetingCalendarSettings.swift
  • Sources/Fluid/UI/MeetingHomeList.swift
  • Sources/Fluid/UI/MeetingRecordingSettingsSheet.swift
  • Sources/Fluid/UI/MeetingSessionCanvases.swift
  • Sources/Fluid/UI/MeetingTranscriptionView.swift

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.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 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".

Comment on lines +25 to +26
if microphone.count == 1, session.microphoneEchoWarning == nil {
self.assign(currentUser, source: self.currentUserSource, isLocalUser: true, to: microphone[0].id, in: &session)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@grohith327
grohith327 force-pushed the rohith/fluidmeet-apple-calendar branch from 0924544 to 8091b9e Compare November 29, 2026 01:42

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 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 }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Comment on lines +2588 to +2589
let (events, order) = await self.calendarEvents(start: session.startedAt, end: nil)
guard self.canLinkCalendarEvent(to: session.id) else { return }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 4/5 · The PR still needs a fix for automatic links that keep the wrong meeting after recording ends.RetriggerView in GreptileConfidence Score: 4/5

[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.

Summary

Adds opt-in Apple Calendar meeting titles, invitees, speaker suggestions, and calendar settings.

  • FluidMeet recordings can link to the calendar meeting for the call.
  • Users can connect Apple Calendar and choose which calendars FluidMeet checks.
  • FluidMeet uses calendar invitees to label speakers and show who was invited.

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 }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 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.

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.

Fix in Codex

Comment on lines +2606 to +2609
case let .choices(events):
self.calendarChoices = events
await self.saveCalendarContext(call: call, event: nil, sessionID: session.id)
return

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 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.

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.

Fix in Codex

Comment on lines +2668 to +2672
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(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 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.

Fix in Codex

self.calendarList
}
}
.task { await self.connection.refresh() }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 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.

Fix in Codex

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

FluidVoice PR build ready

Download 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

  1. Extract the downloaded artifact, then extract FluidVoice-PR-1444.app.zip.

  2. Move FluidVoice Name FluidMeet meetings and speakers from Apple Calendar #1444.app into the /Applications folder.

  3. Open Terminal and remove the download quarantine marker:

    xattr -dr com.apple.quarantine "/Applications/FluidVoice #1444.app"
    
  4. In Applications, Control-click FluidVoice Name FluidMeet meetings and speakers from Apple Calendar #1444.app and choose Open.

  5. If macOS still blocks it, open System Settings → Privacy & Security, click Open Anyway, and confirm.

This build has its own app identity, so its permissions are separate from the release version of FluidVoice.

View workflow run

@github-actions github-actions Bot removed the needs screenshots Pull request needs screenshot or video evidence. label Nov 29, 2026
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]>
@orhanveli

orhanveli commented Nov 30, 2026 •

Copy link
Copy Markdown

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 main). I won't open a competing PR. Most of it overlaps with this one (EventKit, attendee suggestions in Edit speakers, one-on-one naming, a manual event picker, calendar settings), but a few parts might be worth adding here or in a follow-up:

  • Matching without a call link. Events are matched by time overlap after the recording stops, so in-room meetings, phone calls and invites without a Zoom/Meet/Teams link still get a title. This PR matches only by call link.
  • Title template. Settings > Calendar has a {PLACEHOLDER} title template (default {EVENT_NAME}) with {CALENDAR_NAME}, {CALENDAR_ACCOUNT_NAME}, {DATE_SHORT}, {DATE_FULL}, {TIME}, {WEEKDAY} and date-part tokens, plus an insert menu and a live preview. Example: {DATE_SHORT} {EVENT_NAME} gives titles that sort by date.
  • No emails in the manifest. It stores only attendee display names on the meeting. When a calendar gives only an address, it keeps the local part. This PR persists email in the saved calendar link.
  • User renames win. Automatic matching never replaces a title the user has already edited.

MeetingCalendarMatcherTests covers overlap ranking, the template tokens and name extraction (13 tests). I'm happy to port any of these onto this branch if you want them.

Match Calendar with the Meet

Screenshot 2026-11-30 at 17 28 00

Pick from possible matches

Screenshot 2026-11-30 at 17 41 45

When it's matched you can use attendees list for naming speakers

Screenshot 2026-11-30 at 17 45 04

Settings:

Screenshot 2026-11-30 at 17 39 04

@grohith327

Copy link
Copy Markdown
Collaborator Author

Thanks for the suggestions @orhanveli, could you branch off rohith/fluidmeet-apple-calendar and open a follow-up PR ?? I can take a look at them. Lets skip the title template for now, but I am down to incorporating others.

@orhanveli

Copy link
Copy Markdown

Thanks for the suggestions @orhanveli, could you branch off rohith/fluidmeet-apple-calendar and open a follow-up PR ?? I can take a look at them. Lets skip the title template for now, but I am down to incorporating others.

here is the only part I can contribute #1467

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] FluidMeet: name meetings and speakers from Apple Calendar

2 participants