dev-manager-tauri/.blueprint/modules/tray-service.md
lanrtop c598c9b05b feat: add BlueprintPromptModal for blueprint management and sync functionality
- Implemented BlueprintPromptModal component to handle blueprint prompt generation and rule synchronization.
- Added BlueprintStatusBadge to display the current status of blueprints in ProjectCard.
- Integrated blueprint status fetching and synchronization in ProjectCard.
- Enhanced SettingsPage with a new section for MCP service configuration and batch sync for blueprint rules.
- Updated commands to include new blueprint-related functionalities and types.
- Changed application name from "Dev Manager" to "炼境" in various components.
2026-04-04 10:47:27 +09:00

29 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 系统托盘常驻
炼境作为后台服务常驻,关闭窗口后进程继续运行,保持 MCP Server 持续提供服务。
## 决策记录
- 选择托盘常驻而非动态端口,因为 MCP 配置注入写静态 URL进程不常驻则 Claude 连不上
- 使用 tauri-plugin-single-instance 保证进程唯一,从根本上消除端口冲突风险
## 任务卡
### ✅ 集成 tauri-plugin-single-instance
- status: done
- complexity: S
- files: src-tauri/Cargo.toml, src-tauri/src/lib.rs, src-tauri/tauri.conf.json
- acceptance: 双击启动炼境时不新建进程,自动激活已有窗口并置顶
### ✅ 系统托盘图标与菜单
- status: done
- complexity: S
- files: src-tauri/src/lib.rs, src-tauri/tauri.conf.json
- acceptance: 任务栏托盘显示炼境图标,右键菜单有「显示窗口」「退出炼境」两项
### ✅ 关闭窗口最小化到托盘
- status: done
- complexity: S
- files: src-tauri/src/lib.rs
- acceptance: 点击窗口关闭按钮时,窗口隐藏但进程不退出;点「退出炼境」才真正结束进程