Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

♻️ refactor(acceptance): remove failed-check feedback actions (#18840)

Arvin Xub312239a4787
diff --git a/locales/en-US/verify.json b/locales/en-US/verify.json
index b2c0b8c21eb..416dd4ff4a4 100644
--- a/locales/en-US/verify.json
+++ b/locales/en-US/verify.json
@@ -366,18 +366,13 @@
"detail.tokens": "Tokens",
"dock.confirm": "Confirm & run",
"dock.edit": "Adjust checks",
- "dock.forceDeliver": "Ignore & deliver",
"dock.repairHint": "The next round is fixing the failed checks. A new result is produced and the checker re-runs when it finishes.",
- "dock.saveAndRepair": "Save input & repair now",
"dock.skip": "Skip checks",
"dock.title": "Delivery Checker",
"editor.add": "+ Add check",
"editor.cancel": "Cancel",
"editor.placeholder": "Check title",
"editor.save": "Save",
- "input.hint": "This goes to the next repair round as checker input — it will not appear as a chat message.",
- "input.label": "Extra input for the next repair round",
- "input.placeholder": "e.g. run type-check first; if it still fails, just add a risk note.",
"list.failedCount": "{{count}} failed",
"list.running": "Verifying…",
"meta.description": "Verification runs, delivery reports, and acceptance reviews.",
diff --git a/locales/zh-CN/verify.json b/locales/zh-CN/verify.json
index 38955a2d431..3ac71b4e63d 100644
--- a/locales/zh-CN/verify.json
+++ b/locales/zh-CN/verify.json
@@ -366,18 +366,13 @@
"detail.tokens": "消耗 Token",
"dock.confirm": "确认并运行",
"dock.edit": "调整检查项",
- "dock.forceDeliver": "忽略并交付",
"dock.repairHint": "下一轮正在修复未通过的检查项。完成后会生成新一轮结果,并重新运行检查器。",
- "dock.saveAndRepair": "保存输入并立即修复",
"dock.skip": "跳过检查",
"dock.title": "交付检查器",
"editor.add": "+ 添加检查项",
"editor.cancel": "取消",
"editor.placeholder": "检查项标题",
"editor.save": "保存",
- "input.hint": "这会作为检查器输入进入下一轮修复 —— 不会作为聊天消息显示。",
- "input.label": "下一轮修复的补充输入",
- "input.placeholder": "例如:先跑 type-check;若仍失败,补一条风险说明即可。",
"list.failedCount": "{{count}} 项未通过",
"list.running": "验证中…",
"meta.description": "验证运行、交付报告与验收评审。",
diff --git a/packages/locales/src/default/verify.ts b/packages/locales/src/default/verify.ts
index 928c6d9f624..0957f5e83f5 100644
--- a/packages/locales/src/default/verify.ts
+++ b/packages/locales/src/default/verify.ts
@@ -417,10 +417,8 @@ export default {
'dock.confirm': 'Confirm & run',
'dock.edit': 'Adjust checks',
- 'dock.forceDeliver': 'Ignore & deliver',
'dock.repairHint':
'The next round is fixing the failed checks. A new result is produced and the checker re-runs when it finishes.',
- 'dock.saveAndRepair': 'Save input & repair now',
'dock.skip': 'Skip checks',
'dock.title': 'Delivery Checker',
@@ -429,11 +427,6 @@ export default {
'editor.placeholder': 'Check title',
'editor.save': 'Save',
- 'input.hint':
- 'This goes to the next repair round as checker input — it will not appear as a chat message.',
- 'input.label': 'Extra input for the next repair round',
- 'input.placeholder': 'e.g. run type-check first; if it still fails, just add a risk note.',
-
'list.failedCount': '{{count}} failed',
'list.running': 'Verifying…',
diff --git a/src/features/Acceptance/Run/CheckerDock.tsx b/src/features/Acceptance/Run/CheckerDock.tsx
index dfa1bbe8c9d..fca3c9d726e 100644
--- a/src/features/Acceptance/Run/CheckerDock.tsx
+++ b/src/features/Acceptance/Run/CheckerDock.tsx
@@ -1,5 +1,5 @@
import type { VerifyCheckItem } from '@lobechat/types';
-import { Flexbox, Icon, Input, TextArea } from '@lobehub/ui';
+import { Flexbox, Icon, Input } from '@lobehub/ui';
import { ActionIcon, Button } from '@lobehub/ui/base-ui';
import { createStaticStyles, cssVar, cx, useThemeMode } from 'antd-style';
import {
@@ -144,8 +144,7 @@ interface CheckerDockProps {
/**
* The delivery checker dock — replaces the chat composer during a run. Mirrors
* the reference mock: a collapsible card driving the plan state machine
- * (draft → verifying → failed/repairing → passed) with confirm / edit / skip
- * and a failure feedback panel.
+ * (draft → verifying → failed/repairing → passed) with confirm / edit / skip.
*/
const CheckerDock = memo<CheckerDockProps>(({ operationId, embedded }) => {
const { isDarkMode } = useThemeMode();
@@ -157,7 +156,6 @@ const CheckerDock = memo<CheckerDockProps>(({ operationId, embedded }) => {
const [expanded, setExpanded] = useState(true);
const [editing, setEditing] = useState(false);
const [draftItems, setDraftItems] = useState<VerifyCheckItem[]>([]);
- const [inputText, setInputText] = useState('');
const [busy, setBusy] = useState(false);
const plan = state?.verifyPlan ?? [];
@@ -179,8 +177,6 @@ const CheckerDock = memo<CheckerDockProps>(({ operationId, embedded }) => {
const onConfirm = () => run(() => verifyService.confirmPlan(operationId));
const onSkip = () => run(() => verifyService.skipPlan(operationId));
- const onForceDeliver = () => run(() => verifyService.skipPlan(operationId));
-
const startEdit = () => {
setDraftItems(plan.map((i) => ({ ...i })));
setEditing(true);
@@ -316,31 +312,6 @@ const CheckerDock = memo<CheckerDockProps>(({ operationId, embedded }) => {
</Button>
</Flexbox>
);
- if (phase === 'failed')
- return (
- <>
- <div className={styles.inputPanel}>
- <div style={{ fontSize: 12, fontWeight: 600, marginBottom: 6 }}>{t('input.label')}</div>
- <TextArea
- placeholder={t('input.placeholder')}
- rows={2}
- value={inputText}
- onChange={(e) => setInputText(e.target.value)}
- />
- <div className={styles.desc} style={{ marginTop: 6 }}>
- {t('input.hint')}
- </div>
- </div>
- <Flexbox horizontal gap={8} style={{ flexWrap: 'wrap', marginTop: 12 }}>
- <Button size="small" onClick={startEdit}>
- {t('dock.edit')}
- </Button>
- <Button danger loading={busy} size="small" onClick={onForceDeliver}>
- {t('dock.forceDeliver')}
- </Button>
- </Flexbox>
- </>
- );
if (phase === 'repairing')
return (
<div className={styles.inputPanel} style={{ marginTop: 10 }}>