wkappbot-core
★★☆
Launcher --sudo probe: File.Exists check before ConnectAsync
v6.0.1 fix for HANDSHAKE-MISS false positives on cold-start sudo. Launcher/Program.cs checks File.Exists('\.\pipe\wkappbot_elevated') BEFORE ConnectAsync. If pipe file is absent, admin Eye hasn't been spawned yet (cold start) -- quiet fallthrough to Core which will handle UAC + SudoHandler.EnsureAdminForSudo. If pipe file EXISTS but ConnectAsync fails, real zombie -- that's when we fire the HANDSHAKE MISS banner + bug-auto suggest. Previous fastFailMs=100 elapsed-based heuristic mis-classified every cold-start as handshake miss (merged 34x in 33h). Keeps v6.0 pipe separation: wkappbot_eye_ipc (normal Eye tick) and wkappbot_elevated (admin Eye cmd proxy) must never mix. Affects --all commands via --sudo flag.
Steps
- Launcher Program.cs --sudo branch calls File...
- Cold start (pipe file absent) -> quiet log '...
- Pipe present -> do the 1500ms ConnectAsync;...
- Affects wkappbot --all commands because --su...
- Evidence: test-launcher-sudo-handshake-miss-...
- Verified 2026-04-21: test-eye-sudo-handshake...
- [AUDIT 2026-05-29] Launcher/Program.cs split...
- [AUDIT 2026-06-03] source_refs broken: stale...
- [AUDIT 2026-06-04] Launcher Program.cs: 'pip...