8c130adcc9
Expose `cpuCores` in backend status collection with multi-command fallback and surface it in the status panel as a localized CPU core badge under the CPU model. Adjust terminal group UX by adding a server-level close-all control in the SSH tab group header. Reduce accidental quick command execution by switching list interaction to single-click select + double-click execute, while preserving keyboard Enter and context-menu execution paths.
1.8 KiB
1.8 KiB
任务清单: server-status-cpu-core-display
@status: completed | 2026-04-12 07:02
@feature: server-status-cpu-core-display
@created: 2026-04-12
@status: completed
@mode: R2
进度概览
| 完成 | 失败 | 跳过 | 总数 |
|---|---|---|---|
| 4 | 0 | 0 | 4 |
任务列表
1. 后端状态采集扩展
- [√] 1.1 在
packages/backend/src/services/status-monitor.service.ts中新增cpuCores字段采集与回退逻辑 | depends_on: []
2. 前端状态展示扩展
- [√] 2.1 在
packages/frontend/src/types/server.types.ts与 locale 文件中补充 CPU 核心数字段和展示文案 | depends_on: [1.1] - [√] 2.2 在
packages/frontend/src/components/StatusMonitor.vue中将 CPU 核心数展示到 CPU 型号下方并处理缺省值 | depends_on: [2.1]
3. 验证与知识库同步
- [√] 3.1 运行前后端构建验证,并同步
.helloagents中的模块文档与变更记录 | depends_on: [2.2]
执行日志
| 时间 | 任务 | 状态 | 备注 |
|---|---|---|---|
| 2026-04-12 06:56 | 方案设计 | 完成 | 确认采用“后端新增 cpuCores + 前端 CPU 型号下方展示”的增量方案 |
| 2026-04-12 06:59 | 1.1 | 完成 | 后端新增 cpuCores 字段,并实现 nproc/getconf/procfs/lscpu 多级回退采集 |
| 2026-04-12 07:00 | 2.1 / 2.2 | 完成 | 前端类型、locale 与状态监控 UI 已补齐 CPU 核数展示 |
| 2026-04-12 07:01 | 3.1 | 完成 | packages/backend 与 packages/frontend 构建通过,知识库与 CHANGELOG 已同步 |
执行备注
记录执行过程中的重要说明、决策变更、风险提示等
- 当前仓库存在一个与本需求无关的遗留方案包
202603252311_terminal-group-and-broadcast-dedupe,本次不触碰其代码与任务状态。