Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(society): distinguish routine loading from empty
rubenluetke10-beepafd3a1437b8d
diff --git a/jarvis/ui/web/frontend/src/components/society/card/AgentRoutinesList.test.tsx b/jarvis/ui/web/frontend/src/components/society/card/AgentRoutinesList.test.tsxindex 07a52c91c5..f917063c4e 100644--- a/jarvis/ui/web/frontend/src/components/society/card/AgentRoutinesList.test.tsx+++ b/jarvis/ui/web/frontend/src/components/society/card/AgentRoutinesList.test.tsx@@ -91,6 +91,16 @@ describe("AgentRoutinesList", () => {.toBeGreaterThan(1);});+ test("shows an empty list only after the routine request succeeds", async () => {+ let respond!: (response: Response) => void;+ fetchMock.mockImplementation(() => new Promise<Response>((resolve) => { respond = resolve; }));+ mount();+ expect(screen.getByText("Loading…")).toBeTruthy();+ expect(screen.queryByText("No routines yet.")).toBeNull();+ respond(json({ routines: [] }));+ await screen.findByText("No routines yet.");+ });+test.each(["schedule", "next-run", "icon", "padding"])("opens the routine when clicking %s", async (area) => {routines[0].due_at_ns = Date.UTC(2026, 8, 13, 8) * 1e6;mount();diff --git a/jarvis/ui/web/frontend/src/components/society/card/AgentRoutinesList.tsx b/jarvis/ui/web/frontend/src/components/society/card/AgentRoutinesList.tsxindex 985ddcb04d..b74f2824a7 100644--- a/jarvis/ui/web/frontend/src/components/society/card/AgentRoutinesList.tsx+++ b/jarvis/ui/web/frontend/src/components/society/card/AgentRoutinesList.tsx@@ -46,7 +46,8 @@ export function AgentRoutinesList({ agentId, sampleRoutines, variant = "rail", c</form>}<ul className="min-h-0 flex-1 overflow-y-auto">{live.error && <li role="alert" className="text-[12px] text-destructive">{t("tasks_view.load_error")}</li>}- {rows.length === 0 && <li className="text-[12px] text-muted-foreground">{t("society.card.no_routines")}</li>}+ {rows.length === 0 && live.isPending && <li className="text-[12px] text-muted-foreground">{t("society.profile_card.loading")}</li>}+ {rows.length === 0 && !live.isPending && !live.error && <li className="text-[12px] text-muted-foreground">{t("society.card.no_routines")}</li>}{rows.map((routine) => {const active = ["scheduled", "active", "enabled", ""].includes(routine.state);const trigger = routine.trigger as { type?: string; source?: { kind: string } } | null;