修复: AI工具OOM/路径遍历+续跑锁收敛+UX交互批
This commit is contained in:
@@ -38,6 +38,9 @@ export default {
|
||||
approvalNotDelivered: 'Approval operation failed to reach the backend: {error}',
|
||||
queuedSendFailed: 'Failed to send queued message: {error}',
|
||||
approvalTimeout: '⚰ Approval timed out, automatically rejected: {toolName}',
|
||||
// UX-260617-08: conversation load/switch failure feedback (network jitter/IPC down → empty list/blank, was silent)
|
||||
loadConvFail: 'Failed to load conversations. Please check your network or backend connection.',
|
||||
switchConvFail: 'Failed to switch conversation. Please retry.',
|
||||
// AE-2025-07: Agentic loop progress bar copy
|
||||
// Note: max round / completed tool count are not surfaced by backend this round;
|
||||
// template conditionally omits them. Add *WithMax keys once backend exposes them.
|
||||
|
||||
@@ -82,6 +82,30 @@ export default {
|
||||
// Tool result detail format (plain-text result + approval placeholder appends arg summary)
|
||||
resultDetail: '{raw} ({detail})',
|
||||
|
||||
// UX-260617-17: ToolCardList group header (shown when 2+ same-name tools; was hardcoded zh)
|
||||
toolGroup: {
|
||||
readFile: 'Read File',
|
||||
writeFile: 'Write File',
|
||||
listDirectory: 'List Directory',
|
||||
createTask: 'Create Task',
|
||||
createProject: 'Create Project',
|
||||
createIdea: 'Create Idea',
|
||||
listTasks: 'List Tasks',
|
||||
listProjects: 'List Projects',
|
||||
listIdeas: 'List Ideas',
|
||||
deleteProject: 'Delete Project',
|
||||
restoreProject: 'Restore Project',
|
||||
purgeProject: 'Purge Project',
|
||||
updateProject: 'Update Project',
|
||||
runWorkflow: 'Run Workflow',
|
||||
},
|
||||
|
||||
// UX-260617-14: approval loading fallback timeout notice (no backend ack, card still pending_approval → reset + prompt)
|
||||
approveLoadingTimeout: 'Approval response timed out, please retry or check the backend',
|
||||
|
||||
// UX-260617-18: tool failure detection copy (regex narrowed to line-anchored err_msg prefix)
|
||||
// (reuse executionFailed/executionFailedHint, no new key)
|
||||
|
||||
// Approval argument key labels
|
||||
argLabel: {
|
||||
id: 'ID',
|
||||
|
||||
@@ -38,6 +38,9 @@ export default {
|
||||
approvalNotDelivered: '审批操作未送达后端:{error}',
|
||||
queuedSendFailed: '队列消息发送失败:{error}',
|
||||
approvalTimeout: '⚰ 审批超时,已自动拒绝:{toolName}',
|
||||
// UX-260617-08:对话加载/切换失败反馈(网络抖动/IPC 断开 → 列表空/切换空白,原静默无反馈)
|
||||
loadConvFail: '对话列表加载失败,请检查网络或后端连接',
|
||||
switchConvFail: '对话切换失败,请重试',
|
||||
// AE-2025-07: Agentic 循环进度条文案
|
||||
// 注:max 轮次/已完成工具数本轮后端暂不透传,模板条件渲染省略;后端补全后新增 *WithMax key
|
||||
agenticProgress: '🔄 循环 {round} · ⏳{pending}待审批',
|
||||
|
||||
@@ -85,6 +85,30 @@ export default {
|
||||
// 工具结果详情格式(非 JSON 纯文本 + 审批占位时补参数摘要)
|
||||
resultDetail: '{raw}({detail})',
|
||||
|
||||
// UX-260617-17:ToolCardList 分组标题(同名工具 >=2 时显示;原硬编码中文,英文化)
|
||||
toolGroup: {
|
||||
readFile: '读取文件',
|
||||
writeFile: '写入文件',
|
||||
listDirectory: '列出目录',
|
||||
createTask: '创建任务',
|
||||
createProject: '创建项目',
|
||||
createIdea: '创建灵感',
|
||||
listTasks: '列出任务',
|
||||
listProjects: '列出项目',
|
||||
listIdeas: '列出灵感',
|
||||
deleteProject: '删除项目',
|
||||
restoreProject: '恢复项目',
|
||||
purgeProject: '彻底删除项目',
|
||||
updateProject: '更新项目',
|
||||
runWorkflow: '运行工作流',
|
||||
},
|
||||
|
||||
// UX-260617-14:审批 loading 超时兜底提示(后端无回执,卡片仍 pending_approval 时复位 + 提示用户)
|
||||
approveLoadingTimeout: '审批响应超时,请重试或检查后端',
|
||||
|
||||
// UX-260617-18:工具失败检测文案(收窄正则后,行首锚定 err_msg 前缀)
|
||||
// (复用 executionFailed/executionFailedHint,不新增)
|
||||
|
||||
// 审批参数键标签
|
||||
argLabel: {
|
||||
id: 'ID',
|
||||
|
||||
Reference in New Issue
Block a user