Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.
fix(servers): reject whitespace-only id, title and url in POST /servers/custom (#376)
Felix-Ayush51e238c680e4
diff --git a/server/src/plugins/routes.ts b/server/src/plugins/routes.tsindex 8e9e22c8..4cd48760 100644--- a/server/src/plugins/routes.ts+++ b/server/src/plugins/routes.ts@@ -232,7 +232,7 @@ export function createPluginRoutes(url?: string;credentialId?: string;} | null;- if (!body?.id || !body.title || !body.url) {+ if (!body?.id?.trim() || !body?.title?.trim() || !body?.url?.trim()) {return context.json({ error: "A name, a title and a URL are required." },400,@@ -241,9 +241,9 @@ export function createPluginRoutes(try {const server = await store.addCustomServer({- id: body.id,- title: body.title,- url: body.url,+ id: body.id.trim(),+ title: body.title.trim(),+ url: body.url.trim(),credentialId: body.credentialId,by: actorEmail(context),});