@@ -15,17 +15,14 @@ import { ApiFeature } from '@/views/shared/types/api-features'
1515import { use_translation , TranslationKey } from '../i18n/use-translation'
1616import { WebSection } from './sections/WebSection'
1717import { commit_message_instructions as default_commit_message_instructions } from '@/constants/instructions'
18- import { intelligent_search_task_instructions as default_intelligent_file_search_instructions } from '@/constants/instructions'
19- import { agentic_search_task_instructions as default_agentic_file_search_instructions } from '@/constants/instructions'
2018import { default_system_instructions } from '@shared/constants/default-system-instructions'
2119import { GROUP_TITLE_HEIGHT , SECTION_HEADER_HEIGHT } from '@ui/constants/sizes'
2220
2321export type NavItem =
2422 | 'section:general'
2523 | 'section:general:group:open-links'
26- | 'section:general:group:context'
2724 | 'section:general:group:prompt'
28- | 'section:general:group:commit-messages '
25+ | 'section:general:group:commits '
2926 | 'section:web'
3027 | 'section:web:group:web-configurations'
3128 | 'section:api'
@@ -51,12 +48,8 @@ const NAV_ITEMS_CONFIG: NavConfigItem[] = [
5148 label : 'general.prompt.title'
5249 } ,
5350 {
54- id : 'section:general:group:context' ,
55- label : 'general.context.title'
56- } ,
57- {
58- id : 'section:general:group:commit-messages' ,
59- label : 'general.commit-messages.title'
51+ id : 'section:general:group:commits' ,
52+ label : 'general.commits.title'
6053 } ,
6154 {
6255 id : 'section:web' ,
@@ -98,8 +91,6 @@ type Props = {
9891 web_configurations : WebConfiguration [ ]
9992 defaults : Record < ApiFeature , string | null >
10093 edit_files_system_instructions : string
101- intelligent_search_instructions : string
102- agentic_search_instructions : string
10394 commit_message_instructions : string
10495 attach_ascii_tree_of_context : 'ask' | 'always' | 'never'
10596 use_context_files_in_commit_message_prompt : 'ask' | 'always' | 'never'
@@ -130,8 +121,6 @@ type Props = {
130121 enabled : boolean
131122 ) => void
132123 on_edit_files_system_instructions_change : ( instructions : string ) => void
133- on_intelligent_search_instructions_change : ( instructions : string ) => void
134- on_agentic_search_instructions_change : ( instructions : string ) => void
135124 on_gemini_user_id_change : ( id : number | null ) => void
136125 on_ai_studio_user_id_change : ( id : number | null ) => void
137126 on_send_with_shift_enter_change : ( enabled : boolean ) => void
@@ -180,8 +169,7 @@ export const Home: React.FC<Props> = (props) => {
180169 'section:general' : null ,
181170 'section:general:group:open-links' : null ,
182171 'section:general:group:prompt' : null ,
183- 'section:general:group:context' : null ,
184- 'section:general:group:commit-messages' : null ,
172+ 'section:general:group:commits' : null ,
185173 'section:web' : null ,
186174 'section:web:group:web-configurations' : null ,
187175 'section:api' : null ,
@@ -200,10 +188,6 @@ export const Home: React.FC<Props> = (props) => {
200188 )
201189
202190 const [ commit_instructions , set_commit_instructions ] = useState ( '' )
203- const [ intelligent_search_instructions , set_intelligent_search_instructions ] =
204- useState ( '' )
205- const [ agentic_search_instructions , set_agentic_search_instructions ] =
206- useState ( '' )
207191 const [ edit_files_instructions , set_edit_files_instructions ] = useState ( '' )
208192
209193 const get_has_warning = ( id : NavItem ) : boolean => {
@@ -355,16 +339,6 @@ export const Home: React.FC<Props> = (props) => {
355339 set_commit_instructions ( props . commit_message_instructions || '' )
356340 } , [ props . commit_message_instructions ] )
357341
358- useEffect ( ( ) => {
359- set_intelligent_search_instructions (
360- props . intelligent_search_instructions || ''
361- )
362- } , [ props . intelligent_search_instructions ] )
363-
364- useEffect ( ( ) => {
365- set_agentic_search_instructions ( props . agentic_search_instructions || '' )
366- } , [ props . agentic_search_instructions ] )
367-
368342 useEffect ( ( ) => {
369343 set_edit_files_instructions ( props . edit_files_system_instructions || '' )
370344 } , [ props . edit_files_system_instructions ] )
@@ -527,62 +501,6 @@ export const Home: React.FC<Props> = (props) => {
527501 default_commit_message_instructions
528502 )
529503 } }
530- intelligent_search_instructions = { intelligent_search_instructions }
531- set_intelligent_search_instructions = {
532- set_intelligent_search_instructions
533- }
534- on_intelligent_search_instructions_blur = { ( ) => {
535- props . on_intelligent_search_instructions_change (
536- intelligent_search_instructions
537- )
538- if (
539- intelligent_search_instructions == '' &&
540- props . intelligent_search_instructions ==
541- default_intelligent_file_search_instructions
542- ) {
543- set_intelligent_search_instructions (
544- default_intelligent_file_search_instructions
545- )
546- }
547- } }
548- default_intelligent_search_instructions = {
549- default_intelligent_file_search_instructions
550- }
551- on_restore_intelligent_search_instructions = { ( ) => {
552- set_intelligent_search_instructions (
553- default_intelligent_file_search_instructions
554- )
555- props . on_intelligent_search_instructions_change (
556- default_intelligent_file_search_instructions
557- )
558- } }
559- agentic_search_instructions = { agentic_search_instructions }
560- set_agentic_search_instructions = { set_agentic_search_instructions }
561- on_agentic_search_instructions_blur = { ( ) => {
562- props . on_agentic_search_instructions_change (
563- agentic_search_instructions
564- )
565- if (
566- agentic_search_instructions == '' &&
567- props . agentic_search_instructions ==
568- default_agentic_file_search_instructions
569- ) {
570- set_agentic_search_instructions (
571- default_agentic_file_search_instructions
572- )
573- }
574- } }
575- default_agentic_search_instructions = {
576- default_agentic_file_search_instructions
577- }
578- on_restore_agentic_search_instructions = { ( ) => {
579- set_agentic_search_instructions (
580- default_agentic_file_search_instructions
581- )
582- props . on_agentic_search_instructions_change (
583- default_agentic_file_search_instructions
584- )
585- } }
586504 on_open_external_url = { props . on_open_external_url }
587505 templates = { props . templates }
588506 on_update_templates = { props . on_update_templates }
0 commit comments