From 82c308052596003993fac436d503346d426c77cd Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 3 Mar 2026 12:00:03 -0600 Subject: [PATCH] Fix issue live-run routes bypassing agent id normalizer --- server/src/routes/agents.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/routes/agents.ts b/server/src/routes/agents.ts index f0a00a45..94a2e4f4 100644 --- a/server/src/routes/agents.ts +++ b/server/src/routes/agents.ts @@ -1269,8 +1269,8 @@ export function agentRoutes(db: Db) { res.json(result); }); - router.get("/issues/:id/live-runs", async (req, res) => { - const rawId = req.params.id as string; + router.get("/issues/:issueId/live-runs", async (req, res) => { + const rawId = req.params.issueId as string; const issueSvc = issueService(db); const isIdentifier = /^[A-Z]+-\d+$/i.test(rawId); const issue = isIdentifier ? await issueSvc.getByIdentifier(rawId) : await issueSvc.getById(rawId); @@ -1307,8 +1307,8 @@ export function agentRoutes(db: Db) { res.json(liveRuns); }); - router.get("/issues/:id/active-run", async (req, res) => { - const rawId = req.params.id as string; + router.get("/issues/:issueId/active-run", async (req, res) => { + const rawId = req.params.issueId as string; const issueSvc = issueService(db); const isIdentifier = /^[A-Z]+-\d+$/i.test(rawId); const issue = isIdentifier ? await issueSvc.getByIdentifier(rawId) : await issueSvc.getById(rawId);