From b15b1a3eff9d22335192238e1e2fd305bf314667 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Wed, 11 Nov 2026 10:37:40 +0000 Subject: [PATCH] fix(settings): say why plugin key fields are disabled (vault locked) Plugin API key fields are disabled until the vault is unlocked in this tab, but nothing on the Plugins tab said so. Add a notice with an 'Unlock vault' button that jumps to the passphrase field, and a 'vault locked' placeholder on disabled secret inputs. Co-Authored-By: Claude Opus 5.5 --- apps/web/src/app/settings/sections/plugins.tsx | 15 +++++++++++++++ apps/web/src/app/settings/shared.tsx | 4 +++- apps/web/src/app/settings/vault-panel.tsx | 3 ++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/settings/sections/plugins.tsx b/apps/web/src/app/settings/sections/plugins.tsx index 357c6db..d320d70 100644 --- a/apps/web/src/app/settings/sections/plugins.tsx +++ b/apps/web/src/app/settings/sections/plugins.tsx @@ -320,6 +320,21 @@ export function PluginsSection({ + {!cryptoKey && ( +
+ Vault locked: API key fields are read-only until you unlock the vault with your passphrase. + +
+ )} {error &&

{error}

} {loading &&

loading…

} diff --git a/apps/web/src/app/settings/shared.tsx b/apps/web/src/app/settings/shared.tsx index 1b97896..75d63ee 100644 --- a/apps/web/src/app/settings/shared.tsx +++ b/apps/web/src/app/settings/shared.tsx @@ -241,7 +241,9 @@ export function SecretRow({ const [revealBusy, setRevealBusy] = useState(false); const [revealErr, setRevealErr] = useState(null); const hasReveal = revealed !== undefined; - const placeholder = isSet + const placeholder = disabled + ? 'vault locked: unlock above to edit' + : isSet ? hasReveal && length !== undefined ? `set, ${length} chars — type to overwrite` : `••••••••• (set) — type to overwrite or click reveal` diff --git a/apps/web/src/app/settings/vault-panel.tsx b/apps/web/src/app/settings/vault-panel.tsx index 371ca5b..40ab66b 100644 --- a/apps/web/src/app/settings/vault-panel.tsx +++ b/apps/web/src/app/settings/vault-panel.tsx @@ -226,7 +226,7 @@ export function VaultPanel({ : 'locked: your strategies are paused'; return ( -
+

Vault

{vault ? 'unlocked in this tab' : 'locked'} @@ -236,6 +236,7 @@ export function VaultPanel({