From 8d142c3332f4e2c37cb05eafeae6b40d095fb2a3 Mon Sep 17 00:00:00 2001 From: StevenSF1998 Date: Sun, 12 Apr 2026 17:49:37 +0800 Subject: [PATCH] fix: encode public key in signer URL to ensure proper formatting --- src/commands/agent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/agent.ts b/src/commands/agent.ts index e08f91e..b731c51 100644 --- a/src/commands/agent.ts +++ b/src/commands/agent.ts @@ -116,7 +116,7 @@ async function runAddSignerFlow( let requestId: string; try { const res = await api.addSignerWithUrl(agent.id); - signerUrl = `${res.data.url}&publicKey=${publicKey}`; + signerUrl = `${res.data.url}&publicKey=${encodeURIComponent(publicKey)}`; requestId = res.data.requestId; } catch (err) { outputError(