Bugfix: Circuit breaker still triggering - folder content not being ...

Documentation for Sessions

🐛 Bugfix: Circuit breaker still triggering - folder content not being ...

Date: 2026-01-29
Time: 15:48:11 UTC
Session: editor2-73.28
Agent: storage
Confidence: 95%
Status: ✅ Documented


📋 Decision Context

Question:

Circuit breaker still triggering - folder content not being cached for successful loads

Task: Not specified


🎯 Decision Made

Chosen:

Add application-level cache for successful folder loads

Options Considered:

  1. Add HTTP caching headers
  2. Add application-level cache for successful folder loads
  3. Reduce request frequency

💭 Reasoning

The loadFolderContentEfficiently method was only caching 'missing' files in knownMissingFiles Set, but successful loads were not cached. Every time the effect ran, it would make a new HTTP request for the same index.mdc file. Added folderContentCache Map for successful loads and activeFolderRequests Map for request deduplication to prevent concurrent duplicate requests.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation