Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: send push notifications on VPN failures#196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
ethanndickson wants to merge1 commit intomainfromethan/push-notif-vpn-failure

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedJul 1, 2025
edited
Loading

Relates to#195.

When the macOS VPN unexpectedly disconnects, Coder Connect currently just displays a red error message:

Now, when this happens, we'll additionally send a push notification with the same message:

The above error message was produced by force quitting the system extension.

Clicking these VPN failure notifications also opens the tray:

notifdemo.mov

Oncecoder/coder#18602 is closed, we can also send push notifications when Coder Connect disconnects / attempts to dial the Coder deployment. We currently do not support being notified of these events.

matifali reacted with hooray emoji
@ethanndicksonGraphite App
Copy link
MemberAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@ethanndicksonethanndickson marked this pull request as ready for reviewJuly 1, 2025 03:38
@ethanndicksonethanndickson self-assigned thisJul 1, 2025
@ethanndicksonethanndicksonforce-pushed theethan/push-notif-vpn-failure branch from3172ac2 to4a6433aCompareJuly 10, 2025 02:51
Copy link

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds user-facing push notifications when the VPN or URI handler fails, and refactors notification setup and handling into the AppDelegate.

  • Bumps thefluid-menu-bar-extra dependency revision.
  • Sends a.vpnFailure notification on VPN state failures.
  • RefactorsUNUserNotificationCenter delegate logic intoAppDelegate, registers categories, and updatessendNotification.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

FileDescription
Coder-Desktop/project.ymlUpdatedfluid-menu-bar-extra revision
Coder-Desktop/Coder-Desktop/VPN/VPNService.swiftSend push notification on VPN failures
Coder-Desktop/Coder-Desktop/Notifications.swiftMoved delegate intoAppDelegate, added categories andNotificationCategory enum, updatedsendNotification signature
Coder-Desktop/Coder-Desktop/Coder_DesktopApp.swiftCall new category registration, set delegate toself, update URI failure call

@@ -1,8 +1,23 @@
import UserNotifications
Copy link
Preview

CopilotAIJul 10, 2025

Choose a reason for hiding this comment

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

The oldNotifDelegate class was removed but I don’t see its full definition cleaned up. Please remove any leftoverNotifDelegate declaration to avoid dead code.

Copilot uses AI. Check for mistakes.

nonisolatedfunc userNotificationCenter(
_:UNUserNotificationCenter,
willPresent _:UNNotification
)async->UNNotificationPresentationOptions{
Copy link
Preview

CopilotAIJul 10, 2025

Choose a reason for hiding this comment

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

Ensure theuserNotificationCenter(_:willPresent:withCompletionHandler:) method is inside theAppDelegate extension so banners still appear while the app is active.

Copilot uses AI. Check for mistakes.

@ethanndickson
Copy link
MemberAuthor

Might come back to this later.

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

Copilot code reviewCopilotCopilot left review comments

Assignees

@ethanndicksonethanndickson

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@ethanndickson

[8]ページ先頭

©2009-2025 Movatter.jp