- 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.
29 lines
1.0 KiB
Markdown
29 lines
1.0 KiB
Markdown
# 系统托盘常驻
|
||
|
||
炼境作为后台服务常驻,关闭窗口后进程继续运行,保持 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: 点击窗口关闭按钮时,窗口隐藏但进程不退出;点「退出炼境」才真正结束进程
|