fix(browser): reset action counter for each agent session and let it ignore internal actions (#24228)

This commit is contained in:
cynthialong0-0
2026-03-31 08:23:19 -07:00
committed by GitHub
parent e293424bb4
commit 3982a252bb
6 changed files with 51 additions and 7 deletions
@@ -205,6 +205,7 @@ export async function injectInputBlocker(
'evaluate_script',
{ function: INPUT_BLOCKER_FUNCTION },
signal,
true,
);
debugLogger.log('Input blocker injected successfully');
} catch (error) {
@@ -232,6 +233,7 @@ export async function removeInputBlocker(
'evaluate_script',
{ function: REMOVE_BLOCKER_FUNCTION },
signal,
true,
);
debugLogger.log('Input blocker removed successfully');
} catch (error) {
@@ -257,6 +259,7 @@ export async function suspendInputBlocker(
'evaluate_script',
{ function: SUSPEND_BLOCKER_FUNCTION },
signal,
true,
);
} catch {
// Non-critical — tool call will still attempt to proceed
@@ -276,6 +279,7 @@ export async function resumeInputBlocker(
'evaluate_script',
{ function: RESUME_BLOCKER_FUNCTION },
signal,
true,
);
} catch {
// Non-critical