You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop exposure resolution carries the listen selection twice #19
The desktop's exposure resolution keeps a pre-formatted listenSelection string beside the structured listenInterfaces it was built from. After #9 the only reader is a tracing span annotation; every real consumer formats the structured value at the point of use. Remove the string field, annotate the span from the structured value, and keep the ADR 0003 invariant tests (no pre-resolved IP, no wildcard in the envelope) passing against the structured value.
Acceptance criteria
One spelling of the selection on the resolution; the span still records it.
Desktop exposure, backend configuration and WSL suites pass unchanged in intent.
Done as described, no deviation. listenSelection is gone from DesktopExposureResolution; the one remaining reader (DesktopServerExposure.setListenInterfaces span) now calls formatListenInterfaces(next.resolution.requested). The ADR 0003 invariant note moved onto requested, and both invariant tests assert against the formatted structured value.
One thing worth naming: DesktopAppSettings.setListenInterfaces also has a listenSelection span attribute, but it formats its own argument and never read the resolution, so it is not a second spelling of the same value. Left alone.
Verified: vp test run on desktopExposureSelection, DesktopBackendConfiguration, DesktopServerExposure, DesktopWslBackend, DesktopAppSettings (77 tests pass), and vp run --filter @t3tools/desktop typecheck clean (only pre-existing suggestion diagnostics).
Activity
Khang5687 commentedon Sep 17, 2026
PR: #28
Done as described, no deviation.
listenSelectionis gone fromDesktopExposureResolution; the one remaining reader (DesktopServerExposure.setListenInterfacesspan) now callsformatListenInterfaces(next.resolution.requested). The ADR 0003 invariant note moved ontorequested, and both invariant tests assert against the formatted structured value.One thing worth naming:
DesktopAppSettings.setListenInterfacesalso has alistenSelectionspan attribute, but it formats its own argument and never read the resolution, so it is not a second spelling of the same value. Left alone.Verified:
vp test runon desktopExposureSelection, DesktopBackendConfiguration, DesktopServerExposure, DesktopWslBackend, DesktopAppSettings (77 tests pass), andvp run --filter @t3tools/desktop typecheckclean (only pre-existing suggestion diagnostics).Khang5687 commentedon Sep 17, 2026
Landed in fork-main via #28. Resolution carries requested only; the span formats it.