fix(plugin): normalize injected server base URL

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-03-12 13:11:44 +09:00
parent a2687a8d02
commit fd69f6ed0e
+1 -1
View File
@@ -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)