Skip to content

fix: bound metadata request caches - #4096

Merged
nwparker merged 1 commit into
mainfrom
nwparker/bound-metadata-request-cache
May 31, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/bound-metadata-request-cache

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

  • Prune stale metadata request cache entries once they pass the 5 minute TTL.
  • Cap each metadata cache store to the newest 500 fetched entries.
  • Add regressions for TTL pruning and newest-entry eviction.

Risk assessment: LOW

  • The change only reduces retained stale metadata in module-level hook caches.
  • Fresh cache hits and in-flight dedupe behavior are unchanged.

Verification

  • pnpm vitest run --config config/vitest.config.ts src/renderer/src/hooks/metadata-request-cache.test.ts
  • pnpm exec oxlint src/renderer/src/hooks/metadata-request-cache.ts src/renderer/src/hooks/metadata-request-cache.test.ts
  • pnpm exec oxfmt --check src/renderer/src/hooks/metadata-request-cache.ts src/renderer/src/hooks/metadata-request-cache.test.ts
  • pnpm run typecheck:web
  • git diff --check

CI: not waiting per instruction.

@nwparker nwparker added the risk:low Low risk change label May 31, 2026
@nwparker
nwparker merged commit 6b49113 into main May 31, 2026
2 checks passed
@nwparker
nwparker deleted the nwparker/bound-metadata-request-cache branch May 31, 2026 11:12
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:low Low risk change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant