fix(a2a-server): replace ApprovalMode.YOLO with wildcard policy check

This commit is contained in:
Spencer
2026-03-20 06:09:14 +00:00
parent 12c43c1922
commit 402553be41
4 changed files with 7 additions and 11 deletions
@@ -4033,7 +4033,6 @@ describe('InputPrompt', () => {
unmount();
});
it('should not show inverted cursor when shell is focused', async () => {
props.isEmbeddedShellFocused = true;
props.focus = false;
@@ -106,12 +106,10 @@ const MockedGeminiClientClass = vi.hoisted(() =>
);
const MockedUserPromptEvent = vi.hoisted(() =>
vi
.fn()
.mockImplementation(() => ({
toLogBody: vi.fn(),
toOpenTelemetryAttributes: vi.fn(),
})),
vi.fn().mockImplementation(() => ({
toLogBody: vi.fn(),
toOpenTelemetryAttributes: vi.fn(),
})),
);
const mockParseAndFormatApiError = vi.hoisted(() => vi.fn());
const mockIsBackgroundExecutionData = vi.hoisted(