FleetOS Bug Fixes - Session Startup Doc
Current Status: IN PROGRESS
Completed Fixes
1. Demo Mode Detection (CleanLanding.tsx:344)
2. Demo Seeding Race Condition (App.tsx:1047-1053, 1189-1195)
// Before: seedSupplierRelationships(companyId).catch(err => {...});
// After: await seedSupplierRelationships(companyId);3. Mock User Fallback Missing Fields (App.tsx:1086-1098, 1228-1240)
roles: ['FLEET'], // Required for safeStorage validation
activeRole: 'FLEET', // Required for safeStorage validation4. Test Helper Regex Too Broad (tests/fleetos/helpers.ts:64)
In Progress: Session Persistence (F1.1.7)
The Problem
Root Cause Analysis
Fix Applied (App.tsx:364-428)
Key Code Location
Test Still Failing
Remaining Failing Tests
Test ID
Description
Likely Issue
Key Files Reference
File
Purpose
Storage Keys
Next Steps
Commands
Last updated
Was this helpful?