github heyhuynhgiabuu/proxypal v0.4.15

15 hours ago

Windows Native Support (PR #196) + P3 Fixes

Windows Fixes (via #196 by @KiraKas-Tr)

  • Invisible tray iconicon_as_template(true) is macOS-only; now gated with #[cfg(target_os = "macos")]
  • ~ path not expanded — Auth-dir uses absolute path via dirs::home_dir() so Go sidecar no longer creates literal ~ directory on Windows
  • Port kill unreliable — PowerShell Get-NetTCPConnection replaces fragile cmd for /f + netstat parsing
  • Sidecar name mismatchcliproxyapicli-proxy-api in capabilities
  • WSL detection slow — File-existence check (wsl.exe) replaces wsl --status spawn (saves 1-2s)
  • Unix-only env export syntaxenv_export_line() generates PowerShell $env:VAR = "value" on Windows
  • Shell profile missing — Targets PowerShell profile on Windows, auto-creates directory
  • Auth files invisible when proxy down — Filesystem scan discovers .json files not returned by Management API
  • Logs crash during startup — Connect/timeout errors return empty list instead of hard error
  • Port conflict silent failure — Pre-flight TcpListener::bind check with actionable hints (Docker Desktop, WSL2 portproxy)
  • Health-check waits 5s on crashAtomicBool early-exit flag aborts immediately
  • Loading screen stuck on init errorsetIsInitialized(true) moved to finally block

P3 Refinements

  • Platform-gated startup delay — 1500ms on Windows (TIME_WAIT lingering), 500ms on Unix
  • Port pre-flight retry — 3 attempts × 200ms to reduce TOCTOU race window
  • Provider filename mapping DRYed — Extracted to utils::detect_provider_from_filename() + utils::provider_filename_prefixes(), replacing duplicate chains in auth_files.rs and auth.rs. Added github-/aws- prefixes. Roundtrip tests verify consistency.

New Dependencies

  • tauri-plugin-os v2 (OS detection for platform-specific behavior)

Don't miss a new proxypal release

NewReleases is sending notifications on new releases.