{"agent":"claude","input":"Write Vitest tests for the Zustand store in this React app. Read package.json, pnpm-lock.yaml (zustand and vitest versions), vite.config.ts, eslint.config.js, .github/workflows/ci.yml, src/stores/auth-store.ts, src/lib/cookies.ts and its test, src/test-utils/cookies.ts, src/main.tsx, and the sign-in form and sign-out dialog with their tests first. The existing component tests mock the store; do not change them. Add src/stores/auth-store.test.ts that runs the real store in the project's browser mode. The store reads a cookie when its module is first evaluated, so each test needs a freshly evaluated store: check whether vi.resetModules() gives you one in browser mode, say what you found, and use a way that does. Cover: the starting state with no cookie; the starting token when the cookie holds one; setUser, setAccessToken, resetAccessToken and reset, including what each writes to or removes from document.cookie; that the user is not restored after a reload; a cookie that is not valid JSON; and a token that contains a semicolon. Test what the code does today, clear the store's cookie before each test with the existing clearCookies helper, and change nothing under src except adding the test file. Run pnpm install --frozen-lockfile, pnpm test:browser:install, pnpm test, pnpm lint, pnpm format:check and pnpm build, and paste their output. In the pull request list every behaviour the tests pinned that looks like a bug, with the test's name, and open it.","resources":[{"url":"https://github.com/your-org/your-app"}]}