[eric] browser: thread self-heal + click-effect metric into BATCH sub-clicks too (most clicks are batched; gating only top-level click_index measured ~none of them) + scan batch sub-results for the telemetry

This commit is contained in:
ciregenz
2026-07-07 15:41:07 -07:00
parent f54f474de7
commit 8f2565e027
2 changed files with 16 additions and 7 deletions
@@ -1077,6 +1077,11 @@ async function handleBatch(wv: BrowserWebview, params: Record<string, any>): Pro
}
const urlBefore = wv.getURL();
// Carry the self-heal + click-effect toggles into click sub-actions (most clicks are batched, so gating only the top-level click_index misses them).
if (subType === 'click_index') {
if (params.selfheal !== undefined && subParams.selfheal === undefined) subParams.selfheal = params.selfheal;
if (params.effectProbe && subParams.effectProbe === undefined) subParams.effectProbe = true;
}
let subResult: Record<string, any>;
try {
subResult = await BATCH_DISPATCH[subType](wv, subParams);