diff --git a/web/ChainSourceCard.tsx b/web/ChainSourceCard.tsx index ac711f9..71d0c2f 100644 --- a/web/ChainSourceCard.tsx +++ b/web/ChainSourceCard.tsx @@ -49,8 +49,18 @@ const KINDS: Record = { }; export const ChainSourceCard = () => { - const { data, isLoading } = useServiceConnection('wallet'); - const { save, forget } = useServiceConnectionActions<{ url: string; kind: ChainKind }, SaveResult>('wallet'); + // 'bitcoin-wallet' is the MOUNT name, not a credential key: these hooks build `/${service}/_config`, + // so this must match where the plugin is mounted. It said 'wallet' until the plugin was renamed on + // 2026-08-19, after which every request here 404'd — and the symptom was not an error but a DISABLED + // Save button, because `data` stayed undefined, the seeding effect returned early, and `url` never + // left ''. The URL visible in the field was the placeholder. + // + // The credential rows are keyed on the PROTOCOL ('esplora' / 'nbxplorer'), written by the sidecar's + // config.ts — those are untouched by any rename here. + const { data, isLoading } = useServiceConnection('bitcoin-wallet'); + const { save, forget } = useServiceConnectionActions<{ url: string; kind: ChainKind }, SaveResult>( + 'bitcoin-wallet', + ); const [url, setUrl] = useState(''); const [kind, setKind] = useState('esplora');