Skip to content

fix: start coder connect on launch after SE is installed #113

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Mar 19, 2025

This is a fix for #108. Previously we would start the VPN immediately on launch if the config option was true. This starting of the VPN raced with any concurrent upgrades of the network extension, causing the VPN to be started with a VPN config belonging to the older network extension, and producing a consistent error message:
image

Instead, we should only start the VPN once we know that the system extension and VPN configuration are installed.

Copy link
Member Author

ethanndickson commented Mar 19, 2025

Comment on lines +82 to +85
deinit {
NotificationCenter.default.removeObserver(self)
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Drive-by fix: this was on the wrong class, though that wasn't causing any issues.

Comment on lines +110 to +115
try Mock(
url: url.appendingPathComponent("/api/v2/users/me"),
statusCode: 200,
data: [.get: Client.encoder.encode(User(id: UUID(), username: "username"))]
).register()

Copy link
Member Author

Choose a reason for hiding this comment

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

Drive-by fix: We need to mock this route as the token is validated before the server version.

@ethanndickson ethanndickson marked this pull request as ready for review March 19, 2025 03:06
@ethanndickson ethanndickson self-assigned this Mar 19, 2025
Copy link
Member Author

ethanndickson commented Mar 19, 2025

Merge activity

  • Mar 19, 3:48 AM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Mar 19, 3:49 AM EDT: A user merged this pull request with Graphite.

@ethanndickson ethanndickson merged commit 111b30c into main Mar 19, 2025
4 checks passed
@ethanndickson ethanndickson deleted the ethan/only-start-when-ready branch March 19, 2025 07:49
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.

3 participants