Skip to content

Fix Bonjour browser cleanup on discovery timeout (DNS leak issue) - #196

Closed
toonvl wants to merge 5 commits into
mattt:mainfrom
toonvl:fix/bonjour-timeout-browser-cancel
Closed

toonvl wants to merge 5 commits into
mattt:mainfrom
toonvl:fix/bonjour-timeout-browser-cancel

Conversation

@toonvl

@toonvl toonvl commented Aug 31, 2026

Copy link
Copy Markdown

Fix Bonjour browser cleanup on discovery timeout
Cancel the NWBrowser before resuming the timeout error path so repeated discovery retries do not leave browse/connection handles open.

toonvl and others added 5 commits July 9, 2026 12:00
Expose whether the current user owns a calendar event or was invited to
it by someone else, so callers can tell self-created events apart from
shared invites such as colleagues' vacation leave.

- EKEvent.isOrganizedByCurrentUser / organizerDisplayName helpers
- events_fetch: new `organizer: "me" | "others"` filter
- every returned event now carries `organizedByMe` (and `organizer`
  name when someone else owns it), enriched at the Value layer so the
  remote Ontology.Event model is left untouched

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Fork-local: keep the working tree clean when building locally into
imcp-derived-release/ and stop DerivedData, .DS_Store, editor files,
and local .env from showing up as untracked. Not intended for upstream.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Fork-local: com.apple.developer.weatherkit is a restricted capability
that requires a provisioning profile, which breaks re-signing local
Release builds with a personal Apple Development cert. Removing it lets
the app build and sign locally. Not intended for upstream.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Support proximity-based reminders ("remind me when I get home") and give
callers a way to manage reminders after creation, which previously was
create-and-fetch only.

- reminders_create: new `location` argument building a proximity EKAlarm
  from latitude/longitude or a geocoded address, with radius and
  arriving/leaving proximity
- ContactsService.savedPostalAddress(named:) resolves "home"/"work"/any
  custom label on the Me card to a postal address, so a saved place name
  works in place of a literal address. Matches CNLabelHome/CNLabelWork
  constants as well as the localized string, so "home" still resolves
  under a non-English locale
- reminders_update: patch due, list, notes, completed, priority, alarms
  and location on an existing reminder; time alarms and location
  triggers are replaced independently so setting one preserves the other
- reminders_delete: remove a reminder, refusing an ambiguous title match
- locate reminders by calendarItemIdentifier (preferred) or exact title;
  reminders_fetch and reminders_create now return that identifier

Co-Authored-By: Claude Opus 5 <[email protected]>
Cancel the NWBrowser before resuming the timeout error path so repeated discovery retries do not leave browse/connection handles open.
@toonvl
toonvl marked this pull request as draft August 31, 2026 21:27
@toonvl toonvl closed this Aug 31, 2026
@toonvl

toonvl commented Aug 31, 2026

Copy link
Copy Markdown
Author

contains the other changes rather than only the dns issue fix

@toonvl
toonvl deleted the fix/bonjour-timeout-browser-cancel branch August 31, 2026 21:38
toonvl added a commit to toonvl/iMCP that referenced this pull request Sep 2, 2026
Brings in the six upstream commits behind #2: the SIGTRAP
continuation fix (mattt#151), the Bonjour browser cleanup (mattt#199), the approval
setup-timeout exemption (mattt#200), the events_fetch date-only fix (mattt#175),
Madrid 0.5.0 with FetchRequest<Message> (mattt#201), and message read status
(mattt#195).

Three files conflicted, all because upstream shipped its own version of a
fix this fork already carried:

- CLI/main.swift: took upstream. Its mattt#199 supersedes our inline
  browser.cancel() (our closed upstream PR mattt#196) by extracting
  BonjourDiscovery.discoverEndpoint, which cancels on every exit path and
  comes with tests.
- App/Extensions/Foundation+Extensions.swift: took upstream. Its
  `count > 10` guard on the timezone-suffix regex is equivalent to our
  `!isDateOnlyISO8601String(...)`; staying identical to upstream is worth
  more than the marginal precision.
- App/Services/Calendar.swift: kept ours. Upstream only annotates
  `identifier` on the events_fetch and events_create returns, which our
  private encode(_:) helper already does alongside organizedByMe,
  organizer, isRecurring and coordinates.

Co-Authored-By: Claude Opus 5 <[email protected]>
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.

1 participant