diff --git a/src/components/providers/EditProviderDialog.tsx b/src/components/providers/EditProviderDialog.tsx index 672848134..bf7853235 100644 --- a/src/components/providers/EditProviderDialog.tsx +++ b/src/components/providers/EditProviderDialog.tsx @@ -192,6 +192,7 @@ export function EditProviderDialog({ onCancel={() => onOpenChange(false)} initialData={initialData} showButtons={false} + isCurrent={liveSettings !== null} /> ); diff --git a/src/components/providers/forms/ProviderForm.tsx b/src/components/providers/forms/ProviderForm.tsx index 6b2eb8e52..bfc66ca0c 100644 --- a/src/components/providers/forms/ProviderForm.tsx +++ b/src/components/providers/forms/ProviderForm.tsx @@ -118,6 +118,7 @@ interface ProviderFormProps { iconColor?: string; }; showButtons?: boolean; + isCurrent?: boolean; } export function ProviderForm({ @@ -130,6 +131,7 @@ export function ProviderForm({ onManageUniversalProviders, initialData, showButtons = true, + isCurrent = false, }: ProviderFormProps) { const { t } = useTranslation(); const isEditMode = Boolean(initialData); @@ -1496,7 +1498,7 @@ export function ProviderForm({ - {isEditMode && ( + {isEditMode && isCurrent && ( { try { @@ -1527,7 +1529,7 @@ export function ProviderForm({ language="json" />

- {t("claudeConfig.fullSettingsHint")} + {t(isCurrent ? "claudeConfig.fullSettingsHint" : "claudeConfig.fragmentSettingsHint")}

{settingsConfigErrorField} diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index a1da78421..8ae71f854 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -52,6 +52,7 @@ "claudeConfig": { "configLabel": "Claude Code settings.json (JSON) *", "fullSettingsHint": "Full Claude Code settings.json content", + "fragmentSettingsHint": "Config snippet for this provider; will be written to settings.json when activated", "hideAttribution": "Hide AI Attribution", "alwaysThinking": "Extended Thinking", "enableTeammates": "Teammates Mode" diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index f0db90efd..3ce28a6f4 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -52,6 +52,7 @@ "claudeConfig": { "configLabel": "Claude Code settings.json (JSON) *", "fullSettingsHint": "Claude Code の settings.json 全文", + "fragmentSettingsHint": "このプロバイダーの設定スニペット。有効化時に settings.json に書き込まれます", "hideAttribution": "AI署名を非表示", "alwaysThinking": "拡張思考", "enableTeammates": "Teammates モード" diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index fe5360dd8..2a2bfe007 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -52,6 +52,7 @@ "claudeConfig": { "configLabel": "Claude Code 配置 (JSON) *", "fullSettingsHint": "完整的 Claude Code settings.json 配置内容", + "fragmentSettingsHint": "此供应商的配置片段,激活后将写入 settings.json", "hideAttribution": "隐藏 AI 署名", "alwaysThinking": "扩展思考", "enableTeammates": "Teammates 模式"