Commit f112f894ac

f112f894ac00bf7b6397287c26edc1267883612f

parent: 4fcf49a644

Verified · cmc

cmc <hello@cleberg.net> · 2026-07-17 05:01 UTC

Fix Swift 6 actor-isolation warning in InspectDomainIntent

The app target sets SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor, so
DomainReportBuilder and DomainInspectionService are MainActor-isolated. The
unmarked perform() ran nonisolated, so calling build(from:) triggered an
"expression is 'async' but is not marked with 'await'" warning (an error in the
Swift 6 language mode). Mark perform() @MainActor to match AddToWatchlistIntent.

Layout: unified · split

DomainDig/DomainDigIntents.swift +1
@@ -28,6 +28,7 @@ struct InspectDomainIntent: AppIntent {
2828 Summary("Inspect \(\.$domain)")
2929 }
3030
31 @MainActor
3132 func perform() async throws -> some IntentResult & ReturnsValue<String> & ProvidesDialog {
3233 let requested = domain.trimmingCharacters(in: .whitespacesAndNewlines)
3334 guard !requested.isEmpty else {