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:
+1
-1
@@ -27,7 +27,7 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
|
|||||||
// Inject correct server baseUrl to ensure SDK client uses dynamic port
|
// Inject correct server baseUrl to ensure SDK client uses dynamic port
|
||||||
// Priority: ctx.serverUrl > fallback to existing client baseUrl
|
// Priority: ctx.serverUrl > fallback to existing client baseUrl
|
||||||
if (ctx.serverUrl) {
|
if (ctx.serverUrl) {
|
||||||
injectServerBaseUrlIntoClient(ctx.client, ctx.serverUrl.toString())
|
injectServerBaseUrlIntoClient(ctx.client, ctx.serverUrl.origin)
|
||||||
}
|
}
|
||||||
|
|
||||||
injectServerAuthIntoClient(ctx.client)
|
injectServerAuthIntoClient(ctx.client)
|
||||||
|
|||||||
Reference in New Issue
Block a user