diff --git a/design.md b/design.md index 8e7ea17..54c3228 100644 --- a/design.md +++ b/design.md @@ -42,10 +42,7 @@ ## 🎨 2. 交互与UI流程设计 -1. **悬浮 Toolbar(常驻)**:在每个 `CodeCell` 顶部渲染微型操作栏: -* `✨ 优化`:自动提炼代码规范与性能。 -* `🐛 智能排错`:(**仅当 Cell 有 Error Output 时亮起**)自动抓取 Traceback 并修复。 -* `🪄 智能编辑`:展开内嵌 Prompt 输入框。 +1. **原生 Cell Toolbar 集成(2026-07-23 修正)**:不再自绘悬浮 toolbar。`✨ 优化` / `🐛 智能排错`(**仅当 Cell 有 Error Output 时亮起**)/ `🪄 智能编辑` 三个按钮通过 `IToolbarWidgetRegistry.addFactory('Cell', 'opencode-cell-actions', ...)` 注入 JupyterLab 原生 cell toolbar,显示在 **active cell 右上角**(move up/down 按钮旁,`rank: 100` 排在 delete 右侧);仅 `CodeCell` 显示,随 active cell 切换移动。 2. **Inline Prompt 框(按需展开)**: