diff --git a/src/components/openclaw/ToolsPanel.tsx b/src/components/openclaw/ToolsPanel.tsx index 65b1f4620..5d8ec09d2 100644 --- a/src/components/openclaw/ToolsPanel.tsx +++ b/src/components/openclaw/ToolsPanel.tsx @@ -77,10 +77,10 @@ const ToolsPanel: React.FC = () => { const handleSave = async () => { try { - const { allow, deny, ...other } = config; + const { profile, allow, deny, ...other } = config; const newConfig: OpenClawToolsConfig = { ...other, - profile: config.profile, + profile, allow: allowList.map((item) => item.value).filter((s) => s.trim()), deny: denyList.map((item) => item.value).filter((s) => s.trim()), }; diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index afad6ea35..a57a3a51b 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -1373,12 +1373,6 @@ "unsupportedProfileTitle": "Unsupported tools profile detected", "unsupportedProfileDescription": "The current tools.profile value '{{value}}' is not in the supported OpenClaw list. It will be preserved until you choose a new value.", "unsupportedProfileLabel": "unsupported", - "profiles": { - "default": "Default", - "strict": "Strict", - "permissive": "Permissive", - "custom": "Custom" - }, "allowList": "Allow List", "denyList": "Deny List", "patternPlaceholder": "Tool name or pattern", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 915d4a705..8567919d0 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -1373,12 +1373,6 @@ "unsupportedProfileTitle": "未対応のツールプロファイルを検出しました", "unsupportedProfileDescription": "現在の tools.profile の値 '{{value}}' は OpenClaw の対応リストにありません。新しい値を選択するまでこの値を保持します。", "unsupportedProfileLabel": "未対応", - "profiles": { - "default": "デフォルト", - "strict": "厳格", - "permissive": "寛容", - "custom": "カスタム" - }, "allowList": "許可リスト", "denyList": "拒否リスト", "patternPlaceholder": "ツール名またはパターン", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 45bacbb1f..449ccee3f 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -1373,12 +1373,6 @@ "unsupportedProfileTitle": "检测到不受支持的工具配置", "unsupportedProfileDescription": "当前 tools.profile 的值“{{value}}”不在 OpenClaw 支持列表内。在你手动选择新值之前,它会被保留。", "unsupportedProfileLabel": "不受支持", - "profiles": { - "default": "默认", - "strict": "严格", - "permissive": "宽松", - "custom": "自定义" - }, "allowList": "允许列表", "denyList": "拒绝列表", "patternPlaceholder": "工具名称或模式",