Repository navigation
perf(desktop): accelerate Windows status checks and acknowledge lifecycle actions - #1437
Conversation
yyjeqhc
left a comment
There was a problem hiding this comment.
Code review of PR #1437 at c46fadfa7408e59773ae6f2b6049388875fcd570 (MSI main checkout, style/desktop-redundant-copy-20261123).
Reviewed all 9 changed files. The Windows user-service status optimization retains the existing exact Task Scheduler owner/action-PID checks, shares one verified Server observation for embedded Tunnel profiles, preserves ordered fail-closed diagnostics, and bounds independent PowerShell probes to 3. The connection UI correctly reports Stop/Restart as pending until the native request completes, without marking an action successful early. The copy simplification removes duplicate labels without removing runtime status from the sidebar.
Found and fixed one blocking Contract CI test race: App.test.tsx assumed the initial ChatGPT observation was still not checked, although the asynchronous observation may already be checking when the assertion runs. Pushed follow-up c46fadfa to make the assertion verify the actual invariant (unmanaged Tunnel is not presented as disconnected) across valid observation phases.
MSI validation after the fix: Desktop Vitest 829/829, TypeScript typecheck, frontend production build, cargo fmt --check, and Git diff checks passed; new Windows local_status::tests 2/2. A broader MSI webcodex-environment --lib run had 256 passing, 5 failing, 2 ignored tests: failures were in untouched Windows-specific inventory/migration path expectations and Tunnel recovery unsupported paths. These do not establish a regression in this PR; they should be treated as a separate Windows test-portability issue, not falsely reported as an all-green run.
APPROVE applies to the reviewed code, not to completion of CI or real Windows operational acceptance. The new GitHub workflow run for this head is still executing; wait for required checks and perform read-only Windows status and real Stop/Restart UX smoke testing before merging. No runtime services were stopped, started, or deployed as part of this review.
Summary
WebCodex · Runningstatus line, while preserving the sidebar runtime status.Stopping/Restartingprogress when a user clicks Tunnel Stop/Restart or Server Restart/Start; wait for real backend completion before reporting the final state.MSI local evidence
webcodex environment status --json, two alternating same-machine comparisons: installed 0.5.0 binary 15.439 s / 14.526 s, new dogfood 0.5.1 build 5.056 s / 5.425 s. ~65% lower average duration for the full CLI status path, not a measured Server restart or Tunnel shutdown duration.cargo check --locked -p webcodex-environmentpassed; focusedlocal_status::tests(2/2) passed;cargo clippy --locked -p webcodex-environment --lib -- -D clippy::correctnesspassed.-D warningsseparately encounters pre-existing lints inwebcodex-core.npm run typecheckpassed;npm test829/829 passed, including CSS contract checks;cargo fmt --allandgit diff --checkpassed.Safety / scope
Commits
897f9da0— Windows status query performance.bf41b97e— immediate lifecycle progress feedback and tests.