fix(workflow): 面板 UI 字符串英文化

WorkflowsPanel 中 4 处面向用户的中文(onDone 错误消息、键位提示行)
改为英文;其他面板组件(AgentList/TabsBar)原本已是英文。代码注释
保留中文,与 workflow 模块惯例一致。

Co-Authored-By: glm-5.2 <zai-org@claude-code-best.win>
This commit is contained in:
claude-code-best
2026-06-14 10:16:35 +08:00
parent 3edc370aa1
commit 5aa39c36b7

View File

@@ -117,14 +117,14 @@ export function WorkflowsPanel({
if (!focused) return;
const canUseTool = context.canUseTool;
if (!canUseTool) {
onDone('resume 需要 canUseTool 上下文,请在主会话中用 /<name> resume 重试。');
onDone('resume needs canUseTool context; run /<name> resume from the main session.');
return;
}
void svc
.launch({ resumeFromRunId: focused.runId, name: focused.workflowName }, context, canUseTool)
.catch(e => onDone(`resume 失败:${(e as Error).message}`));
.catch(e => onDone(`resume failed: ${(e as Error).message}`));
},
newRun: () => onDone('Tip: 用 /<name> 启动命名 workflow或通过 Workflow 工具带 name 参数。'),
newRun: () => onDone('Tip: start a named workflow with /<name>, or pass name via the Workflow tool.'),
quit: () => onDone(),
};
useWorkflowKeyboard(handlers);
@@ -182,7 +182,7 @@ export function WorkflowsPanel({
</Box>
<Box marginTop={1}>
<Text color="subtle">Tab run · / · / · x kill · r resume · q quit</Text>
<Text color="subtle">Tab switch run · / focus · / move · x kill · r resume · q quit</Text>
</Box>
</Box>
);