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:
- Add HTTP caching headers
- Add application-level cache for successful folder loads
- 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
- No files specified
🔗 Related
- Decision ID:
dev_1769701691278_wivg0mt - Session: 73
- Workspace: editor2
Auto-generated by MCP Smart Consolidation