Skip to content

Fix Windows split-tunneling issues#8571

Merged
atavism merged 11 commits intomainfrom
atavism/fix-windows-issues
Mar 26, 2026
Merged

Fix Windows split-tunneling issues#8571
atavism merged 11 commits intomainfrom
atavism/fix-windows-issues

Conversation

@atavism
Copy link
Contributor

@atavism atavism commented Mar 24, 2026

Resolves some issues from https://github.com/getlantern/engineering/issues/3100:

  • Country sub-menu: city and protocol text have incorrect dark mode color mapping
  • Split tunneling: duplicate entries for system apps
  • Split tunneling: Lantern itself appears in the app list — should be excluded
  • Split tunneling: many app icons are missing

Copilot AI review requested due to automatic review settings March 24, 2026 16:12
Copy link
Contributor

Copilot AI 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

This PR addresses Windows split-tunneling app list issues and fixes a dark-mode color mapping problem in the VPN server selection UI.

Changes:

  • Introduces shared utilities to identify, dedupe, and sort split-tunneling apps (including excluding Lantern itself).
  • Updates split-tunneling providers/UI to use the new dedupe/identity logic to prevent duplicate entries.
  • Fixes protocol/city text colors in the country sub-menu for correct dark-mode rendering, and adds unit tests for the new split-tunneling utilities.

Reviewed changes

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

Show a summary per file
File Description
test/features/split_tunneling/split_tunnel_app_utils_test.dart Adds unit tests covering preference/deduping behavior and Lantern exclusion.
lib/features/vpn/server_selection.dart Switches protocol/city text styling to semantic theme colors for correct dark-mode mapping.
lib/features/split_tunneling/utils/split_tunnel_app_utils.dart Adds cross-platform stable/normalized app IDs, Lantern detection, deduping, and sorting helpers.
lib/features/split_tunneling/provider/apps_notifier.dart Uses new utils to dedupe/sort installed apps and to normalize IDs for toggle/select flows.
lib/features/split_tunneling/provider/app_icon_provider.dart Removes now-unused stableAppId helper and streamlines method channel invocation formatting.
lib/features/split_tunneling/apps_split_tunneling.dart Uses new utils to dedupe/sort enabled/disabled lists and to key icons by normalized ID.
Comments suppressed due to low confidence (1)

lib/features/split_tunneling/provider/apps_notifier.dart:58

  • The doc comment says getFilterType is only called by macOS and Android, but this method is also used on Windows (and the implementation explicitly branches on PlatformUtils.isWindows). Please update the comment to reflect the actual supported platforms to avoid confusion during future maintenance.
  /// Only called by macOS and Android
  SplitTunnelFilterType getFilterType() {
    if (PlatformUtils.isMacOS) {
      return SplitTunnelFilterType.processPathRegex;
    } else if (PlatformUtils.isWindows) {
      return SplitTunnelFilterType.processPath;
    }

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@atavism atavism requested review from jigar-f and myleshorton March 24, 2026 16:27
@jigar-f
Copy link
Contributor

jigar-f commented Mar 25, 2026

@atavism, I guess while you are on this, do you think you can take look at other issues as well?

Copy link
Contributor

@jigar-f jigar-f left a comment

Choose a reason for hiding this comment

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

LGTM.

@atavism atavism merged commit 1db243a into main Mar 26, 2026
9 checks passed
@atavism atavism deleted the atavism/fix-windows-issues 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.

3 participants