新增: 待发箱抽屉与对话体验前端批

- 待发箱抽屉: ChatInput ⏰ 入口 + OutboxDrawer + useAiOutbox IPC 封装
- U2 进度语义三层: 内容层(最近动作) + 静默三档降速脉冲, 永不自动判死
- 流式心跳自愈: 竞态窗口旧任务迟到完成事件误收敛的自愈判定(949 前端兜底)
- 953 截断提示: 末条气泡渲染截断标记 + 继续输出按钮, 事件契约透传
This commit is contained in:
lxy
2026-10-11 07:38:00 +08:00
parent 31510d3555
commit 3818a63522
22 changed files with 1151 additions and 19 deletions
+16 -2
View File
@@ -363,8 +363,22 @@ const statusTitle = computed(() => {
return ''
})
/** 头部摘要 hover 回看完整路径(摘要统一缩略尾段,全路径走 title;路径类工具才有值) */
const summaryTitle = computed(() => argString(props.tc.args, 'path'))
/** 头部摘要 hover 回看关键参数全值(看板 945,按工具类型取参):
* run_command→command(命令行是唯一关键参数);其余 path 优先(覆盖 read_file/grep/
* search_files 等路径类),path 缺省回退首个非空字符串标量参数(hover 总有内容可看)。
* 摘要统一缩略尾段,全值走 title。 */
const summaryTitle = computed(() => {
const args = props.tc.args
if (props.tc.name === 'run_command') return argString(args, 'command')
const byPath = argString(args, 'path')
if (byPath) return byPath
if (args && typeof args === 'object' && !Array.isArray(args)) {
for (const v of Object.values(args as Record<string, unknown>)) {
if (typeof v === 'string' && v) return v
}
}
return ''
})
/**
* 风险等级(high/medium/low):审批挂起时卡片左侧着色条 + 风险徽章数据源。