The open source coding agent.
TypeScript
fix(server): update server URL normalization to retain path (#6647)
OpeOginni308e8060dc76
diff --git a/packages/app/src/context/server.tsx b/packages/app/src/context/server.tsxindex 76b7f3481f9..beb00be87e2 100644--- a/packages/app/src/context/server.tsx+++ b/packages/app/src/context/server.tsx@@ -11,8 +11,7 @@ export function normalizeServerUrl(input: string) {const trimmed = input.trim()if (!trimmed) returnconst withProtocol = /^https?:\/\//.test(trimmed) ? trimmed : `http://${trimmed}`- const cleaned = withProtocol.replace(/\/+$/, "")- return cleaned.replace(/^(https?:\/\/[^/]+).*/, "$1")+ return withProtocol.replace(/\/+$/, "")}export function serverDisplayName(url: string) {