The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(web): drop the test block accidentally nested inside the stalled-URL test
liuhao10245e1d5f2f4e57
diff --git a/web/src/components/ChatSidebar.test.tsx b/web/src/components/ChatSidebar.test.tsxindex 48d404aa5c8..bd313e4f31b 100644--- a/web/src/components/ChatSidebar.test.tsx+++ b/web/src/components/ChatSidebar.test.tsx@@ -311,48 +311,6 @@ describe('ChatSidebar event socket reconnect', () => {it('times out a stalled URL request and retries', async () => {let resolveStalledRequest!: (url: string) => voidawait renderSidebar()- it("surfaces a gave-up banner when the sidecar redial budget is exhausted (#95951)", async () => {- // The file-wide onState mock immediately reports "open" to every new- // subscription — that would reset the sidecar's redial counter after- // every rebuild and the budget would never exhaust. Collect the- // handlers and drive the state sequence ourselves.- const originalImpl = gatewayMocks.onState.getMockImplementation();- const stateHandlers: Array<(s: string) => void> = [];- gatewayMocks.onState.mockImplementation((handler: (s: string) => void) => {- stateHandlers.push(handler);- return () => undefined;- });-- try {- const { ChatSidebar } = await import("./ChatSidebar");- await render(<ChatSidebar channel="chat-1" />);- expect(stateHandlers.length).toBeGreaterThanOrEqual(2);-- // Exhaust the budget: each failed attempt rebuilds the client (new- // handler subscribed), so drive the LATEST subscription each round and- // advance past that round's backoff (250 * 2^n, capped at 3s).- for (let round = 0; round < 5; round += 1) {- const handler = stateHandlers[stateHandlers.length - 1];- await act(async () => {- handler("error");- });- await advance(4_000);- expect(gatewayMocks.connect).toHaveBeenCalledTimes(2 + round);- }-- // One more drop with the budget spent: no further connect is- // scheduled, and the banner reports give-up.- const finalHandler = stateHandlers[stateHandlers.length - 1];- await act(async () => {- finalHandler("closed");- });- await advance(4_000);- expect(gatewayMocks.connect).toHaveBeenCalledTimes(6);- expect(container?.textContent ?? "").toContain("gave up after 5 attempts");- } finally {- gatewayMocks.onState.mockImplementation(originalImpl!);- }- });apiMocks.buildWsUrl.mockImplementationOnce(