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:

  1. Add route redirects to /select-project
  2. Auto-select default project when none is stored
  3. 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


🔗 Related


Auto-generated by MCP Smart Consolidation