Skip to content

A desktop coding agent with free access to frontier models.

TypeScript

feat: default model control in Settings

ogsamratd6a0ebc5dba3
diff --git a/apps/app/src/react-app/domains/settings/pages/preferences-view.tsx b/apps/app/src/react-app/domains/settings/pages/preferences-view.tsx
index 429f1b72..5374998b 100644
--- a/apps/app/src/react-app/domains/settings/pages/preferences-view.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/preferences-view.tsx
@@ -1,4 +1,5 @@
/** @jsxImportSource react */
+import { Button } from "@/components/ui/button";
import {
Select,
SelectContent,
@@ -33,6 +34,9 @@ import type { SubagentModelClient } from "../subagent-model";
export type PreferencesViewProps = {
busy: boolean;
+ /** The default model for new chats (what the composer's picker sets) and the picker that changes it. */
+ defaultModelLabel: string;
+ onChangeDefaultModel: () => void;
showThinking: boolean;
onToggleShowThinking: () => void;
autoCompactContext: boolean;
@@ -80,6 +84,26 @@ export function PreferencesView(props: PreferencesViewProps) {
<LayoutSectionDescription>{t("settings.model_section_desc")}</LayoutSectionDescription>
</LayoutSectionHeader>
+ {/* Default model */}
+ <LayoutSectionItem>
+ <LayoutSectionItemHeader>
+ <LayoutSectionItemTitle>{t("model_picker.default_model_title")}</LayoutSectionItemTitle>
+ <LayoutSectionItemDescription><span data-testid="settings-default-model">{props.defaultModelLabel}</span></LayoutSectionItemDescription>
+ <LayoutSectionItemHeaderActions>
+ <Button
+ variant="outline"
+ size="sm"
+ aria-label={t("model_picker.default_model_title")}
+ disabled={props.busy}
+ onClick={props.onChangeDefaultModel}
+ data-testid="settings-default-model-change"
+ >
+ {t("settings.change")}
+ </Button>
+ </LayoutSectionItemHeaderActions>
+ </LayoutSectionItemHeader>
+ </LayoutSectionItem>
+
{/* Show reasoning */}
<LayoutSectionItem>
<LayoutSectionItemHeader>
diff --git a/apps/app/src/react-app/domains/whats-new/PARITY.sha256 b/apps/app/src/react-app/domains/whats-new/PARITY.sha256
index 3ff8d845..aaf7d556 100644
--- a/apps/app/src/react-app/domains/whats-new/PARITY.sha256
+++ b/apps/app/src/react-app/domains/whats-new/PARITY.sha256
@@ -1,3 +1,3 @@
# whats-new.json is the same file in omnirush-cli (src/whats-new/) and omnirush-gui (apps/app/src/react-app/domains/whats-new/).
# A change to one must be ported to the other and this list updated in both.
-858ad5a567ef5f63e77607d20a4c92e0ba890638facf8e21f9b13ca1da441f94 whats-new.json
+58dfcf82013b4bc0fd32ef8e0ab8bb83c3aeaa6f51bef17bff047ccb8a7a5b25 whats-new.json
diff --git a/apps/app/src/react-app/domains/whats-new/whats-new.json b/apps/app/src/react-app/domains/whats-new/whats-new.json
index 97fb6dd4..dd5a28fd 100644
--- a/apps/app/src/react-app/domains/whats-new/whats-new.json
+++ b/apps/app/src/react-app/domains/whats-new/whats-new.json
@@ -344,6 +344,19 @@
}
],
"desktop": [
+ {
+ "version": "3.8.2",
+ "date": "2026-10-28",
+ "new": [
+ "Settings > Preferences now shows the default model for new chats, with a Change button to pick another one."
+ ],
+ "improved": [
+ "In stock mode (OMNIRUSH_FARM=1) the agent's commands now run with the same environment and PATH as stock OpenCode, with nothing of OmniRush's added."
+ ],
+ "fixed": [
+ "Starting the app with OMNIRUSH_AUTO_UPDATE=0 now really turns updates off: it doesn't check, download or install anything, also when you quit."
+ ]
+ },
{
"version": "3.8.1",
"date": "2026-10-27",
diff --git a/apps/app/src/react-app/shell/settings-route.tsx b/apps/app/src/react-app/shell/settings-route.tsx
index 892cb1bc..f07873c9 100644
--- a/apps/app/src/react-app/shell/settings-route.tsx
+++ b/apps/app/src/react-app/shell/settings-route.tsx
@@ -1845,6 +1845,11 @@ function SettingsRouteContent(props: SettingsSurfaceProps = {}) {
return `${providerLabel} - ${modelLabel}`;
})()
: t("session.default_model");
+ const openDefaultModelPicker = () => {
+ modelPicker.setQuery("");
+ modelPicker.setRecentProviderIds(new Set());
+ window.requestAnimationFrame(() => modelPicker.setOpen(true));
+ };
const defaultModelRef = local.prefs.defaultModel
? `${local.prefs.defaultModel.providerID}/${local.prefs.defaultModel.modelID}`
: t("settings.default_label");
@@ -2361,6 +2366,8 @@ function SettingsRouteContent(props: SettingsSurfaceProps = {}) {
return (
<PreferencesView
busy={busy}
+ defaultModelLabel={defaultModelLabel}
+ onChangeDefaultModel={openDefaultModelPicker}
showThinking={local.prefs.showThinking}
onToggleShowThinking={() => {
local.setPrefs((previous) => ({ ...previous, showThinking: !previous.showThinking }));
@@ -2706,11 +2713,7 @@ function SettingsRouteContent(props: SettingsSurfaceProps = {}) {
: globalExtensionsRoute(section);
navigate(target);
}}
- onOpenModelPicker={() => {
- modelPicker.setQuery("");
- modelPicker.setRecentProviderIds(new Set());
- window.requestAnimationFrame(() => modelPicker.setOpen(true));
- }}
+ onOpenModelPicker={openDefaultModelPicker}
selectedModelLabel={defaultModelLabel}
sessions={paletteSessionOptions}
extraItems={checkDesktopRestriction({ restriction: "allowControlSettings" }) ? [] : [developerModePaletteItem]}
diff --git a/apps/app/tests/settings-default-model.test.tsx b/apps/app/tests/settings-default-model.test.tsx
new file mode 100644
index 00000000..d4468fcd
--- /dev/null
+++ b/apps/app/tests/settings-default-model.test.tsx
@@ -0,0 +1,34 @@
+/** @jsxImportSource react */
+import { describe, expect, mock, test } from "bun:test";
+import { renderToStaticMarkup } from "react-dom/server";
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+
+// The other Preferences sections need the desktop's providers; this test is about the Model section only.
+mock.module("@/react-app/domains/settings/desktop-integration-section", () => ({ DesktopIntegrationSection: () => null }));
+mock.module("@/react-app/domains/cloud/desktop-config-provider", () => ({ useDesktopRestriction: () => false }));
+
+const { PreferencesView } = await import("../src/react-app/domains/settings/pages/preferences-view");
+
+describe("settings default model", () => {
+ test("Preferences shows the default model for new chats and a control that changes it", () => {
+ const markup = renderToStaticMarkup(
+ <QueryClientProvider client={new QueryClient()}>
+ <PreferencesView
+ busy={false}
+ defaultModelLabel="OmniRush - GPT 6 Astra"
+ onChangeDefaultModel={() => {}}
+ showThinking
+ onToggleShowThinking={() => {}}
+ autoCompactContext
+ autoCompactContextBusy={false}
+ onToggleAutoCompactContext={() => {}}
+ desktopNotifications="important"
+ onDesktopNotificationsChange={() => {}}
+ />
+ </QueryClientProvider>,
+ );
+ expect(markup).toContain("Default model");
+ expect(markup).toMatch(/data-testid="settings-default-model">OmniRush - GPT 6 Astra</);
+ expect(markup).toMatch(/<button[^>]*data-testid="settings-default-model-change"[^>]*>Change<\/button>/);
+ });
+});