feat: add MCP research access and browser key management

This commit is contained in:
yuxuanhui
2026-09-09 16:18:27 +08:00
parent 4debca7dbd
commit 45238280e3
47 changed files with 2642 additions and 44 deletions
+11
View File
@@ -177,6 +177,17 @@ export function BacktestPage({
}
}, [action]);
useEffect(() => {
const locate = () => {
if (!location.hash.startsWith("#backtests?")) return;
const id = new URLSearchParams(location.hash.split("?")[1]).get("run_id");
if (id && /^[a-f0-9-]{36}$/i.test(id)) openRun(id);
};
locate();
window.addEventListener("hashchange", locate);
return () => window.removeEventListener("hashchange", locate);
}, []);
async function perform(work: () => Promise<void>) {
setBusy(true);
setError("");