Gnome toolbar for Tangled code review.

perf(helper): keep the caches across restarts, so a login doesn't start cold #17

Merged permadeath.com
targeting main from azurite-frogmouth.test.pds.did.bot/gnome-shell-extension-tangled-reviewer:claude/persist-caches
Merged opened by and assigned to permadeath.com
targeting main from azurite-frogmouth.test.pds.did.bot/gnome-shell-extension-tangled-reviewer:claude/persist-caches

The helper's caches now survive restarts. They're saved to cache.json in the state dir after a refresh (at most once a minute) and at exit, and loaded at startup. That covers merge verdicts, comment activity, manifests, latest revisions, branch heads, "no CI here" notes and identities. Entries keep their age, not a monotonic timestamp, so the usual expiry times still apply. Identities are only restored from a file under a day old, nothing over a week old is restored, and an unreadable or foreign file is ignored.

Against permadeath.com and lance.blue, a restart lists PRs after 5.6 s instead of 27 s, and shows every verdict after 8.8 s instead of 43 s. It makes 94 requests over its first two refreshes instead of 264. The file is about 36 KB. tests/cachefile.test.js covers the round trip onto a new clock, and rejecting old or foreign files.

🤖 Generated with Claude Code

Commits 0