@@ -555,32 +555,6 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
555555 </ div >
556556 </ div >
557557 < div className = "mt-5" >
558- { /*
559- NOTE: This setting is placed in PromptsView rather than SettingsView since it
560- directly affects the functionality related to modes and custom mode creation,
561- which are managed in this component. This is an intentional deviation from
562- the standard pattern described in cline_docs/settings.md.
563- */ }
564- < div className = "mb-4" >
565- < VSCodeCheckbox
566- checked = { enableCustomModeCreation ?? true }
567- onChange = { ( e : any ) => {
568- // Just update the local state through React context
569- // The React context will update the global state
570- setEnableCustomModeCreation ( e . target . checked )
571- } } >
572- < span style = { { fontWeight : "500" } } > Enable Custom Mode Creation</ span >
573- </ VSCodeCheckbox >
574- < p
575- style = { {
576- fontSize : "12px" ,
577- marginTop : "5px" ,
578- color : "var(--vscode-descriptionForeground)" ,
579- } } >
580- When enabled, Roo can help you create custom modes. You can disable this to reduce Roo's
581- token usage.
582- </ p >
583- </ div >
584558 < div onClick = { ( e ) => e . stopPropagation ( ) } className = "flex justify-between items-center mb-3" >
585559 < h3 className = "text-vscode-foreground m-0" > Modes</ h3 >
586560 < div className = "flex gap-2" >
@@ -1048,6 +1022,35 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
10481022 </ div >
10491023 ) }
10501024 </ div >
1025+
1026+ { /*
1027+ NOTE: This setting is placed in PromptsView rather than SettingsView since it
1028+ directly affects the functionality related to modes and custom mode creation,
1029+ which are managed in this component. This is an intentional deviation from
1030+ the standard pattern described in cline_docs/settings.md.
1031+ */ }
1032+ < div className = "mb-4 mt-4" >
1033+ < VSCodeCheckbox
1034+ checked = { enableCustomModeCreation ?? true }
1035+ onChange = { ( e : any ) => {
1036+ // Just update the local state through React context
1037+ // The React context will update the global state
1038+ setEnableCustomModeCreation ( e . target . checked )
1039+ } } >
1040+ < span style = { { fontWeight : "500" } } > Enable Custom Mode Creation</ span >
1041+ </ VSCodeCheckbox >
1042+ < p
1043+ style = { {
1044+ fontSize : "12px" ,
1045+ marginTop : "5px" ,
1046+ color : "var(--vscode-descriptionForeground)" ,
1047+ } } >
1048+ When enabled, Roo allows you to create custom modes using prompts like ‘Make me a custom
1049+ mode that…’. Disabling this reduces your system prompt by about 700 tokens when this feature
1050+ isn’t needed. When disabled you can still manually create custom prompts using the + button
1051+ above or by editing the related config JSON.
1052+ </ p >
1053+ </ div >
10511054 </ div >
10521055
10531056 < div
0 commit comments