docs: add TODO for AI config repository to fix 404 fallback errors

Document expected 404 behavior in AI configuration system where loaders
attempt GitHub remote fetch first, then gracefully fallback to bundled files.

Details:
- Console shows "Failed to load resource: 404" during Settings → AI Config refresh
- Affects: soul/loader.ts and tools/loader.ts GitHub URL attempts
- Fallback works correctly, 404s are cosmetic console warnings
- TODO: Setup public AI config repository for clean remote loading

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
cyrus
2026-03-05 21:50:49 +05:30
co-authored by Claude
parent 9de11561a4
commit 35662f051d
+6
View File
@@ -259,6 +259,12 @@ loadAIConfig() → AIConfig // Combined SOUL + TOOLS configuration
- GitHub remote (latest)
- Bundled fallback (reliable)
**TODO**: Set up public AI configuration repository to eliminate 404 fallback errors
- Current: AI config loaders try GitHub URLs first (fail with 404), then fallback to bundled files
- Console shows: "Failed to load resource: the server responded with a status of 404"
- Affected: Settings → AI Configuration "Refresh Soul/Tools" buttons
- Files: `src/lib/ai/soul/loader.ts`, `src/lib/ai/tools/loader.ts`
### Unified Injection System
Every user message automatically gets AI context injected: