Gnome toolbar for Tangled code review.

perf(helper): keep patch and repo lookups for six hours while Jetstream watches #42

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

Patch lookups (listPatches) and repo metadata (getRepoByRepoDid) now stay cached for six hours while Jetstream has been connected since they were read. Jetstream patch and manifest events already invalidate them. Otherwise they keep their 30-minute and one-hour expiries. So does an answer read just after an event, because Bobbin may not have indexed the event yet.

In the live helper's fetch log, these two caches expired together every 30 and 60 minutes: bursts of 25 listPatches and 23 getRepoByRepoDid requests. That was about 70 of the ~400 api.tangled.org requests per hour.

🤖 Generated with Claude Code

Commits 0