Skip to content

Draft issue: Approachable Swift and MainActor isolation#140

Closed
Copilot wants to merge 1 commit intomasterfrom
copilot/approachable-swift-ma-actor-isolation
Closed

Draft issue: Approachable Swift and MainActor isolation#140
Copilot wants to merge 1 commit intomasterfrom
copilot/approachable-swift-ma-actor-isolation

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 23, 2026

This PR drafts a tracking issue for adopting Swift 6.2's "Approachable Concurrency" features in PPPC Utility.

Current state: Swift 5.0 language mode, zero @MainActor annotations, no strict concurrency checking, 4 manual DispatchQueue.main.async calls, no Sendable conformances — despite 3 NSViewController subclasses and @objc dynamic model types accessed from UI via KVO/bindings.

No code changes — this PR contains only the issue writeup for review before filing. The issue covers:

  • Audit of concurrency gaps — missing @MainActor on UI/model types, manual main-thread dispatch, no Sendable conformances
  • Relevant Swift 6.2 proposals — SE-0461 (nonisolated(nonsending) default), SE-0466 (@MainActor inference), SE-0471 (relaxed Sendable), SE-0472 (task isolation inheritance)
  • Incremental adoption plan — phased from enabling strict concurrency warnings → adding @MainActorSendable conformances → Swift 6.2 defaults
  • Interaction notes@objc dynamic / Cocoa Bindings interplay with @MainActor, existing NetworkAuthManager actor already well-structured

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • webcache.googleusercontent.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
  • www.avanderlee.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

Copilot AI changed the title [WIP] Create issue for approachable Swift and MainActor isolation Draft issue: Approachable Swift and MainActor isolation Mar 23, 2026
Copilot AI requested a review from watkyn March 23, 2026 21:31
@watkyn watkyn closed this Mar 23, 2026
@watkyn watkyn deleted the copilot/approachable-swift-ma-actor-isolation branch March 26, 2026 15:15
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.

2 participants