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
@@ -34,6 +34,7 @@ describe('inputBlocker', () => {
function: expect.stringContaining('__gemini_input_blocker'),
},
undefined,
true,
);
});
@@ -96,6 +97,7 @@ describe('inputBlocker', () => {
function: expect.stringContaining('__gemini_input_blocker'),
}),
undefined,
true,
);
expect(mockBrowserManager.callTool).toHaveBeenNthCalledWith(
2,
@@ -104,6 +106,7 @@ describe('inputBlocker', () => {
function: expect.stringContaining('__gemini_input_blocker'),
}),
undefined,
true,
);
});
});
@@ -118,6 +121,7 @@ describe('inputBlocker', () => {
function: expect.stringContaining('__gemini_input_blocker'),
},
undefined,
true,
);
});
@@ -163,6 +167,7 @@ describe('inputBlocker', () => {
function: expect.stringContaining('__gemini_input_blocker'),
}),
undefined,
true,
);
expect(mockBrowserManager.callTool).toHaveBeenNthCalledWith(
2,
@@ -171,6 +176,7 @@ describe('inputBlocker', () => {
function: expect.stringContaining('__gemini_input_blocker'),
}),
undefined,
true,
);
});
});