From 3c17e84cce1fd7274937014612261f80f46f95d0 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 30 Jul 2026 21:54:31 +0200 Subject: [PATCH] hackbot-ui: link to the bug from the run detail view --- services/hackbot-ui/components/RunDetail.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/services/hackbot-ui/components/RunDetail.tsx b/services/hackbot-ui/components/RunDetail.tsx index 3c846f6407..e6096be4cd 100644 --- a/services/hackbot-ui/components/RunDetail.tsx +++ b/services/hackbot-ui/components/RunDetail.tsx @@ -19,6 +19,8 @@ function commentPreview(a: RunAction): string | null { const POLL_MS = 4000; +const BUGZILLA_URL = "https://bugzilla.mozilla.org/show_bug.cgi?id="; + function formatBytes(n: number): string { if (n < 1024) return `${n} B`; if (n < 1024 * 1024) return `${(n / 1024).toFixed(1)} KB`; @@ -132,6 +134,8 @@ export function RunDetail({ runId }: { runId: string }) { } const log = extractLog(run); + const bugId = + typeof run.inputs.bug_id === "number" ? run.inputs.bug_id : null; const findings = run.summary?.findings ?? {}; const hasFindings = Object.keys(findings).length > 0; @@ -173,6 +177,20 @@ export function RunDetail({ runId }: { runId: string }) {
{run.run_id}
Agent
{run.agent}
+ {bugId !== null && ( + <> +
Bug
+
+ + Bug {bugId} + +
+ + )}
Inputs
{JSON.stringify(run.inputs)}
Created