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
feat(ide): Git tab asks to connect a repository with a restart button
rubenluetke10-beep1a3b5ff7767c
diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/git/GitHubRepoPicker.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/git/GitHubRepoPicker.tsxindex 45d1b213ff..9b6f6f6316 100644--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/git/GitHubRepoPicker.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/git/GitHubRepoPicker.tsx@@ -96,7 +96,7 @@ export function GitHubRepoPicker({<div className="shrink-0 space-y-2 px-3 pb-2 pt-3"><div className="flex items-start gap-2"><div className="min-w-0 flex-1">- <p className="text-[12.5px] font-medium text-foreground">{t("ide_side_panel.git.pick_title")}</p>+ <p className="text-[12.5px] font-medium text-foreground">{t("ide_side_panel.git.connect_repo_title")}</p><p className="text-[11.5px] text-muted-foreground">{list?.login? fill(t("ide_side_panel.git.pick_body_login"), { login: list.login })diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/git/GitOverviewTab.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/git/GitOverviewTab.test.tsxindex f160da0829..f83ae0ccde 100644--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/git/GitOverviewTab.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/git/GitOverviewTab.test.tsx@@ -219,6 +219,7 @@ describe("GitOverviewTab", () => {const choices = screen.getAllByTestId("git-repo-choice");expect(choices.map((el) => el.dataset.repo)).toEqual(["o/r", "octo/other"]);expect(choices[0].textContent).toContain("Recommended");+ expect(screen.getByTestId("git-repo-picker").textContent).toContain("Connect a GitHub repository");fireEvent.click(choices[0]);await vi.waitFor(() => expect(puts).toEqual([JSON.stringify({ workspace_id: "w1", repo: "o/r" })]));expect(await screen.findAllByTestId("git-branch-row")).toHaveLength(6);@@ -246,6 +247,8 @@ describe("GitOverviewTab", () => {answer = { detail: "Not Found" };status = 404;render(<GitOverviewTab />);- expect((await screen.findByTestId("git-error")).textContent).toContain("Restart Jarvis once");+ expect((await screen.findByTestId("git-error")).textContent).toContain("Connect a GitHub repository");+ fireEvent.click(screen.getByTestId("git-restart"));+ await vi.waitFor(() => expect(calls).toContain("/api/settings/restart-app"));});});diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/git/GitOverviewTab.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/git/GitOverviewTab.tsxindex d2f25a8138..0feed73676 100644--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/git/GitOverviewTab.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/git/GitOverviewTab.tsx@@ -347,6 +347,50 @@ function Legend() {);}+/**+ * The running backend predates this tab: the one thing to do is restart, so+ * the card says what the tab is for and restarts on a click. A click in the+ * app is the person asking; control clients can never restart it.+ */+function RestartToConnectCard() {+ const t = useT();+ const pushToast = useEventStore((state) => state.pushToast);+ const [restarting, setRestarting] = useState(false);+ const restart = async () => {+ if (restarting) return;+ setRestarting(true);+ try {+ const response = await fetch("/api/settings/restart-app", { method: "POST" });+ if (response.status === 409) {+ pushToast("warning", t("topbar.restart_missions_running"));+ setRestarting(false);+ return;+ }+ if (!response.ok) throw new Error(`restart-failed:${response.status}`);+ // The window closes and relaunches; the button stays busy until then.+ } catch {+ pushToast("error", t("permissions.restart_failed"));+ setRestarting(false);+ }+ };+ return (+ <div data-testid="git-error" className="mx-3 my-3 space-y-2 rounded-lg border border-border/60 bg-muted/30 p-3">+ <p className="text-[12.5px] font-medium text-foreground">{t("ide_side_panel.git.connect_repo_title")}</p>+ <p className="text-[11.5px] text-muted-foreground">{t("ide_side_panel.git.needs_restart")}</p>+ <button+ type="button"+ data-testid="git-restart"+ disabled={restarting}+ onClick={() => void restart()}+ className="inline-flex h-8 items-center gap-1.5 rounded-md bg-primary px-3 text-xs font-medium text-primary-foreground hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60"+ >+ {restarting ? <Loader2 className="h-3.5 w-3.5 animate-spin" aria-hidden /> : <RefreshCw className="h-3.5 w-3.5" aria-hidden />}+ {t("ide_side_panel.git.restart_button")}+ </button>+ </div>+ );+}+function sinceLabel(t: (key: string) => string, fetchedAt: number): string {const seconds = Math.max(0, Math.round(Date.now() / 1000 - fetchedAt));if (seconds < 60) return fill(t("ide_side_panel.git.seconds_ago"), { n: seconds });@@ -467,9 +511,13 @@ export function GitOverviewTab() {{github?.code === "not_connected" && <ConnectGitHubCard />}{!data ? (error ? (- <p data-testid="git-error" className="px-4 py-6 text-center text-xs text-muted-foreground">- {routeMissing ? t("ide_side_panel.git.needs_restart") : error}- </p>+ routeMissing ? (+ <RestartToConnectCard />+ ) : (+ <p data-testid="git-error" className="px-4 py-6 text-center text-xs text-destructive">+ {error}+ </p>+ )) : (<p className="flex items-center justify-center gap-2 px-4 py-6 text-xs text-muted-foreground"><Loader2 className="h-3.5 w-3.5 animate-spin" aria-hidden />diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex d55aef8298..b26b51a677 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -5817,7 +5817,9 @@},"git": {"aria": "Branches, Pull Requests und CI",- "needs_restart": "Starte Jarvis einmal neu, damit der Git-Tab geladen wird.",+ "needs_restart": "Jarvis braucht dafür einmal einen Neustart. Danach wählst du einmal das Repository für diesen Ordner.",+ "connect_repo_title": "GitHub-Repository verbinden",+ "restart_button": "Jarvis neu starten","connect_title": "Verbinde GitHub, um Pull Requests und CI zu sehen","connect_body": "Die Branches dieses Ordners erscheinen auch ohne. Das Verbinden ist eine Bestätigung im Browser.","connect_button": "GitHub verbinden",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex 5253983ce4..3bdbe0a37c 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -5850,7 +5850,9 @@},"git": {"aria": "Branches, pull requests and CI",- "needs_restart": "Restart Jarvis once to load the Git tab.",+ "needs_restart": "Jarvis needs one restart to turn this on. After that you pick this folder's repository once.",+ "connect_repo_title": "Connect a GitHub repository",+ "restart_button": "Restart Jarvis","connect_title": "Connect GitHub to see pull requests and CI","connect_body": "Branches from this folder show without it. Connecting takes one approval in the browser.","connect_button": "Connect GitHub",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex f250fb16a8..7ec6a9497e 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -5817,7 +5817,9 @@},"git": {"aria": "Ramas, pull requests y CI",- "needs_restart": "Reinicia Jarvis una vez para cargar la pestaña Git.",+ "needs_restart": "Jarvis necesita reiniciarse una vez para activarlo. Después eliges una sola vez el repositorio de esta carpeta.",+ "connect_repo_title": "Conectar un repositorio de GitHub",+ "restart_button": "Reiniciar Jarvis","connect_title": "Conecta GitHub para ver pull requests y CI","connect_body": "Las ramas de esta carpeta se ven igualmente. Conectar es una sola aprobación en el navegador.","connect_button": "Conectar GitHub",