feat: add MCP research access and browser key management
This commit is contained in:
@@ -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("");
|
||||
|
||||
Reference in New Issue
Block a user