File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Coder Desktop/Coder Desktop Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,9 @@ struct VPNMenuState {
104104
105105 mutating func upsertWorkspace( _ workspace: Vpn_Workspace ) {
106106 guard let wsID = UUID ( uuidData: workspace. id) else { return }
107- workspaces [ wsID] = Workspace ( id: wsID, name: workspace. name, agents: [ ] )
107+ // Workspace names are unique & case-insensitive, and we want to show offline workspaces
108+ // with a valid hostname (lowercase).
109+ workspaces [ wsID] = Workspace ( id: wsID, name: workspace. name. lowercased ( ) , agents: [ ] )
108110 // Check if we can associate any invalid agents with this workspace
109111 invalidAgents. filter { agent in
110112 agent. workspaceID == workspace. id
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ final class CoderVPNService: NSObject, VPNService {
9090 return
9191 }
9292
93+ menuState. clear ( )
9394 await startTunnel ( )
9495 logger. debug ( " network extension enabled " )
9596 }
You can’t perform that action at this time.
0 commit comments