[eric] v1.0.14: fix 9Router server.js path, disconnect button, onboarding

This commit is contained in:
ciregenz
2026-03-25 19:17:04 -07:00
parent 1b012d7070
commit bc218c8707
5 changed files with 42 additions and 8 deletions
+9 -2
View File
@@ -306,8 +306,15 @@ const SubscriptionCards: React.FC = () => {
};
const handleDisconnect = async (providerId: string) => {
// TODO: implement disconnect via 9Router API
fetchStatus();
try {
await fetch(`${API_BASE}/agents/subscriptions/disconnect`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ provider: providerId }),
});
} catch {}
// Wait briefly for 9Router to process, then refresh
setTimeout(fetchStatus, 500);
};
if (!status?.running) {