Clean Admin UI copy left from Manager-era labels.

Map legacy manager specialists to generalist labels, rename stream status off 主控, and drop unused Manager i18n / decision-mode leftovers.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-11 03:17:18 +08:00
parent 8fce428540
commit e4b7b8d12e
2 changed files with 6 additions and 11 deletions

View file

@ -381,7 +381,6 @@ const I18N = {
"apiGrants.forbidden": "仅 administrator 账号且具备团队写权限(或 owner 角色)可管理 API 使用权。",
"apiGrants.openModels": "前往模型管理",
"models.useGlobal": "(跟随全局)",
"models.role.manager": "编排 / Manager",
"models.role.ops": "网络运维",
"models.role.generalist": "通用",
"models.role.image": "图像",
@ -864,7 +863,6 @@ const I18N = {
"apiGrants.forbidden": "Only the administrator console user with team write permission (or owner role) can manage API access grants.",
"apiGrants.openModels": "Go to Model Management",
"models.useGlobal": "(use global)",
"models.role.manager": "Manager",
"models.role.ops": "Network ops",
"models.role.generalist": "Generalist",
"models.role.image": "Image",
@ -4884,7 +4882,6 @@ async function renderPlugins() {
turn_max_tool_rounds: 100,
turn_max_context_messages: 80,
turn_runner_impl: "oclaw",
manager_decision_mode: "",
sse_queue_maxsize: 2000,
tool_log_max_chars: 200000,
enable_mcp_tools: true,
@ -5218,7 +5215,6 @@ async function renderPlugins() {
turn_max_tool_workers: Number(turnMaxWorkersInput.value || 8),
turn_max_tool_rounds: Number(turnMaxRoundsInput.value || 100),
turn_max_context_messages: Number(turnMaxCtxInput.value || 80),
// manager_decision_mode is legacy-only; no longer submitted.
sse_queue_maxsize: Number(sseQueueMaxsizeInput.value || 2000),
tool_log_max_chars: Number(toolLogMaxCharsInput.value || 200000),
enable_mcp_tools: !!enableMcpToolsCb.checked,

View file

@ -62,7 +62,7 @@ const I18N = {
"chat.compressHistoryFail": "压缩失败:{error}",
"chat.tools.off": "关",
"chat.tools.on": "开",
"chat.status.oclaw": "主控",
"chat.status.oclaw": "助手",
"chat.status.agent": "专家",
"chat.status.tool": "工具",
"chat.status.plan": "规划",
@ -182,7 +182,6 @@ const I18N = {
"chat.specialistImageShort": "图像",
"chat.specialistVideoShort": "视频",
"chat.specialistMemoryShort": "记忆",
"chat.specialistManagerSelfShort": "全能者",
"chat.attachment.download": "下载",
"chat.attachment.preview": "预览",
"chat.attachment.previewLoading": "加载中…",
@ -252,7 +251,7 @@ const I18N = {
"chat.compressHistoryFail": "Compaction failed: {error}",
"chat.tools.off": "Off",
"chat.tools.on": "On",
"chat.status.oclaw": "Controller",
"chat.status.oclaw": "Assistant",
"chat.status.agent": "Agent",
"chat.status.tool": "Tool",
"chat.status.plan": "Plan",
@ -372,7 +371,6 @@ const I18N = {
"chat.specialistImageShort": "Image",
"chat.specialistVideoShort": "Video",
"chat.specialistMemoryShort": "Memory",
"chat.specialistManagerSelfShort": "Manager",
"chat.attachment.download": "Download",
"chat.attachment.preview": "Preview",
"chat.attachment.previewLoading": "Loading…",
@ -861,15 +859,16 @@ function interactionModeLabel(mode) {
function specialistLabel(specialist) {
const s = String(specialist || "").toLowerCase();
if (s === "manager") return currentLang === "zh" ? "主控" : "Manager";
if (s === "manager_self") return t("chat.specialistManagerSelfShort");
// Legacy manager / manager_self / main aliases display as generalist.
if (s === "manager" || s === "manager_self" || s === "main" || s === "comprehensive") {
return t("chat.specialistGeneralistShort");
}
if (s === "ops") return t("chat.specialistOpsShort");
if (s === "image") return t("chat.specialistImageShort");
if (s === "video") return t("chat.specialistVideoShort");
if (s === "memory") return t("chat.specialistMemoryShort");
return t("chat.specialistGeneralistShort");
}
function memoryModeShortLabel(memoryMode) {
const mm = String(memoryMode || "default").toLowerCase();
if (mm === "store_only") return t("chat.memoryModeStoreOnlyShort");