Skip to content

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.

refactor(settings): remove the Local models and Computers sections

rubenluetke10-beep94334408a6d8
diff --git a/jarvis/plugins/tool/navigate.py b/jarvis/plugins/tool/navigate.py
index 559c40bb54..c6fd16c20d 100644
--- a/jarvis/plugins/tool/navigate.py
+++ b/jarvis/plugins/tool/navigate.py
@@ -39,10 +39,6 @@ KNOWN: frozenset[str] = frozenset(
"profile",
"memory",
"apikeys",
- # Local models: the Ollama server, installed models and the catalogue.
- "local-models",
- # Computers: the user's servers and local VMs, reached over SSH.
- "computers",
"settings",
"telephony",
"telephony-setup",
@@ -172,22 +168,6 @@ _ALIASES: dict[str, str] = {
"notizen": "memory",
"notiz": "memory",
"wiki": "memory",
- "local models": "local-models",
- "local-models": "local-models",
- "computers": "computers",
- "servers": "computers",
- "vps": "computers",
- "virtual machines": "computers",
- "virtual machine": "computers",
- "vms": "computers",
- "virtuelle maschinen": "computers", # i18n-allow: input vocab
- "ordenadores": "computers", # i18n-allow: input vocab
- "servidores": "computers", # i18n-allow: input vocab
- "local model": "local-models",
- "ollama": "local-models",
- "lokale modelle": "local-models", # i18n-allow: input vocab
- "lokale models": "local-models", # i18n-allow: input vocab
- "modelos locales": "local-models", # i18n-allow: input vocab
"api keys": "apikeys",
"api-keys": "apikeys",
"api key": "apikeys",
diff --git a/jarvis/ui/web/frontend/src/components/agentic/RunOnPicker.tsx b/jarvis/ui/web/frontend/src/components/agentic/RunOnPicker.tsx
index 3e55d568f3..844e313f07 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/RunOnPicker.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/RunOnPicker.tsx
@@ -1,13 +1,12 @@
/**
* "Runs on" — where new agents run: this computer, or one of the connected
- * computers (a VPS, a local VM; see the Computers section). On a computer the
- * agents live in tmux there and keep working while this PC is off; the folder
- * is copied there first (new files that look like secrets stay here).
+ * computers (a VPS, a local VM). On a computer the agents live in tmux there
+ * and keep working while this PC is off; the folder is copied there first
+ * (new files that look like secrets stay here).
*/
import { useEffect } from "react";
import { Laptop, Server } from "lucide-react";
import { useComputerChoiceList } from "@/hooks/useComputers";
-import { useEventStore } from "@/store/events";
import { cn } from "@/lib/utils";
const RUN_ON_KEY = "jarvis.agenticIde.runOn.";
@@ -44,7 +43,6 @@ export function RunOnPicker({
hideWhenNone?: boolean;
}) {
const { computers, loaded } = useComputerChoiceList();
- const setActiveSection = useEventStore((state) => state.setActiveSection);
const usable = computers.filter((computer) => computer.health.status !== "provisioning");
const options = [
{ id: null as string | null, name: "This computer", detail: "Stops when this PC sleeps or shuts down", online: true, icon: Laptop },
@@ -107,15 +105,6 @@ export function RunOnPicker({
and private keys stay on this PC. The coding CLI must be installed there.
</p>
)}
- {usable.length === 0 && (
- <p className="mt-2 text-xs text-muted-foreground">
- Want agents that keep working while this PC is off?{" "}
- <button type="button" onClick={() => setActiveSection("computers")}
- className="font-medium text-accent underline-offset-4 hover:underline">
- Connect a server
- </button>
- </p>
- )}
</fieldset>
);
}
diff --git a/jarvis/ui/web/frontend/src/components/layout/MainView.settingsHub.test.tsx b/jarvis/ui/web/frontend/src/components/layout/MainView.settingsHub.test.tsx
index 290205b16b..d4341d46f5 100644
--- a/jarvis/ui/web/frontend/src/components/layout/MainView.settingsHub.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/MainView.settingsHub.test.tsx
@@ -36,7 +36,6 @@ describe("MainView — every settings-hub id mounts the hub", () => {
"apikeys",
"telephony",
"telephony-setup",
- "local-models",
"costs",
"feedback",
] as SectionId[])("routes %s to the Settings hub", async (activeSection) => {
diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx
index 8a98d785cd..d279ef3699 100644
--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx
@@ -306,7 +306,7 @@ describe("Sidebar settings-hub entry", () => {
test("the profile button stays lit while any hub section is on screen", () => {
// It IS the hub's entry point, so it carries "you are here" for all of
// the hub's sections — including ones only reachable from inside the hub.
- useEventStore.setState({ activeSection: "local-models" });
+ useEventStore.setState({ activeSection: "appshots" });
renderSidebar();
expect(screen.getByTestId("sidebar-profile-toggle").className).toMatch(
diff --git a/jarvis/ui/web/frontend/src/components/layout/navGroups.ts b/jarvis/ui/web/frontend/src/components/layout/navGroups.ts
index 00d0aa93d5..f8b242dab7 100644
--- a/jarvis/ui/web/frontend/src/components/layout/navGroups.ts
+++ b/jarvis/ui/web/frontend/src/components/layout/navGroups.ts
@@ -17,7 +17,6 @@ import {
CaptureIcon,
ChatIcon,
CodeIcon,
- ComputersIcon,
ContactsIcon,
DocsIcon,
ExtensionsIcon,
@@ -194,15 +193,6 @@ export const NAV_GROUPS: NavItem[][] = [
// Telefonie" voice command lands on the "telephony" id. Settings likewise
// fronts the former "Taskbar" + "Languages" sections.
[
- // Computers: the servers and virtual machines the assistant and its agents
- // can work on besides this one (a rented VPS, a hosting-account import, a
- // local VM). A Settings-hub entry, first under System.
- {
- id: "computers",
- labelKey: "nav.computers",
- icon: ComputersIcon,
- fallbackLabel: "Computers",
- },
{
id: "apikeys",
labelKey: "nav.apikeys",
@@ -288,8 +278,6 @@ export const SETTINGS_HUB_IDS: readonly SectionId[] = [
"apikeys",
"telephony",
"telephony-setup",
- "local-models",
- "computers",
"appshots",
"shortcuts",
"pets",
diff --git a/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx b/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx
index 1a330ef49c..0af1bb323f 100644
--- a/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx
+++ b/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx
@@ -523,7 +523,6 @@ export function ProviderCard({
const [consentPending, setConsentPending] = useState(false);
const pushToast = useEventStore((s) => s.pushToast);
const assistantName = useEventStore((s) => s.assistantName);
- const setActiveSection = useEventStore((s) => s.setActiveSection);
const recordVerdict = useProviderTestStore((s) => s.record);
// The card only escalates to red for a real "set up but failing" error — the
// amber "needs setup" case stays on the tab + the open/ready badge so a fresh,
@@ -933,24 +932,6 @@ export function ProviderCard({
</p>
</div>
- {/* Pull-capable servers have a section of their own; the row still
- opens/activates the provider as before (rowGestures ignores anything
- marked data-agent-card-control). */}
- {descriptor.supports_model_pull && (
- <button
- type="button"
- data-agent-card-control
- data-testid={`provider-open-local-models-${descriptor.id}`}
- onClick={(e) => {
- e.stopPropagation();
- setActiveSection("local-models");
- }}
- className="inline-flex h-7 shrink-0 items-center gap-1.5 rounded-md border border-border px-2.5 text-xs font-medium text-foreground transition-colors hover:bg-secondary hover:text-foreground"
- >
- <Cpu aria-hidden="true" className="h-3.5 w-3.5" />
- {t("apikeys_view.local_models_open")}
- </button>
- )}
{descriptor.configuration_surface !== "live" && (
<ActiveControl
descriptor={
diff --git a/jarvis/ui/web/frontend/src/components/society/card/buildingCards.ts b/jarvis/ui/web/frontend/src/components/society/card/buildingCards.ts
index b0a4698c6f..5e6c8a090f 100644
--- a/jarvis/ui/web/frontend/src/components/society/card/buildingCards.ts
+++ b/jarvis/ui/web/frontend/src/components/society/card/buildingCards.ts
@@ -122,7 +122,7 @@ export const BUILDING_CARDS: Record<BuildingPlace, BuildingCard> = {
taglineKey: "drawer_models_hint",
doesKey: "card_models_does",
howKey: "card_models_how",
- section: "local-models",
+ section: null,
hub: null,
},
civic: {
diff --git a/jarvis/ui/web/frontend/src/components/society/create/ComputerPicker.tsx b/jarvis/ui/web/frontend/src/components/society/create/ComputerPicker.tsx
index a4e241f5aa..1f9a832354 100644
--- a/jarvis/ui/web/frontend/src/components/society/create/ComputerPicker.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/create/ComputerPicker.tsx
@@ -1,15 +1,14 @@
/**
* "Runs on" — where an agent's work executes: this computer, or one of the
- * machines connected in the Computers section (a VPS, a local VM). The value
- * is a computer id; "" means this computer. Shared by the create dialog and
- * the agent's spec sheet so the two can never offer different choices.
+ * connected machines (a VPS, a local VM). The value is a computer id; ""
+ * means this computer. Shared by the create dialog and the agent's spec
+ * sheet so the two can never offer different choices.
*/
import { Monitor, Server } from "lucide-react";
import { Combobox } from "@/components/ui/combobox";
import { useComputers } from "@/hooks/useComputers";
import { useT } from "@/i18n";
import { cn } from "@/lib/utils";
-import { useEventStore } from "@/store/events";
import type { Computer } from "@/lib/computersApi";
function Dot({ computer }: { computer: Computer }) {
@@ -40,7 +39,6 @@ export function ComputerPicker({
}) {
const t = useT();
const computers = useComputers();
- const setActiveSection = useEventStore((s) => s.setActiveSection);
const rows = computers.data ?? [];
const chosen = rows.find((c) => c.id === value);
@@ -75,16 +73,7 @@ export function ComputerPicker({
? chosen.health.status === "online"
? t("society.create.runs_on_remote_hint")
: t("society.create.runs_on_offline_hint")
- : t("society.create.runs_on_here_hint")}{" "}
- {rows.length === 0 && (
- <button
- type="button"
- onClick={() => setActiveSection("computers")}
- className="text-accent underline-offset-4 hover:underline"
- >
- {t("society.create.runs_on_connect")}
- </button>
- )}
+ : t("society.create.runs_on_here_hint")}
</p>
</div>
);
diff --git a/jarvis/ui/web/frontend/src/components/society/world/HubDrawer.tsx b/jarvis/ui/web/frontend/src/components/society/world/HubDrawer.tsx
index 2fba1ead13..f3b6a9daa5 100644
--- a/jarvis/ui/web/frontend/src/components/society/world/HubDrawer.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/world/HubDrawer.tsx
@@ -177,7 +177,7 @@ export const HUBS: Record<KitPlace, HubConfig> = {
models: {
titleKey: "drawer_models_title",
hintKey: "drawer_models_hint",
- section: "local-models",
+ section: null,
bodyKey: "drawer_models_body",
},
civic: {
diff --git a/jarvis/ui/web/frontend/src/lib/quickSwitch.test.ts b/jarvis/ui/web/frontend/src/lib/quickSwitch.test.ts
index 407d6796b2..3215134be5 100644
--- a/jarvis/ui/web/frontend/src/lib/quickSwitch.test.ts
+++ b/jarvis/ui/web/frontend/src/lib/quickSwitch.test.ts
@@ -87,7 +87,6 @@ describe("ranking", () => {
["ajustes", "settings"],
["skills", "skills"],
["api", "apikeys"],
- ["ollama", "local-models"],
["market", "marketplace"],
["wiki", "memory"],
])("puts the meant destination first for %j", (query, expected) => {
diff --git a/jarvis/ui/web/frontend/src/lib/quickSwitch.ts b/jarvis/ui/web/frontend/src/lib/quickSwitch.ts
index 2f7e359296..92af6cb23a 100644
--- a/jarvis/ui/web/frontend/src/lib/quickSwitch.ts
+++ b/jarvis/ui/web/frontend/src/lib/quickSwitch.ts
@@ -23,7 +23,6 @@
* active language.
*/
import { KeyRound, type LucideIcon } from "lucide-react";
-import { OllamaIcon } from "@/components/icons/OllamaIcon";
import {
ChatIcon,
ConnectorIcon,
@@ -76,12 +75,10 @@ const ALIASES: Partial<Record<string, readonly string[]>> = {
agents: ["society", "world", "team", "routines", "schedule", "automations"],
settings: ["preferences", "options", "config", "configuration", "general"],
apikeys: ["keys", "credentials", "tokens", "providers"],
- "local-models": ["ollama", "llama", "offline", "models"],
memory: ["notes", "knowledge", "obsidian"],
visualization: ["outputs", "results", "images", "pages"],
costs: ["tokens", "usage", "money", "billing", "budget"],
sessions: ["transcripts", "recordings", "history"],
- computers: ["servers", "ssh", "vps", "remote", "machines"],
"agent-instructions": ["assistant", "soul", "soul md", "character", "persona", "instructions", "memory md"],
marketplace: ["store", "shop", "install"],
board: ["stats", "dashboard", "activity"],
@@ -175,11 +172,7 @@ function expand(item: NavItem): QuickSwitchEntry[] {
tab("agentic-ide-classic", "quick_switch.terminal_grid", PaneGridIcon, "nav.agentic_ide"),
];
case "apikeys":
- return [
- entry(item),
- tab("telephony", "nav.telephony", PhoneIcon, "nav.apikeys"),
- tab("local-models", "nav.local_models", OllamaIcon, "nav.apikeys"),
- ];
+ return [entry(item), tab("telephony", "nav.telephony", PhoneIcon, "nav.apikeys")];
case "settings":
return [entry(item), tab("languages", "nav.languages", LanguageIcon, "nav.settings")];
case "dictation":
diff --git a/jarvis/ui/web/frontend/src/store/events.ts b/jarvis/ui/web/frontend/src/store/events.ts
index 6c8cd47627..7b317173de 100644
--- a/jarvis/ui/web/frontend/src/store/events.ts
+++ b/jarvis/ui/web/frontend/src/store/events.ts
@@ -70,11 +70,6 @@ export type SectionId =
| "profile"
| "memory"
| "apikeys"
- // Local models: the Ollama server, its installed models and the catalogue,
- // in one section instead of a card body inside API Keys.
- | "local-models"
- // Computers: the user's own servers and local VMs, reached over SSH.
- | "computers"
| "settings"
| "telephony"
| "telephony-setup"
@@ -137,8 +132,6 @@ export const SECTION_IDS = [
"profile",
"memory",
"apikeys",
- "local-models",
- "computers",
"settings",
"telephony",
"telephony-setup",
@@ -236,8 +229,6 @@ export const SECTION_LABELS: Record<SectionId, string> = {
profile: "Profile",
memory: "Notes",
apikeys: "API Keys",
- "local-models": "Local models",
- computers: "Computers",
settings: "Settings",
telephony: "Telephony",
"telephony-setup": "Telephony setup",
diff --git a/jarvis/ui/web/frontend/src/views/SettingsHubView.test.tsx b/jarvis/ui/web/frontend/src/views/SettingsHubView.test.tsx
index b7cd4ad8cd..53f7cd0af3 100644
--- a/jarvis/ui/web/frontend/src/views/SettingsHubView.test.tsx
+++ b/jarvis/ui/web/frontend/src/views/SettingsHubView.test.tsx
@@ -80,9 +80,6 @@ vi.mock("@/views/ApiKeysView", () => ({ ApiKeysView: stub("TAB_APIKEYS") }));
vi.mock("@/views/TelephonyView", () => ({
TelephonySetupView: stub("TAB_TELEPHONY_SETUP"),
}));
-vi.mock("@/views/LocalModelsView", () => ({
- LocalModelsView: stub("TAB_LOCAL_MODELS"),
-}));
vi.mock("@/views/PetsView", () => ({ PetsView: stub("TAB_PETS") }));
vi.mock("@/views/CostsView", () => ({ CostsView: stub("TAB_COSTS") }));
vi.mock("@/views/feedback/FeedbackView", () => ({
@@ -191,7 +188,6 @@ describe("SettingsHubView tab resolution", () => {
["contacts", "TAB_CONTACTS"],
["socials", "TAB_SOCIALS"],
["apikeys", "TAB_APIKEYS"],
- ["local-models", "TAB_LOCAL_MODELS"],
["pets", "TAB_PETS"],
["costs", "TAB_COSTS"],
["feedback", "TAB_FEEDBACK"],
@@ -217,15 +213,12 @@ describe("SettingsHubView tab resolution", () => {
).toBe("page");
});
- it("has no Local models entry and highlights API Keys while that page is open", async () => {
- mockState.activeSection = "local-models";
+ it("lists neither Local models nor Computers", async () => {
render(<SettingsHubView />);
+ await screen.findByTestId("TAB_SETTINGS");
- await screen.findByTestId("TAB_LOCAL_MODELS");
expect(screen.queryByTestId("settings-hub-nav-local-models")).toBeNull();
- expect(
- screen.getByTestId("settings-hub-nav-apikeys").getAttribute("aria-current"),
- ).toBe("page");
+ expect(screen.queryByTestId("settings-hub-nav-computers")).toBeNull();
});
it("falls back to Settings for an unexpected section id", async () => {
diff --git a/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx b/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx
index fc2cb7a976..4d3665ed97 100644
--- a/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx
+++ b/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx
@@ -25,17 +25,15 @@ import { cn } from "@/lib/utils";
*
* General: Settings, Keyboard shortcuts, Appshots, My Pets, Profile,
* {name} (the assistant), Contacts, Socials
- * System: Computers, API Keys, Jarvis actions
+ * System: API Keys, Jarvis actions
* Activity: Spend, Feedback
*
* Same merged-section pattern as VoiceHubView / ClisHubView: the active
* section id IS the tab state, so deep links, voice commands ("open the API
* keys"), the deck and detached windows keep landing on the right tab with no
* extra routing. The merged-in ids ("telephony", "taskbar", "languages",
- * "telephony-setup", "local-models") resolve to the tab that hosts their
- * content today, exactly like MainView used to map them to standalone views.
- * The Local models page has no nav entry of its own: it opens from the local
- * server rows on API Keys, so API Keys stays highlighted while it is shown.
+ * "telephony-setup") resolve to the tab that hosts their content today,
+ * exactly like MainView used to map them to standalone views.
*
* Labels, icons and grouping resolve from `NAV_GROUPS` (via `resolveNavLabel`,
* so all three locales behave exactly like the sidebar rows did) — no second hand-written list to drift (AP-4).
@@ -71,14 +69,6 @@ const TelephonySetupTab = lazy(() =>
default: m.TelephonySetupView,
})),
);
-const LocalModelsTab = lazy(() =>
- import("@/views/LocalModelsView").then((m) => ({
- default: m.LocalModelsView,
- })),
-);
-const ComputersTab = lazy(() =>
- import("@/views/ComputersView").then((m) => ({ default: m.ComputersView })),
-);
const JarvisActionsTab = lazy(() =>
import("@/views/JarvisActionsView").then((m) => ({ default: m.JarvisActionsView })),
);
@@ -111,7 +101,6 @@ type HubNavId =
| "contacts"
| "socials"
| "apikeys"
- | "computers"
| "jarvis-actions"
| "costs"
| "feedback";
@@ -132,7 +121,7 @@ const HUB_NAV_GROUPS: readonly { labelKey: string; ids: readonly HubNavId[] }[]
},
{
labelKey: "settings_hub.group_system",
- ids: ["computers", "apikeys", "jarvis-actions"],
+ ids: ["apikeys", "jarvis-actions"],
},
{
labelKey: "settings_hub.group_activity",
@@ -140,10 +129,7 @@ const HUB_NAV_GROUPS: readonly { labelKey: string; ids: readonly HubNavId[] }[]
},
];
-/** Pages the hub shows under another entry's highlight. */
-type HubSubPage = "telephony-setup" | "local-models";
-
-const TAB_CONTENT: Record<HubNavId | HubSubPage, LazyExoticComponent<ComponentType>> = {
+const TAB_CONTENT: Record<HubNavId | "telephony-setup", LazyExoticComponent<ComponentType>> = {
settings: SettingsTab,
profile: ProfileTab,
"agent-instructions": AssistantTab,
@@ -151,8 +137,6 @@ const TAB_CONTENT: Record<HubNavId | HubSubPage, LazyExoticComponent<ComponentTy
socials: SocialsTab,
apikeys: ApiKeysTab,
"telephony-setup": TelephonySetupTab,
- "local-models": LocalModelsTab,
- computers: ComputersTab,
appshots: AppshotsTab,
shortcuts: ShortcutsTab,
pets: PetsTab,
@@ -166,7 +150,7 @@ const TAB_CONTENT: Record<HubNavId | HubSubPage, LazyExoticComponent<ComponentTy
* section id. Plain ids name their own tab; the merged-in ids resolve to the
* tab hosting their content; anything else falls back to Settings.
*/
-function resolveHubTab(active: string): { content: HubNavId | HubSubPage; highlight: HubNavId } {
+function resolveHubTab(active: string): { content: HubNavId | "telephony-setup"; highlight: HubNavId } {
switch (active) {
case "profile":
return { content: "profile", highlight: "profile" };
@@ -181,10 +165,6 @@ function resolveHubTab(active: string): { content: HubNavId | HubSubPage; highli
return { content: "apikeys", highlight: "apikeys" };
case "telephony-setup":
return { content: "telephony-setup", highlight: "apikeys" };
- case "local-models":
- return { content: "local-models", highlight: "apikeys" };
- case "computers":
- return { content: "computers", highlight: "computers" };
case "appshots":
return { content: "appshots", highlight: "appshots" };
case "shortcuts":