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
Show an uninstall path for the Windows daemon autorun entry #1519
Board → Blocked (needs a Windows build environment). This is #[cfg(windows)] code; the current remote is darwin, and the pre-push gate builds the macOSnodespaced and never compiles the Windows cfg block — so it can't be implemented or verified here. Pick up on a Windows toolchain. (Note: #1498 unblocks nodespace-sync#246.)
Summary:register_autorun_windows writes an HKCU Software\Microsoft\Windows\CurrentVersion\Run entry so the daemon restarts on login, but there was no way to discover or remove it. Added autorun_windows_present()/remove_autorun_windows() in daemon_setup.rs (same reg.exe-via-Command mechanism as the write side — no new registry crate dependency), wired behind two Tauri commands (windows_autorun_present, remove_windows_autorun) that are always registered but only act on Windows.
Surfaced in: Settings → About (diagnostics-settings.svelte). A "Remove" action appears only when an entry actually exists (checked on mount via windows_autorun_present) — never on macOS/Linux, never on a clean Windows install — so no frontend OS-detection code was needed. Investigated scripts/uninstall.sh/CLI uninstall (POSIX-only, out of this issue's stated scope) and the Tauri bundle config (no Windows NSIS/WiX hooks defined) before landing on this as the minimal, clearly-scoped surface.
Real Windows verification (extracted the write/query/remove logic verbatim into a standalone Rust binary — the full desktop-app crate can't build on the test Windows box due to a missing libclang — and ran it for real over SSH against a distinct test registry value):
Baseline: reg query ... /v NodeSpaceDaemonHarnessTest
ERROR: The system was unable to find the specified registry key or value. (exit 1)
register -> reg.exe add succeeds
Independent reg query confirms:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
NodeSpaceDaemonHarnessTest REG_SZ "C:\fake\path\nodespaced-harness-test.exe"
present -> true (exit 0)
remove -> "nodespaced removed from HKCU autorun", removed=true (exit 0)
Independent reg query confirms it is gone:
ERROR: The system was unable to find the specified registry key or value. (exit 1)
present again -> false (exit 1)
remove again on clean state -> removed=false, exit 0 (safe no-op, not an error)
bun run test:all and bun run quality:fix both clean; full pre-push gate (test:all + cargo build + test:e2e) passed before the push. New frontend test file: packages/desktop-app/src/tests/components/settings/diagnostics-settings.test.ts (4 tests covering hidden/shown/success/failure states).
Activity
mstomar125 commentedon Aug 7, 2026
Board → Blocked (needs a Windows build environment). This is
#[cfg(windows)]code; the current remote is darwin, and the pre-push gate builds the macOSnodespacedand never compiles the Windows cfg block — so it can't be implemented or verified here. Pick up on a Windows toolchain. (Note: #1498 unblocks nodespace-sync#246.)mstomar125 commentedon Sep 14, 2026
Baseline: Frontend 240 test files / 4951 tests passed (85.17s). Starting implementation.
mstomar125 commentedon Sep 14, 2026
Implemented in #2613.
Summary:
register_autorun_windowswrites an HKCUSoftware\Microsoft\Windows\CurrentVersion\Runentry so the daemon restarts on login, but there was no way to discover or remove it. Addedautorun_windows_present()/remove_autorun_windows()indaemon_setup.rs(samereg.exe-via-Commandmechanism as the write side — no new registry crate dependency), wired behind two Tauri commands (windows_autorun_present,remove_windows_autorun) that are always registered but only act on Windows.Surfaced in: Settings → About (
diagnostics-settings.svelte). A "Remove" action appears only when an entry actually exists (checked on mount viawindows_autorun_present) — never on macOS/Linux, never on a clean Windows install — so no frontend OS-detection code was needed. Investigatedscripts/uninstall.sh/CLIuninstall(POSIX-only, out of this issue's stated scope) and the Tauri bundle config (no Windows NSIS/WiX hooks defined) before landing on this as the minimal, clearly-scoped surface.Real Windows verification (extracted the write/query/remove logic verbatim into a standalone Rust binary — the full desktop-app crate can't build on the test Windows box due to a missing
libclang— and ran it for real over SSH against a distinct test registry value):bun run test:allandbun run quality:fixboth clean; full pre-push gate (test:all + cargo build + test:e2e) passed before the push. New frontend test file:packages/desktop-app/src/tests/components/settings/diagnostics-settings.test.ts(4 tests covering hidden/shown/success/failure states).