fix: improve startup readiness performance

This commit is contained in:
Bohdan Triapitsyn
2026-06-05 15:09:24 +03:00
parent 0b881fec8e
commit e192359da9
32 changed files with 502 additions and 110 deletions
@@ -50,8 +50,8 @@ export const AgentSelector: React.FC<AgentSelectorProps> = ({
// Load agents on mount
React.useEffect(() => {
loadAgents();
}, [loadAgents]);
if (agents.length === 0) void loadAgents();
}, [agents.length, loadAgents]);
// Ensure we always have a valid selection (defaults to current default agent, then first selectable agent).
React.useEffect(() => {