fix(backtest): keep run history available while metrics load (RP12)

This commit is contained in:
Boki 2026-10-27 14:14:30 -04:00
parent 32f40ee753
commit a050c71012
4 changed files with 312 additions and 53 deletions

View file

@ -456,7 +456,7 @@ export async function fixture(browser: Browser, native = false) {
const response = await routes.fetch(request);
const delay = responseDelay;
if (delay?.path === pathname) {
responseDelay = undefined; // Only the selected read, not run-list metric reads.
responseDelay = undefined; // Delay only the next matching read.
delay.captured.resolve();
await delay.release.promise;
delay.delivered.resolve();