Skip to content

builtin: display and export built-in configs by remote - #2

Merged
codewiththiha merged 1 commit into
mainfrom
feature/builtin-recent-export
Aug 4, 2026
Merged

builtin: display and export built-in configs by remote#2
codewiththiha merged 1 commit into
mainfrom
feature/builtin-recent-export

Conversation

@codewiththiha

Copy link
Copy Markdown
Owner

Makes built-in configs (materialized under the builtins dir) display by remote in recent (plain table and TUI show <host>-<port> instead of the full filesystem path) and export with the provider_host-port_COUNTRY.ovpn naming.

  • commands/recent.rs and ui/recent.rs: built-in paths render their host-port file stem.
  • export/service.rs: a pure desired_name helper uses builtin::export_name for built-ins, falling back to the existing sanitized name otherwise.
  • New unit tests for both branches of desired_name.

recent now shows the <host>-<port> file stem instead of the full
filesystem path for built-in configs, in both the plain table and the
TUI list. Export names built-in sources with
{provider}_{host}-{port}_{COUNTRY}.ovpn (e.g.
vpn-gate_public-vpn-38.opengw.net-1195_JP.ovpn) via a desired_name
helper that falls back to the existing COUNTRY_<filename> sanitization
for regular configs.
@codewiththiha
codewiththiha merged commit a63a5eb into main Aug 4, 2026
@codewiththiha
codewiththiha deleted the feature/builtin-recent-export branch August 4, 2026 03:13
codewiththiha added a commit that referenced this pull request Aug 4, 2026
- #1 builtin identity: BuiltinConfig::from_path + display_name centralize the
  path-layout parse; export_name and recent route through them (3 inline
  file_stem parses deleted)
- #2 scan pipeline: scan::scan_pipeline shared by scan and all; all.rs keeps
  only the connect half; report format unified
- #3 retry budget: pure RetryBudget type drives the retry/drop rules;
  ConnectService::run consults it instead of inline counters
- #4 settings persist: persist_scan/persist_connect live beside the resolvers
  in UserSettings; command-layer apply helpers deleted
- #5 process teardown: OpenVpnHandle owns kill_graceful; kill_handle deleted;
  the kill registry becomes a per-session ProcessRegistry threaded through
  spawn sites (hides the global, fixes cross-test killing)
- #6a/6b: journal_mode moves to db::pool; ScanProgress reports deltas

Flaky custom_retry_count test fixed (per-session registry + 30s handshake
timeout); full suite now stable across repeated runs.
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.

1 participant