Files
cc-web/.planning/session-item-title-tooltip/task_plan.md
2026-07-27 17:06:32 +08:00

30 lines
1.4 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.

# 会话卡片完整标题悬停提示
## 目标
当侧边栏会话标题因宽度不足被省略时,悬停会话卡片应同时显示项目名和完整会话标题,不能只显示项目路径。
## 阶段
| 阶段 | 状态 | 验收标准 |
|---|---|---|
| 1. 定位悬停提示与项目名来源 | complete | 找到会话卡片 DOM 构建函数及现有 title 属性来源 |
| 2. 补充回归断言 | complete | 测试明确要求提示包含项目名和完整标题 |
| 3. 实现完整悬停提示 | complete | 卡片 title 使用两行“项目 + 标题”,标题不截断 |
| 4. 验证与审查 | complete | 专项、全量回归、语法和 diff 检查通过 |
## 约束
- 不改变侧边栏会话卡片的现有布局和截断行为。
- 使用会话已有的项目名解析逻辑,避免重复路径解析规则。
- 保留工作区内其他任务的未提交改动。
- 未确认没有其他 running 会话前不重启 ccweb。
## 错误记录
| 错误 | 尝试 | 处理 |
|---|---|---|
| 专项回归因缺少 `buildSessionItemTooltip` 失败 | 1 | 失败符合 TDD 预期,进入最小实现 |
| `curl http://127.0.0.1:8002/` 3 秒无响应 | 1 | PM2 显示服务 online不重复相同失败转为检查重启安全条件 |
| `ccweb_list_conversations(status=running)` 60 秒超时 | 1 | 无法证明当前之外没有其他 running 会话,按仓库约束不重启服务 |