copy: second-round copy review across console, settings, agent and server messages

- Trim descriptions, empty states, confirm buttons and toasts to facts
- Unify terms per glossary: 待处理/待识别/整理记录/运行记录/凭证/子会话/Agent 上游
- Subscription-login termsNote states facts only (borrowed client identity, ToS/ban risk)
- Shorter, concrete goal templates for built-in Agent checks
- Human-readable nouns instead of table names in instance CRUD errors
- Audit labels for pi_upstream / schedule / automation_grant actions
- Glossary: add 上游、订阅登录、凭证、定时任务、巡检、运行记录、子会话、停止、持续授权

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-09-28 13:29:42 +08:00
1 parent c67f6a9682
commit 31a54186c7
58 files changed
+200 -188

No files matched your search

@@ -37,16 +37,16 @@ import {
import { SubagentTree } from "./agent-subagent-tree.tsx";
import { useAgentStream } from "./use-agent-stream.ts";
const TRIGGER_LABEL = { user: "用户发起", event: "事件触发", schedule: "定时", subagent: "子代理" } as const;
const TRIGGER_LABEL = { user: "用户发起", event: "事件触发", schedule: "定时", subagent: "子会话" } as const;
export const MODE_HELP: Record<AgentMode, { label: string; help: string }> = {
execute: {
label: "授权内执行",
help: "在已授权范围内执行;未授权的动作会被服务端拒绝并在对话里标出。",
help: "未授权的动作会被服务端拒绝并在对话里标出。",
},
plan_only: {
label: "只要方案",
help: "只调查、出方案,不执行任何写操作;满意后可一键按方案执行。",
help: "只调查、出方案,不执行写操作。之后可按方案执行。",
},
};
@@ -134,7 +134,7 @@ export function GoalComposer({
<div className="pt-2">
<p className="mb-1.5 flex items-center gap-1.5 px-1 text-meta text-muted-foreground">
<Sparkles aria-hidden className="size-3.5" />
试试这些
常用目标
</p>
<ul aria-label="快捷目标" className="flex flex-col gap-1.5">
{suggestions.map((s) => (
@@ -267,9 +267,7 @@ export function AgentRunPanel({
className="flex items-center gap-2 rounded-xl border border-warning/40 bg-warning/10 px-3 py-2 text-caption text-warning"
>
<WifiOff aria-hidden className="size-4 shrink-0" />
<span className="min-w-0 flex-1">
实时连接中断,正在重连;恢复后按 after= 补读漏掉的事件,期间每 2.5 秒轮询兜底。
</span>
<span className="min-w-0 flex-1">实时连接中断,正在重连。期间每 2.5 秒轮询一次。</span>
</div>
) : null}
{live.error ? (
@@ -320,7 +318,7 @@ export function AgentRunPanel({
maxRows={6}
maxLength={8000}
aria-label="追加消息"
placeholder={streaming ? "补充或纠正(运行中也可追加)" : "追加消息,继续这次会话"}
placeholder={streaming ? "补充或纠正(运行中也可追加)" : "追加消息"}
toolbar={
mode === "plan_only" && finished ? (
<Button type="button" size="sm" variant="outline" onClick={executePlan} disabled={create.isPending}>
@@ -334,7 +332,7 @@ export function AgentRunPanel({
/>
<p className="px-1 text-meta text-muted-foreground">
{mode === "plan_only" && finished
? "「按方案执行」会以授权内执行模式新开一次运行,仍受服务端授权校验。"
? "「按方案执行」会新开一次授权内执行的运行,仍受服务端授权校验。"
: MODE_HELP[mode].help}{" "}
Enter 发送,Shift+Enter 换行{streaming ? ",停止 = 中止本次运行" : ""}。
</p>
@@ -344,12 +342,12 @@ export function AgentRunPanel({
open={confirmStop}
onOpenChange={setConfirmStop}
title="停止这次运行?"
description="停止后续步骤;已经完成的外部动作(如已提交的下载)不会被撤销。"
confirmLabel="停止"
description="后续步骤不再执行,已完成的外部动作(如已提交的下载)不会撤销。"
confirmLabel="停止运行"
destructive
onConfirm={() =>
abort.mutateAsync(r.id).then(
() => toast.success("已请求中止"),
() => toast.success("已请求停止"),
(e) => {
toast.error(errorMessage(e));
throw e;