@@ -21,7 +21,12 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/component
2121import { GeneralSettings } from './GeneralSettings' ;
2222import { ExplorerSettings } from './ExplorerSettings' ;
2323import { useLayoutStore } from '@/stores/settings' ;
24- import { ConfigSettings , ArchivedThreadSettings , PersonalizationSettings } from './codex' ;
24+ import {
25+ ConfigSettings ,
26+ ArchivedThreadSettings ,
27+ PersonalizationSettings ,
28+ SettingsAgentsSection ,
29+ } from './codex' ;
2530import { ClaudeSettings } from './ClaudeSettings' ;
2631import { CodexAuth } from '../codex/CodexAuth' ;
2732import { QuoteSettings } from './QuoteSettings' ;
@@ -41,10 +46,11 @@ type SettingsSection =
4146 | 'explorer'
4247 | 'quote'
4348 | 'task'
49+ | 'agents'
4450 | 'claude'
4551 | 'remote' ;
4652
47- const codexSections = [ 'codexauth' , 'task' , 'config' , 'personalization' , 'archived' ] as const ;
53+ const codexSections = [ 'codexauth' , 'task' , 'agents' , ' config', 'personalization' , 'archived' ] as const ;
4854const topLevelSections = [ 'general' , 'projects' , 'claude' , 'explorer' , 'quote' , 'remote' ] as const ;
4955
5056const sectionLabel : Record < SettingsSection , string > = {
@@ -57,6 +63,7 @@ const sectionLabel: Record<SettingsSection, string> = {
5763 explorer : 'Explorer' ,
5864 quote : 'Quote' ,
5965 task : 'Task' ,
66+ agents : 'Multi-agent' ,
6067 claude : 'Claude' ,
6168 remote : 'Remote' ,
6269} ;
@@ -78,6 +85,7 @@ export function SettingsView() {
7885 { activeSection === 'explorer' && < ExplorerSettings /> }
7986 { activeSection === 'quote' && < QuoteSettings /> }
8087 { activeSection === 'task' && < TaskSettings /> }
88+ { activeSection === 'agents' && < SettingsAgentsSection /> }
8189 { activeSection === 'claude' && < ClaudeSettings /> }
8290 { activeSection === 'remote' && < RemoteSettings /> }
8391 </ >
@@ -157,10 +165,11 @@ export function SettingsView() {
157165 < button
158166 type = "button"
159167 onClick = { ( ) => setActiveSection ( section ) }
160- className = { `w-full rounded-lg px-3 py-2 text-left transition-colors ${ activeSection === section
161- ? 'bg-accent text-foreground'
162- : 'text-muted-foreground hover:bg-accent/50 hover:text-foreground'
163- } `}
168+ className = { `w-full rounded-lg px-3 py-2 text-left transition-colors ${
169+ activeSection === section
170+ ? 'bg-accent text-foreground'
171+ : 'text-muted-foreground hover:bg-accent/50 hover:text-foreground'
172+ } `}
164173 >
165174 { sectionLabel [ section ] }
166175 </ button >
@@ -185,10 +194,11 @@ export function SettingsView() {
185194 key = { section }
186195 type = "button"
187196 onClick = { ( ) => setActiveSection ( section ) }
188- className = { `w-full rounded-lg px-6 py-2 text-left transition-colors ${ activeSection === section
189- ? 'bg-accent text-foreground'
190- : 'text-muted-foreground hover:bg-accent/50 hover:text-foreground'
191- } `}
197+ className = { `w-full rounded-lg px-6 py-2 text-left transition-colors ${
198+ activeSection === section
199+ ? 'bg-accent text-foreground'
200+ : 'text-muted-foreground hover:bg-accent/50 hover:text-foreground'
201+ } `}
192202 >
193203 { sectionLabel [ section ] }
194204 </ button >
0 commit comments