优化: 前端批(审批体系一致 + GitChanges UI + token/控件统一 + 死代码)
审批体系一致:ApprovalPopup 浮窗加挂起时长提示(H1)+session 按钮+path deny 二次确认(M4/M5);ToolCard/useToolApproval 加 session+onDeny 确认(对齐 DirAuthDialog 四按钮)+ToolCardList decision 类型加 session;ApprovalDialog 失败显 toast(治 store 吞错 M31);ApprovalOverlay dismiss 改响应式(L26) GitChanges UI(问题12 前端 12b-12h):showCommitFileDiff 精确匹配(12b)+去重 git log(12c)+详情滑出不挤压(12d)+双行提交行(12f)+搜索过滤(12g)+历史 Tab 显分支(12h)+diff 侧边栏内更宽可折叠面板(12e:FilePreview 不支持任意提交 diff,折中) token+控件:global.css 定义 --df-primary(治幽灵变量 M26)+settings.css 加 .setting-number/.setting-input/.setting-textarea+4 Section 套用(问题8) 死代码:删 PlanProgress.vue(零引用)+PlanLayerInfo 类型+i18n 孤儿 key(L1)
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
export default {
|
||||
aiChat: {
|
||||
// ── Multi-Agent parallel execution ──
|
||||
planProgress: 'Execution Plan',
|
||||
planLayer: 'Layer {n}',
|
||||
conflictsPending: '{n} conflicts to resolve',
|
||||
acceptA: 'Accept A',
|
||||
acceptB: 'Accept B',
|
||||
@@ -182,6 +180,8 @@ export default {
|
||||
dirAuthAlways: 'Always',
|
||||
dirAuthDeny: 'Deny',
|
||||
dirAuthFailed: 'Authorization failed: {msg}',
|
||||
// M5:path deny second confirmation (deny is irreversible — tool returns Err, loop continues without retry; asymmetry with approve, prevents mis-clicks)
|
||||
dirAuthDenyConfirm: 'Deny authorization? The tool will fail immediately and will not be retried this round.',
|
||||
|
||||
// ── Input Augmentation layer: mention/skill injection feedback ──
|
||||
// search_files blind search denied by whitelist fallback (no auth dialog; prompt user to use @mention or absolute path)
|
||||
|
||||
@@ -6,6 +6,11 @@ export default {
|
||||
noChanges: 'No changes (clean working tree)',
|
||||
noDiff: 'No diff available',
|
||||
noCommits: 'No commits yet',
|
||||
noSearchResult: 'No matching commits',
|
||||
commitsUnit: 'commits',
|
||||
searchPlaceholder: 'Search commits (keyword/author)',
|
||||
expand: 'Expand',
|
||||
collapse: 'Collapse',
|
||||
modified: 'Modified',
|
||||
added: 'Added',
|
||||
deleted: 'Deleted',
|
||||
|
||||
Reference in New Issue
Block a user