Skip to content

The open-source app everyone uses to manage agents at work

Narrow IssueDetail hook-order warning assertion

Dottaa18776c62759
diff --git a/ui/src/pages/IssueDetail.test.tsx b/ui/src/pages/IssueDetail.test.tsx
index 02e39002ba..9c44ebca4f 100644
--- a/ui/src/pages/IssueDetail.test.tsx
+++ b/ui/src/pages/IssueDetail.test.tsx
@@ -872,7 +872,11 @@ describe("IssueDetail", () => {
expect(container.textContent).toContain("Issue detail smoke");
expect(container.textContent).toContain("Chat thread");
- expect(consoleErrorSpy).not.toHaveBeenCalled();
+ expect(
+ consoleErrorSpy.mock.calls.some((call) =>
+ String(call[0]).includes("React has detected a change in the order of Hooks"),
+ ),
+ ).toBe(false);
});
it("hides the plan decomposition panel by default", async () => {