From fd69f6ed0e3483a80913c8888b6a9a7d8e522b76 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Thu, 12 Mar 2026 13:11:44 +0900 Subject: [PATCH] fix(plugin): normalize injected server base URL Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 386fca8ed..372e40d3f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -27,7 +27,7 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => { // Inject correct server baseUrl to ensure SDK client uses dynamic port // Priority: ctx.serverUrl > fallback to existing client baseUrl if (ctx.serverUrl) { - injectServerBaseUrlIntoClient(ctx.client, ctx.serverUrl.toString()) + injectServerBaseUrlIntoClient(ctx.client, ctx.serverUrl.origin) } injectServerAuthIntoClient(ctx.client)