工具/任务执行卡片支持删除:单删 tool 回执同步摘除父 assistant 的对应调用
- deleteToolMessage:删工具回执行后,把该 tool_call 从父 assistant 的 tool_calls 里摘除;纯工具轮(无文本)且无剩余调用则父行整删,避免「有调用无结果」被上游拒收 - tool_result 事件先落库再广播,带 msg_id;前端工具卡时间行(复制旁)挂 × 删除按钮,历史与实时均可删 - 删除走统一 .act-del 委托:confirm → DELETE 接口 → 重拉详情重建消息区
This commit is contained in:
@@ -257,7 +257,9 @@ main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
||||
.msg-actions .act.copied { color: var(--active); }
|
||||
/* 删除本条:悬停变红点明破坏性;禁用态(请求中)半透且不响应 */
|
||||
.msg-actions .act-del:hover { color: #c0392b; }
|
||||
.msg-actions .act-del[disabled] { opacity: .4; pointer-events: none; }
|
||||
.act-del[disabled] { opacity: .4; pointer-events: none; }
|
||||
/* 工具卡时间行的删除按钮:同样红示警 */
|
||||
.tool-card .tool-time .act-del:hover { color: #c0392b; }
|
||||
|
||||
/* ================= 底部输入区 ================= */
|
||||
footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--page); }
|
||||
|
||||
Reference in New Issue
Block a user