diff --git a/web/public/app.js b/web/public/app.js index 0aad676..97a478a 100644 --- a/web/public/app.js +++ b/web/public/app.js @@ -984,6 +984,13 @@ async function tryResumeActiveJob() { if (!id) return false; try { const snap = await api(`/api/exploit/${id}`); + // Only resume a job that is STILL RUNNING. A finished/stopped job must not + // hijack every page reload onto its old live screen — clear it and fall + // through to the normal landing view. + if (snap.done || snap.state === 'complete' || snap.state === 'interrupted' || snap.state === 'stopped') { + localStorage.removeItem(ACTIVE_JOB_KEY); + return false; + } attachLiveJob(id, snap.target, snap.name, snap.pinnedAgents); return true; } catch { @@ -4459,9 +4466,12 @@ function renderGraphMemory(x) { const votes = finding.votes || ''; const reviewStatus = finding.review_status || props.status || ''; const agent = finding.agent || ''; - const whereText = finding.where_text || finding.proof || props.description || ''; - const whatText = finding.what_text || ''; - const fixText = finding.fix_text || ''; + const whereText = finding.where_text || finding.proof || finding.endpoint || props.description || ''; + const payloadText = finding.payload || ''; + const evidenceText = finding.evidence || ''; + const impactText = finding.impact || ''; + const whatText = finding.what_text || impactText || ''; + const fixText = finding.fix_text || finding.remediation || ''; descBox.innerHTML = `
${esc(whereText)}
${esc(whatText)}
${esc(whereText)}
${esc(payloadText)}${esc(evidenceText)}${esc(whatText)}
${esc(fixText)}