#4520·harper

Settings changed on the extension's options page take up to a minute to reach open pages

Author: brakloCreated Oct 1, 2026Updated Oct 1, 2026

Describe the bug When I change a setting on the options page of the browser extension, for example disable a rule or add a word to the user dictionary, pages that are already open keep showing the old lints for up to a minute.

ProtocolClient in packages/chrome-plugin keeps a static lintCache with a 60 s TTL, keyed by text, domain and lint options. setLintConfig() and setIsolateEnglish() clear it, but they run on the options page, which has its own copy of the cache. The caches in the content scripts are not cleared, so the content script keeps getting the old result for the unchanged text until the entry expires.

To Reproduce

  1. Open a page with a textarea and type I could of gone. Harper highlights "could of".
  2. Open the extension's options page and disable the ModalOf rule.
  3. Go back to the page. The highlight is still there. It disappears about 60 seconds after step 1.

If you type a space at the end in step 3, the highlight disappears, and if you delete the space again, it comes back until the cache entry expires.

Expected behavior Open pages show lints for the new settings right away.

Platform Chromium (through a Playwright test) with the extension built from master 71c4d39a. I expect Firefox to behave the same, because the code is shared, but I have not tested it there.

Additional context I ran into this while adding a keyboard shortcut that switches the checking language, where the language changes while the text stays the same. A fix with a test is ready on braklo:pr/lint-cache-settings. GitHub does not let me open another pull request here at the moment, so I will open it as soon as I can. I worked on this with an AI agent. I have reviewed the AI parts and edited them when appropriate.