mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +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
23 lines
509 B
TOML
23 lines
509 B
TOML
[package]
|
|
name = "claude-code-desktop"
|
|
version = "0.1.8"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
name = "claude_code_desktop_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = ["tray-icon"] }
|
|
tauri-plugin-shell = "2"
|
|
tauri-plugin-dialog = "2"
|
|
tauri-plugin-process = "2"
|
|
tauri-plugin-updater = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
anyhow = "1.0.102"
|
|
portable-pty = "0.9.0"
|