fix(servers): test edited server URLs with the stored password

Test always checks the draft URL. When the password is left blank, the stored password is reused only if the draft URL has the same origin as the saved server.
This commit is contained in:
Chris Scott committed 2026-10-19 11:37:40 -04:00
1 parent e707e80b91
commit 1659664d53
6 files changed
+131 -22

No files matched your search

+1
View File
@@ -53,6 +53,7 @@ export const TestOpenCodeServerRequestSchema = z.object({
baseUrl: HttpUrlSchema,
username: z.string().trim().min(1).max(100).default(OPENCODE_SERVER_USERNAME),
password: z.string().max(1024).optional(),
serverId: z.string().trim().min(1).optional(),
});
export const OpenCodeServerTestResultSchema = z.object({