chore: remove dead inline /api/agents route handler in server.ts (#2945)

Co-authored-by: Siri-Ray <2667192167@qq.com>
This commit is contained in:
hahalolo 2026-05-28 16:54:11 +08:00 committed by GitHub
parent a7e7d5db18
commit fe24c8addf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5733,16 +5733,6 @@ export async function startServer({
res.json({ ok: true }); res.json({ ok: true });
}); });
app.get('/api/agents', async (_req, res) => {
try {
const config = await readAppConfig(RUNTIME_DATA_DIR);
const list = await detectAgents(config.agentCliEnv ?? {});
res.json({ agents: list });
} catch (err) {
res.status(500).json({ error: String(err) });
}
});
// AMR (vela) login integration — see `apps/daemon/src/integrations/vela.ts`. // AMR (vela) login integration — see `apps/daemon/src/integrations/vela.ts`.
// The vela CLI owns the device-authorization UX (URL + code + browser open); // The vela CLI owns the device-authorization UX (URL + code + browser open);
// these routes only surface enough state for Open Design's Settings card to // these routes only surface enough state for Open Design's Settings card to