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: pass agent updates to UI#35

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

Merged
ethanndickson merged 2 commits intomainfromethan/agents-to-ui
Feb 10, 2025
Merged

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedJan 31, 2025
edited
Loading

Closes#5.

  • Passes Agent updates over XPC to the UI, displaying them on the menubar app
  • GUI now receives notifications when the system VPN state changes.
image

@ethanndicksonGraphite App
Copy link
MemberAuthor

ethanndickson commentedJan 31, 2025
edited
Loading

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Updated fromcoder/coder

PRODUCT_BUNDLE_IDENTIFIER: com.coder.Coder-Desktop.CoderSDKTests

VPNXPC:
type: framework
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Now that we import VPNLib into the app for the peer update protobuf type, we might as well just put the contents of this framework there.

ThomasK33 reacted with thumbs up emoji
guard uuidData.count == 16 else {
return nil
}
var uuid: uuid_t = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Very funny: there's no fixed size arrays in Swift (probably cause of objc), souuid_t is just a tuple of 16 u8s.
Also, the proposal to add one includes calling that new type a Vectorhttps://forums.swift.org/t/second-review-se-0453-vector-a-fixed-size-array/76412/20

logger.error("network extension reported error: \(error)")
tunnelState = .failed(.internalError(error.localizedDescription))
extension CoderVPNService {
@objc private func vpnDidUpdate(_ notification: Notification) {
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

macOS can tell us when the Network Extension changes state, including if there was an error that caused it to disconnect, e.g. NE crashes,ptp.cancelTunnelWithError, start/stopcompletionHandler(err)

@ethanndicksonethanndickson marked this pull request as ready for reviewJanuary 31, 2025 05:40
@ethanndicksonethanndickson merged commit10c2109 intomainFeb 10, 2025
4 checks passed
@ethanndicksonethanndickson self-assigned thisFeb 12, 2025
@ethanndicksonethanndickson deleted the ethan/agents-to-ui branchFebruary 12, 2025 12:26
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ThomasK33ThomasK33ThomasK33 approved these changes

@spikecurtisspikecurtisspikecurtis approved these changes

@coadlercoadlerAwaiting requested review from coadler

Assignees

@ethanndicksonethanndickson

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Build XPC communication from the Network Extension back to the user App
3 participants
@ethanndickson@ThomasK33@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp