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(ultrawiki): let the failed-items row offer the retry it promises
Ruben Lütked05dc03d5d8a
diff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/overview/OverviewTab.test.tsx b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/OverviewTab.test.tsxindex 1be86d57c4..ac61826e3f 100644--- a/jarvis/ui/web/frontend/src/components/ultrawiki/overview/OverviewTab.test.tsx+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/OverviewTab.test.tsx@@ -7,7 +7,7 @@* change that lets this screen claim it is finished should fail here.*/import { afterEach, describe, expect, it, vi } from "vitest";-import { cleanup, render, screen, within } from "@testing-library/react";+import { cleanup, fireEvent, render, screen, within } from "@testing-library/react";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { VerdictCard, verdictToneOf } from "@/components/ultrawiki/overview/VerdictCard";@@ -295,6 +295,41 @@ describe("ProblemList — only what is not fine", () => {expect(problemsOf([check("processing", "working")])).toHaveLength(0);});+ it("offers the retry the failed-items row promises", async () => {+ const calls: string[] = [];+ vi.stubGlobal(+ "fetch",+ vi.fn(async (url: RequestInfo | URL) => {+ calls.push(String(url));+ return new Response(+ JSON.stringify({ ok: true, requeued: 140, source_id: "", detail: "" }),+ { status: 200, headers: { "Content-Type": "application/json" } },+ );+ }),+ );+ const onChanged = vi.fn();+ const failed: UltraWikiHealthCheck = {+ id: "processing",+ title: "140 item(s) could not be processed",+ state: "attention",+ detail: "Retrying usually clears them.",+ action: { kind: "retry_failed" },+ facts: {},+ };+ renderWithQuery(+ <ProblemList+ checks={[failed]}+ handlers={{ onOpenSources: () => {}, onOpenSettings: () => {}, onChanged }}+ />,+ );++ fireEvent.click(screen.getByTestId("ultrawiki-problem-action-processing"));+ await vi.waitFor(() => expect(onChanged).toHaveBeenCalledTimes(1));+ expect(+ calls.some((u) => u.includes("/api/ultrawiki/pipeline/requeue-failed")),+ ).toBe(true);+ });+it("collapses an all-clear to a single line", () => {renderWithQuery(<ProblemListdiff --git a/jarvis/ui/web/frontend/src/components/ultrawiki/overview/useCheckActions.ts b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/useCheckActions.tsindex da38a7c6df..accc8ed7ee 100644--- a/jarvis/ui/web/frontend/src/components/ultrawiki/overview/useCheckActions.ts+++ b/jarvis/ui/web/frontend/src/components/ultrawiki/overview/useCheckActions.ts@@ -12,6 +12,7 @@ import { useState } from "react";import { useT } from "@/i18n";import { useEventStore } from "@/store/events";import {+ requeueUltraWikiFailed,syncAllUltraWikiSources,type UltraWikiHealthCheck,} from "@/lib/ultrawikiApi";@@ -47,11 +48,33 @@ export function useCheckActions(handlers: CheckActionHandlers): {}}+ async function retryFailed() {+ setBusy(true);+ try {+ const result = await requeueUltraWikiFailed();+ pushToast(+ "success",+ t("ultrawiki.progress.retry_failed_done").replace(+ "{0}",+ String(result.requeued),+ ),+ );+ handlers.onChanged();+ } catch (e) {+ pushToast("error", (e as Error).message);+ } finally {+ setBusy(false);+ }+ }+function runAction(check: UltraWikiHealthCheck) {switch (check.action?.kind) {case "sync_all":void syncAll();return;+ case "retry_failed":+ void retryFailed();+ return;case "open_sources":handlers.onOpenSources();return;diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex 88bc4ab173..cae2454819 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -3137,6 +3137,7 @@"verdict_not_ready": "Kann noch nicht antworten.","verdict_hint": "Die Schritte unten werden der Reihe nach geprüft. Alles, was du beheben kannst, hat einen Knopf daneben.","action_sync_all": "Jetzt importieren",+ "action_retry_failed": "Erneut versuchen","action_open_sources": "Quellen öffnen","action_open_settings": "Einstellungen öffnen","action_enable_mode": "Einschalten",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex 65c46036de..495d627ac3 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -3123,6 +3123,7 @@"verdict_not_ready": "Not ready to answer yet.","verdict_hint": "The steps below are checked in order. Anything you can fix has a button next to it.","action_sync_all": "Import now",+ "action_retry_failed": "Try again","action_open_sources": "Open sources","action_open_settings": "Open settings","action_enable_mode": "Turn on",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex e6d375046a..c5448702c2 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -3122,6 +3122,7 @@"verdict_not_ready": "Todavía no puede responder.","verdict_hint": "Los pasos de abajo se comprueban en orden. Todo lo que puedas arreglar tiene un botón al lado.","action_sync_all": "Importar ahora",+ "action_retry_failed": "Intentar de nuevo","action_open_sources": "Abrir fuentes","action_open_settings": "Abrir ajustes","action_enable_mode": "Activar",diff --git a/jarvis/ultrawiki/health.py b/jarvis/ultrawiki/health.pyindex f115241ec0..bfb1c1a7cf 100644--- a/jarvis/ultrawiki/health.py+++ b/jarvis/ultrawiki/health.py@@ -433,6 +433,10 @@ def _processing_check(status: dict[str, Any]) -> HealthCheck:"They gave up after repeated errors and are missing at least ""their summary. Retrying usually clears them." + backlog_note),+ # The row says "retrying usually clears them", so it has to offer+ # the retry. Live testing found this sentence on a screen whose+ # only retry button was in a strip that screen hides.+ action={"kind": "retry_failed"},facts=facts,)if waiting and state == "paused":diff --git a/tests/unit/ultrawiki/test_health.py b/tests/unit/ultrawiki/test_health.pyindex 2eb51784b4..e02a775f11 100644--- a/tests/unit/ultrawiki/test_health.py+++ b/tests/unit/ultrawiki/test_health.py@@ -331,6 +331,10 @@ def test_failed_items_do_not_hide_that_the_rest_works():check = _check(health, "processing")assert check["state"] == "attention"assert "10" in check["title"]+ # The row promises that retrying usually clears them, so it must offer the+ # retry. It did not, and the only retry button lived in a strip the+ # overview hides — found by clicking the live app, not by a test.+ assert check["action"] == {"kind": "retry_failed"}# NOT "they stay keyword-searchable": an item can dead-letter at any# stage, including before it was ever indexed, so the counts cannot prove# that. The row promises only what it can show.