From cc6ae4bfedf660a8f1fd9ebb70c117f4022978f1 Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Sat, 11 Oct 2025 16:52:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BF=9D=E5=AD=98=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Settings.tsx | 42 +++++++++++-------------------------- src/locales/en/common.json | 2 -- src/locales/zh/common.json | 2 -- 3 files changed, 12 insertions(+), 34 deletions(-) diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index fced1dd..c0dac16 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -658,37 +658,19 @@ export const Settings: React.FC = ({ {/* Cleanup Period */}
-
- { - const value = e.target.value ? parseInt(e.target.value) : undefined; - updateSetting("cleanupPeriodDays", value); - }} - disabled={settings?.cleanupPeriodDays === -1} - className="flex-1" - /> -
- { - updateSetting("cleanupPeriodDays", checked ? -1 : undefined); - }} - /> - -
-
+ { + const value = e.target.value ? parseInt(e.target.value) : undefined; + updateSetting("cleanupPeriodDays", value); + }} + />

- {settings?.cleanupPeriodDays === -1 - ? t('settings.generalOptions.chatRetentionPermanent') - : t('settings.generalOptions.chatRetentionDesc')} + {t('settings.generalOptions.chatRetentionDesc')}

diff --git a/src/locales/en/common.json b/src/locales/en/common.json index 1613e2e..3cf473f 100644 --- a/src/locales/en/common.json +++ b/src/locales/en/common.json @@ -426,8 +426,6 @@ "verboseOutputDesc": "Show full bash and command outputs", "chatRetention": "Chat Transcript Retention (days)", "chatRetentionDesc": "How long to retain chat transcripts locally (default: 30 days)", - "chatRetentionPermanent": "Permanent retention enabled, chat records will not be automatically deleted", - "permanentRetention": "Permanent Retention", "claudeCodeInstallation": "Claude Code Installation", "choosePreferredInstallation": "Choose your preferred Claude Code installation.", "loadingAvailableInstallations": "Loading available installations...", diff --git a/src/locales/zh/common.json b/src/locales/zh/common.json index 066478a..247ba31 100644 --- a/src/locales/zh/common.json +++ b/src/locales/zh/common.json @@ -413,8 +413,6 @@ "verboseOutputDesc": "显示完整的 bash 和命令输出", "chatRetention": "聊天记录保留期 (天)", "chatRetentionDesc": "本地保留聊天记录的时长(默认:30 天)", - "chatRetentionPermanent": "已启用永久保存,聊天记录将不会被自动删除", - "permanentRetention": "永久保存", "claudeCodeInstallation": "Claude Code 安装", "choosePreferredInstallation": "选择您偏好的 Claude Code 安装。", "loadingAvailableInstallations": "正在加载可用安装...",