feat(FN-2999): harden research lifecycle with idempotent cancel/retry, SSE

Merges FN-2999 research hardening (idempotent cancel/retry routes, aligned SSE event wiring, and cleaned status handling in the core research store and orchestrator) plus UI improvements to AgentDetailView header actions and planning disclosure UX in the modal, with a CSS token fallback fix in Scrip

Fusion-Task-Id: FN-2999
This commit is contained in:
Fusion
2026-05-03 09:06:09 -07:00
committed by gsxdsm
parent 70a0979394
commit 7f3fb7799d
16 changed files with 307 additions and 79 deletions

View File

@@ -1306,10 +1306,9 @@ export default function kbExtension(pi: ExtensionAPI) {
};
}
researchStore.updateStatus(params.id, "cancelled", { cancelledAt: new Date().toISOString(), error: "Cancelled via extension" });
const updated = researchStore.getRun(params.id)!;
const updated = researchStore.requestCancellation(params.id);
return {
content: [{ type: "text", text: `Marked research run ${params.id} as cancelled.` }],
content: [{ type: "text", text: `Requested cancellation for research run ${params.id} (status: ${updated.status}).` }],
details: toResearchRunDetails(updated),
};
},