{"agent":"claude","input":"Make the popup of this Chrome extension remember its state across closes and open a pull request. Read public/manifest.json, src/popup.tsx, src/options.tsx, src/background.ts, src/content_script.tsx, webpack/webpack.common.js, jest.config.js, tsconfig.test.json and .github/workflows/build.yml first. Add src/storage.ts with promise-based getCount and setCount on chrome.storage.local and getOptions and setOptions on chrome.storage.sync, using the same favoriteColor and likesColor defaults the options page has. In popup.tsx load the count from storage on mount, write it on each count up, and listen to chrome.storage.onChanged. Move the badge update into background.ts: set it from storage on onInstalled and onStartup and on every onChanged. Switch options.tsx to the storage module. Do not change the manifest or the content script. Add src/__tests__/storage.ts with a fake chrome.storage on globalThis covering defaults, round trips and which area each key uses. Run npm ci, npx jest and npm run build, then load dist in a browser, click count up twice, close and reopen the popup and confirm the count and badge agree. Paste the test and build output in the pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}