Architecture: How to handle docs-angular app when no project is persisted/...
Documentation for Sessions
🏗️ Architecture: How to handle docs-angular app when no project is persisted/...
Date: 2026-01-29
Time: 14:52:28 UTC
Session: editor2-73.23
Agent: storage
Confidence: 95%
Status: ✅ Documented
📋 Decision Context
Question:
How to handle docs-angular app when no project is persisted/selected at root URL
Task: Not specified
🎯 Decision Made
Chosen:
Auto-select default project when none is stored
Options Considered:
- Add route redirects to /select-project
- Auto-select default project when none is stored
- Force navigation in APP_INITIALIZER
💭 Reasoning
Root cause was that LoadPersistedProject marked state as initialized without selecting any project when no stored project exists. This caused a state mismatch - UI assumed 'public' project but state had currentProjectId: null. Fix auto-selects first public English project as default, ensuring app always has valid project context. This is more robust than route redirects which don't work after resetConfig.
📁 Files Involved
- No files specified
🔗 Related
- Decision ID:
dev_1769698347996_m1wbn9r - Session: 73
- Workspace: editor2
Auto-generated by MCP Smart Consolidation