Project: Lenci R1 V0.1.8
2026-02-25 23:10:30
Issue Description When loading the Landing Page (unauthenticated state), the console logs show initialization of application-level services that are unrelated to the marketing page: [PerformanceService] Initialized [PerformanceService] Auto-initialized, session: ... [AuthContext] Initializing authentication... [AuthContext] No active session found [PerformanceService] Skipping sync ... (Supabase migration - not persisted) This indicates that: Authentication logic and internal performance tracking services are being initialized on a public marketing route. Internal app services are executing even when the user is not inside the authenticated application. The landing page is not isolated from app-level service initialization. While not a crash, this creates unnecessary console noise and suggests architectural leakage between public and app layers. Expected Behavior When visiting the Landing Page (public route): No authentication initialization logs should appear. No app-level services (e.g., PerformanceService, credit services, migration sync) should initialize unless explicitly required for the landing page. Console should remain clean in a normal (non-debug) environment. Public marketing routes should operate independently of authenticated application logic. Acceptance Criteria Visiting the landing page while logged out: No AuthContext initialization logs appear. No PerformanceService initialization logs appear. No migration-related “Skipping sync” logs appear. Auth services initialize only when entering authenticated app routes. Performance tracking (if global) does not log migration or internal app sync messages on public pages. Console remains free of non-critical operational logs in production mode.
api-CTSVC-i9.js:1 [PerformanceService] Initialized api-CTSVC-i9.js:1 [PerformanceService] Auto-initialized, session: session_1772060806757_744iklrg5 creditHistoryService-Qs2rnbBE.js:1 🚀 [AuthContext] Initializing authentication... creditHistoryService-Qs2rnbBE.js:1 ⚠️ [AuthContext] No active session found api-CTSVC-i9.js:1 [PerformanceService] Skipping sync of 2 metrics (Supabase migration - not persisted) api-CTSVC-i9.js:1 [PerformanceService] Skipping sync of 1 metrics (Supabase migration - not persisted) api-CTSVC-i9.js:1 [PerformanceService] Skipping sync of 1 metrics (Supabase migration - not persisted)