mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
Closing the desktop window should not tear down the local server when users expect the app to keep serving background work. The Tauri layer now owns that lifecycle: close hides the main window, tray actions restore or quit, and true quit paths still stop sidecars. Constraint: Issue #213 asks for Windows close-to-background behavior, and macOS should follow the same desktop lifecycle. Rejected: Frontend-only close handling | native window close events and OS menu actions need one Tauri-owned path. Confidence: high Scope-risk: moderate Directive: Do not remove the explicit quit marker unless all updater, tray, and app-exit paths are rechecked. Tested: cargo fmt --manifest-path desktop/src-tauri/Cargo.toml --check Tested: cargo check --manifest-path desktop/src-tauri/Cargo.toml Tested: cargo test --manifest-path desktop/src-tauri/Cargo.toml Tested: cd desktop && bun run lint Tested: cd desktop && bun run build Not-tested: Windows cargo check on this macOS machine; x86_64-pc-windows-msvc cross-check stopped in ring because the host lacks Windows C/MSVC headers. Related: https://github.com/NanmiCoder/cc-haha/issues/213