From fec0d99d72a14b04db984a2e00b21b5bab7378af Mon Sep 17 00:00:00 2001 From: redshift <213178690+1ftredsh@users.noreply.github.com> Date: Mon, 1 Jun 2026 16:07:44 +0800 Subject: [PATCH] fix: switch clients commands back to callDaemon Clients management endpoints (/clients, /clients/add, /clients/delete) should route through the daemon directly, not the auth proxy. --- src/utils/clients.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/utils/clients.ts b/src/utils/clients.ts index 0fb722e..4a8d78a 100644 --- a/src/utils/clients.ts +++ b/src/utils/clients.ts @@ -1,5 +1,4 @@ import { - callAuth, callDaemon, loadConfig, getDaemonBaseUrl, @@ -57,7 +56,7 @@ export function getClientsFromStore(store: { getState(): any }): ClientEntry[] { * Use this when running remotely (CLI in remote mode). */ export async function getClientsList(): Promise { - const result = await callAuth("/clients"); + const result = await callDaemon("/clients"); const clients = ( result.output as | { @@ -108,7 +107,7 @@ export async function addDaemonClient( return { client, created: false }; } - const result = await callAuth("/clients/add", { + const result = await callDaemon("/clients/add", { method: "POST", body: { name, id: derivedId }, }); @@ -160,7 +159,7 @@ export async function listClientsAction(): Promise { export async function deleteClientAction(id: string): Promise { await ensureDaemonRunning(); - const result = await callAuth("/clients/delete", { + const result = await callDaemon("/clients/delete", { method: "POST", body: { id }, });