<img width="1511" height="825" alt="Capture d’écran 2026-04-09 à 14 19 52" src="https://github.com/user-attachments/assets/cd6c533e-abc9-45f9-b5c1-5cb7341d5dfe" /> - Move GetChatThreads query from the generic metadata pipeline (useLoadStaleMetadataEntities) into AgentChatThreadInitializationEffect, gated by useHasPermissionFlag(AI_SETTINGS) — prevents "Entity does not have permissions" errors for users whose role lacks AI access - Fix initialization bug where isDefined(currentAIChatThread) always returned true for the 'unknown-thread' sentinel value, preventing thread initialization from ever running — replaced with isValidUuid check
Run yarn dev while server running on port 3000