deerflow2/.planning/quick/260417-kcb-suggestion-hover.../260417-kcb-CONTEXT.md

41 lines
1.2 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.

# Quick Task 260417-kcb: suggestion hover dropdown + child tooltip + bootstrap ids/sessionStorage - Context
**Gathered:** 2026-04-17
**Status:** Ready for planning
<domain>
## Task Boundary
实现 suggestion 多字内容展示:
- 悬浮 suggestion 显示 dropdown内容来自 children
- 悬浮 dropdown 菜单项显示 tooltip内容来自 detail
- 点击 suggestion将 children 的 skill id 组合为数组并发送 bootstrap
- 点击 dropdown 菜单项:仅发送当前 id 进行 bootstrap
- 发起 bootstrap 时同步更新 sessionStorage
</domain>
<decisions>
## Implementation Decisions
### Dropdown Trigger
- 使用 suggestion hover 打开 dropdown同时保留 suggestion click 行为。
### Tooltip Source
- tooltip 文案优先使用 children.detail无 detail 时回退到 skill name。
### Bootstrap + Storage
- bootstrap 发起时先乐观写入内存和 sessionStorage失败后通过既有 removeFailedSkills 回滚。
### the agent's Discretion
- 不变更现有 API 入参与消息结构语义,仅扩展可选字段与前端交互。
</decisions>
<specifics>
## Specific Ideas
新增 children.detail 可选属性以支撑菜单项 tooltip。
</specifics>