The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(settings): add developer options panel and navigation support
Steven Enamakele23d1b515567
diff --git a/app/src/components/settings/__tests__/settingsRouteRegistry.test.ts b/app/src/components/settings/__tests__/settingsRouteRegistry.test.tsindex fe1019121d..27e849642f 100644--- a/app/src/components/settings/__tests__/settingsRouteRegistry.test.ts+++ b/app/src/components/settings/__tests__/settingsRouteRegistry.test.ts@@ -33,10 +33,11 @@ describe('entryRoute', () => {expect(entryRoute(entry!)).toBe('personality');});- it('returns the overridden route for build-info (→ about)', () => {- const entry = findEntryById('build-info');- expect(entry).toBeDefined();- expect(entryRoute(entry!)).toBe('about');+ it('has exactly one entry resolving to the about route', () => {+ // A dev-only "build-info" alias used to point here too, which listed two+ // sidebar entries for the same page.+ expect(findEntryById('build-info')).toBeUndefined();+ expect(SETTINGS_ROUTE_REGISTRY.filter(e => entryRoute(e) === 'about')).toHaveLength(1);});});@@ -88,12 +89,8 @@ describe('findEntryByRoute', () => {expect(findEntryByRoute('messaging')).toBeUndefined();});- it('returns the build-info entry when looking up the "about" route alias', () => {- // build-info has route: 'about', so findEntryByRoute('about') returns- // whichever comes first — likely the canonical 'about' entry itself.- // The important assertion: the route is reachable.- const entry = findEntryByRoute('about');- expect(entry).toBeDefined();+ it('resolves the about route to the canonical about entry', () => {+ expect(findEntryByRoute('about')?.id).toBe('about');});it('does not match partial/substring routes — lookup is exact', () => {diff --git a/app/src/components/settings/hooks/useSettingsNavigation.ts b/app/src/components/settings/hooks/useSettingsNavigation.tsindex 4726a26323..5bc3303b62 100644--- a/app/src/components/settings/hooks/useSettingsNavigation.ts+++ b/app/src/components/settings/hooks/useSettingsNavigation.ts@@ -96,7 +96,7 @@ const getCurrentRoute = (pathname: string): SettingsRoute => {return entry.id as SettingsRoute;}- // A few routes have ids that don't match their URL segment (build-info → about).+ // A few routes have ids that don't match their URL segment (e.g. an entry with an explicit `route`).// Check all registry entries whose resolved route matches.const byRoute = SETTINGS_ROUTE_REGISTRY.find(e => entryRoute(e) === firstSegment);if (byRoute) {diff --git a/app/src/components/settings/layout/settingsNavIcons.tsx b/app/src/components/settings/layout/settingsNavIcons.tsxindex e3e7250146..506b116609 100644--- a/app/src/components/settings/layout/settingsNavIcons.tsx+++ b/app/src/components/settings/layout/settingsNavIcons.tsx@@ -134,5 +134,4 @@ export const SETTINGS_NAV_ICONS: Record<string, ReactNode> = {search: icon(stroke('M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z')),// Diagnostics & Logs'event-log': icon(stroke('M4 6h16M4 10h16M4 14h16M4 18h16')),- 'build-info': icon(stroke('M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z')),};diff --git a/app/src/components/settings/panels/DeveloperOptionsPanel.tsx b/app/src/components/settings/panels/DeveloperOptionsPanel.tsxindex 8c3a99d083..6691ef5b40 100644--- a/app/src/components/settings/panels/DeveloperOptionsPanel.tsx+++ b/app/src/components/settings/panels/DeveloperOptionsPanel.tsx@@ -164,22 +164,6 @@ const diagnosticsLogsGroup: DevGroup = {</svg>),},- {- id: 'build-info',- titleKey: 'settings.buildInfo.title',- descriptionKey: 'settings.buildInfo.menuDesc',- route: 'about',- icon: (- <svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={2}- d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"- />- </svg>- ),- },],};diff --git a/app/src/components/settings/settingsRouteRegistry.ts b/app/src/components/settings/settingsRouteRegistry.tsindex 2821032d9e..cce6f90af7 100644--- a/app/src/components/settings/settingsRouteRegistry.ts+++ b/app/src/components/settings/settingsRouteRegistry.ts@@ -552,16 +552,9 @@ export const SETTINGS_ROUTE_REGISTRY: SettingsRegistryEntry[] = [devOnly: true,navGroup: 'agentsAutonomy',},- // Build Info (about page alias in dev menu)- {- id: 'build-info',- route: 'about',- titleKey: 'settings.buildInfo.title',- descriptionKey: 'settings.buildInfo.menuDesc',- section: 'developer',- devOnly: true,- navGroup: 'diagnosticsLogs',- },+ // The dev-only "Build / version info" alias was removed: it opened the same+ // About page, so dev builds listed two sidebar entries for one page. About's+ // search keywords already cover "build" and "version".// Token & Cost (TokenJuice compression settings + savings) is now the// "Token savings" tab of the merged Usage & limits surface on Connections —