文案(智能体):停止 / 方案 / 子会话 / 压缩上下文等按术语表与 human-copy 重写

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-07 01:49:33 +08:00
1 parent 0338037a96
commit 775d1589e4
16 files changed
+49 -49

No files matched your search

@@ -143,7 +143,7 @@ export function OptionsCard({ runId, view, waiting }: { runId: string; view: Opt
const risks = options.flatMap((o) => o.risks.map((r) => ({ key: `${o.id}:${r}`, option: o.title, text: r })));
const submit = (optionId: string | null) => {
if (optionId === null && !reason.trim()) {
toast.error("写一句不要的原因,智能体按它调整");
toast.error("写一下为什么都不要");
return;
}
setPicking(optionId ?? "__none__");
@@ -153,7 +153,7 @@ export function OptionsCard({ runId, view, waiting }: { runId: string; view: Opt
onSuccess: () => {
setSent({ optionId, reason: reason.trim() });
const o = view.options.find((x) => x.id === optionId);
toast.success(optionId ? (o?.action?.approves ? "已选定并批准" : "已选定") : "已退回,智能体调整方案");
toast.success(optionId ? (o?.action?.approves ? "已选定并批准" : "已选定") : "已发送,智能体会重新给方案");
},
onError: (e) => toast.error(errorMessage(e)),
onSettled: () => setPicking(null),
@@ -286,7 +286,7 @@ export function OptionsCard({ runId, view, waiting }: { runId: string; view: Opt
disabled={!reason.trim() || choose.isPending}
onClick={() => submit(null)}
>
退回
发送
</Button>
</div>
) : null}
@@ -336,7 +336,7 @@ export function InlineApproval({ view, stepTitle }: { view: ApprovalView; stepTi
...(s === "rejected" && reason.trim() ? { reason: reason.trim() } : {}),
},
{
onSuccess: () => toast.success(s === "approved" ? "已批准,智能体继续执行" : "已拒绝,智能体按理由调整"),
onSuccess: () => toast.success(s === "approved" ? "已批准,智能体继续执行" : "已拒绝,智能体会调整做法"),
onError: (e) => toast.error(errorMessage(e)),
},
);
@@ -364,7 +364,7 @@ export function InlineApproval({ view, stepTitle }: { view: ApprovalView; stepTi
value={reason}
maxLength={2000}
aria-label="拒绝理由"
placeholder="理由或建议(可选),智能体按它调整"
placeholder="理由或建议,可不填"
onChange={(e) => setReason(e.target.value)}
/>
) : null}