fix(security): sanitize session bootstrap failures

This commit is contained in:
User
2026-07-14 23:13:21 +02:00
parent f58b1d84ae
commit d2d8029ff2
4 changed files with 62 additions and 10 deletions
@@ -109,11 +109,12 @@ test("close calls onClose without mutating the activity log", async () => {
];
useSessionStore.setState({ activityLog });
render(<ModelActivityPanel onClose={onClose} />);
const expectedLog = useSessionStore.getState().activityLog.map((entry) => ({ ...entry }));
await userEvent.click(screen.getByRole("button", { name: /close model activity/i }));
expect(onClose).toHaveBeenCalledOnce();
expect(useSessionStore.getState().activityLog).toEqual(activityLog);
expect(useSessionStore.getState().activityLog).toEqual(expectedLog);
});
test("isNearBottom includes the 48px boundary", () => {