Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(settings): add profile editor and agent editor panels

Steven Enamakel88190fc047ff
diff --git a/app/src/components/layout/shell/SidebarHeader.tsx b/app/src/components/layout/shell/SidebarHeader.tsx
index fb2be614a6..cae93da9d3 100644
--- a/app/src/components/layout/shell/SidebarHeader.tsx
+++ b/app/src/components/layout/shell/SidebarHeader.tsx
@@ -3,7 +3,6 @@ import { useLocation, useNavigate } from 'react-router-dom';
import { registry } from '../../../lib/commands/registry';
import { useT } from '../../../lib/i18n/I18nContext';
-import { settingsNavState } from '../../settings/modal/settingsOverlay';
import { Button, SidebarHeader as SidebarHeaderShell, Tooltip } from '../../ui';
import { useRootSidebar } from './RootShellLayout';
@@ -51,7 +50,7 @@ export default function SidebarHeader() {
<Button
variant="tertiary"
iconOnly
- onClick={() => navigate('/settings', settingsNavState(location))}
+ onClick={() => navigate('/settings')}
className={ICON_BTN}
analyticsId="sidebar-header-settings"
aria-label={t('nav.settings')}>
diff --git a/app/src/components/settings/hooks/useSettingsNavigation.ts b/app/src/components/settings/hooks/useSettingsNavigation.ts
index 7c4d7cfddd..f69395fe91 100644
--- a/app/src/components/settings/hooks/useSettingsNavigation.ts
+++ b/app/src/components/settings/hooks/useSettingsNavigation.ts
@@ -5,7 +5,6 @@ import debug from 'debug';
import { useCallback } from 'react';
import { type To, useLocation, useNavigate } from 'react-router-dom';
-import { settingsNavState } from '../modal/settingsOverlay';
import { entryRoute, findEntryByRoute, SETTINGS_ROUTE_REGISTRY } from '../settingsRouteRegistry';
const log = debug('settings:nav');
@@ -148,14 +147,14 @@ export const useSettingsNavigation = (): SettingsNavigationHook => {
(route: SettingsRoute | string = 'home') => {
// Preserve the modal's backdrop (desktop) across panel-to-panel nav.
const target = route === 'home' ? '/settings' : `/settings/${route}`;
- navigate(target, settingsNavState(location));
+ navigate(target);
},
[navigate, location]
);
const navigateToTeamManagement = useCallback(
(teamId: string) => {
- navigate(`/settings/team/manage/${teamId}`, settingsNavState(location));
+ navigate(`/settings/team/manage/${teamId}`);
},
[navigate, location]
);
diff --git a/app/src/components/settings/panels/AgentEditorPage.tsx b/app/src/components/settings/panels/AgentEditorPage.tsx
index cfa9016af3..127d02922d 100644
--- a/app/src/components/settings/panels/AgentEditorPage.tsx
+++ b/app/src/components/settings/panels/AgentEditorPage.tsx
@@ -29,7 +29,6 @@ import NativeSelect from '../../ui/NativeSelect';
import TextArea from '../../ui/TextArea';
import TextField from '../../ui/TextField';
import SettingsPanel from '../layout/SettingsPanel';
-import { settingsNavState } from '../modal/settingsOverlay';
import { AgentEditorToolsField } from './AgentEditorToolsPicker';
// Known model options — mirrors the Rust tier constants + route hints
@@ -72,7 +71,7 @@ const AgentEditorPage = () => {
const location = useLocation();
const { id: routeId } = useParams<{ id: string }>();
const backToList = useCallback(
- () => navigate('/settings/agents', settingsNavState(location)),
+ () => navigate('/settings/agents'),
[navigate, location]
);
const isCreate = !routeId;
diff --git a/app/src/components/settings/panels/ProfileEditorPage.tsx b/app/src/components/settings/panels/ProfileEditorPage.tsx
index 0904e9e98c..2ae016d96e 100644
--- a/app/src/components/settings/panels/ProfileEditorPage.tsx
+++ b/app/src/components/settings/panels/ProfileEditorPage.tsx
@@ -29,7 +29,6 @@ import {
SettingsTextField,
} from '../controls';
import SettingsPanel from '../layout/SettingsPanel';
-import { settingsNavState } from '../modal/settingsOverlay';
const MODEL_HINTS = ['hint:reasoning', 'hint:chat', 'hint:agentic', 'hint:coding'];
@@ -54,7 +53,7 @@ const ProfileEditorPage = () => {
const { id: routeId } = useParams<{ id: string }>();
const profiles = useAppSelector(selectAgentProfiles);
const backToList = useCallback(
- () => navigate('/settings/profiles', settingsNavState(location)),
+ () => navigate('/settings/profiles'),
[navigate, location]
);
const isCreate = !routeId;
diff --git a/app/src/components/settings/panels/ProfilesPanel.tsx b/app/src/components/settings/panels/ProfilesPanel.tsx
index b611866d31..da266f67bf 100644
--- a/app/src/components/settings/panels/ProfilesPanel.tsx
+++ b/app/src/components/settings/panels/ProfilesPanel.tsx
@@ -22,7 +22,6 @@ import { useAppDispatch, useAppSelector } from '../../../store/hooks';
import Button from '../../ui/Button';
import { SettingsEmptyState, SettingsSection } from '../controls';
import SettingsPanel from '../layout/SettingsPanel';
-import { settingsNavState } from '../modal/settingsOverlay';
const ProfilesPanel = () => {
const { t } = useT();
@@ -72,7 +71,7 @@ const ProfilesPanel = () => {
type="button"
variant="primary"
size="sm"
- onClick={() => navigate('/settings/profiles/new', settingsNavState(location))}>
+ onClick={() => navigate('/settings/profiles/new')}>
<LuPlus className="h-4 w-4" />
{t('settings.profiles.new')}
</Button>
@@ -142,9 +141,7 @@ const ProfilesPanel = () => {
size="sm"
onClick={() =>
navigate(
- `/settings/profiles/edit/${profile.id}`,
- settingsNavState(location)
- )
+ `/settings/profiles/edit/${profile.id}`)
}>
{t('common.edit')}
</Button>
diff --git a/app/src/components/skills/VoiceSetupModal.tsx b/app/src/components/skills/VoiceSetupModal.tsx
index af02d796df..b8a66d2ab1 100644
--- a/app/src/components/skills/VoiceSetupModal.tsx
+++ b/app/src/components/skills/VoiceSetupModal.tsx
@@ -13,7 +13,6 @@ import {
openhumanUpdateVoiceServerSettings,
openhumanVoiceServerStart,
} from '../../utils/tauriCommands/voice';
-import { settingsNavState } from '../settings/modal/settingsOverlay';
import { CheckIcon, WarningIcon } from '../ui';
import Button from '../ui/Button';
import {
@@ -60,12 +59,12 @@ export default function VoiceSetupModal({ onClose, skillStatus }: Props) {
onClose();
// STT model install lives on the Voice settings panel (PR 2). The
// legacy `/settings/local-model` route handled Ollama assets only.
- navigate('/settings/voice', settingsNavState(location));
+ navigate('/settings/voice');
};
const handleGoToSettings = () => {
onClose();
- navigate('/settings/voice', settingsNavState(location));
+ navigate('/settings/voice');
};
return (
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index d992c21d2d..ab513a9d42 100644
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@ -18,7 +18,6 @@ import QueuedFollowups from '../../components/chat/QueuedFollowups';
import WorkflowProposalCard from '../../components/chat/WorkflowProposalCard';
import { ConfirmationModal } from '../../components/intelligence/ConfirmationModal';
import { SidebarContent } from '../../components/layout/shell/SidebarSlot';
-import { settingsNavState } from '../../components/settings/modal/settingsOverlay';
import UpsellBanner from '../../components/upsell/UpsellBanner';
import { dismissBanner, shouldShowBanner } from '../../components/upsell/upsellDismissState';
import { AssistantUiChat } from '../../features/conversations/components/AssistantUiChat';
@@ -2171,7 +2170,7 @@ const Conversations = ({
// STT/TTS provider settings live on the Voice panel
// since PR 2; the legacy local-model route was for
// back when speech assets were lumped with Ollama.
- navigate('/settings/voice', settingsNavState(location));
+ navigate('/settings/voice');
}}
className="text-xs text-primary-500 hover:text-primary-600 font-medium transition-colors">
{t('chat.setup')}
diff --git a/app/src/features/conversations/components/TaskSourceControls.tsx b/app/src/features/conversations/components/TaskSourceControls.tsx
index 83bec53400..a3a6c2a547 100644
--- a/app/src/features/conversations/components/TaskSourceControls.tsx
+++ b/app/src/features/conversations/components/TaskSourceControls.tsx
@@ -3,7 +3,6 @@ import { useCallback, useEffect, useState } from 'react';
import { LuRefreshCw } from 'react-icons/lu';
import { useLocation, useNavigate } from 'react-router-dom';
-import { settingsNavState } from '../../../components/settings/modal/settingsOverlay';
import { Alert } from '../../../components/ui/Alert';
import Badge from '../../../components/ui/Badge';
import Button from '../../../components/ui/Button';
@@ -163,7 +162,7 @@ export function TaskSourceControls({ disabled, compact }: { disabled: boolean; c
<Button
variant="tertiary"
size="xs"
- onClick={() => navigate('/settings/integrations', settingsNavState(location))}
+ onClick={() => navigate('/settings/integrations')}
className="px-0 text-[11px] text-primary-600 hover:bg-transparent hover:underline dark:text-primary-300">
{t('conversations.taskKanban.sources.manage')}
</Button>
diff --git a/app/src/pages/Rewards.tsx b/app/src/pages/Rewards.tsx
index 053b08ef82..c3cc14f0b6 100644
--- a/app/src/pages/Rewards.tsx
+++ b/app/src/pages/Rewards.tsx
@@ -10,7 +10,6 @@ import { usePageWelcomeView } from '../components/layout/usePageWelcomeView';
import RewardsCommunityTab from '../components/rewards/RewardsCommunityTab';
import RewardsRedeemTab from '../components/rewards/RewardsRedeemTab';
import RewardsReferralsTab from '../components/rewards/RewardsReferralsTab';
-import { settingsNavState } from '../components/settings/modal/settingsOverlay';
import { useT } from '../lib/i18n/I18nContext';
import { useCoreState } from '../providers/CoreStateProvider';
import { rewardsApi } from '../services/api/rewardsApi';
@@ -193,7 +192,7 @@ const Rewards = () => {
title={t('rewards.title')}
description={t('rewards.localUnavailable')}
actionLabel={t('rewards.localUnavailableCta')}
- onAction={() => navigate('/settings/account', settingsNavState(location))}
+ onAction={() => navigate('/settings/account')}
/>
</div>
</div>