@@ -99,7 +99,7 @@ type Props = {
9999 api_configurations : ApiConfiguration [ ]
100100 web_configurations : WebConfiguration [ ]
101101 defaults : Record < ToolType , string | null >
102- edit_context_system_instructions : string
102+ edit_files_system_instructions : string
103103 voice_input_instructions : string
104104 voice_input_push_to_talk : boolean
105105 commit_message_instructions : string
@@ -127,7 +127,7 @@ type Props = {
127127 on_edit_format_instructions_change : (
128128 instructions : EditFormatInstructions
129129 ) => void
130- on_edit_context_system_instructions_change : ( instructions : string ) => void
130+ on_edit_files_system_instructions_change : ( instructions : string ) => void
131131 on_voice_input_instructions_change : ( instructions : string ) => void
132132 on_voice_input_push_to_talk_change : ( enabled : boolean ) => void
133133 on_automatic_checkpoints_toggle : ( disabled : boolean ) => void
@@ -204,8 +204,7 @@ export const Home: React.FC<Props> = (props) => {
204204
205205 const [ commit_instructions , set_commit_instructions ] = useState ( '' )
206206 const [ voice_input_instructions , set_voice_input_instructions ] = useState ( '' )
207- const [ edit_context_instructions , set_edit_context_instructions ] =
208- useState ( '' )
207+ const [ edit_files_instructions , set_edit_files_instructions ] = useState ( '' )
209208
210209 const get_has_warning = ( id : NavItem ) : boolean => {
211210 if ( id == 'model-providers' ) {
@@ -262,8 +261,8 @@ export const Home: React.FC<Props> = (props) => {
262261 } , [ props . voice_input_instructions ] )
263262
264263 useEffect ( ( ) => {
265- set_edit_context_instructions ( props . edit_context_system_instructions || '' )
266- } , [ props . edit_context_system_instructions ] )
264+ set_edit_files_instructions ( props . edit_files_system_instructions || '' )
265+ } , [ props . edit_files_system_instructions ] )
267266
268267 const handle_scroll_to_section = ( item_id : NavItem ) => {
269268 const section = section_refs . current [ item_id ]
@@ -430,22 +429,22 @@ export const Home: React.FC<Props> = (props) => {
430429 on_add_api_configuration = { props . on_add_api_configuration }
431430 on_edit_api_configuration = { props . on_edit_api_configuration }
432431 on_delete_api_configuration = { props . on_delete_api_configuration }
433- edit_context_instructions = { edit_context_instructions }
432+ edit_files_instructions = { edit_files_instructions }
434433 commit_instructions = { commit_instructions }
435434 voice_input_instructions = { voice_input_instructions }
436- set_edit_context_instructions = { set_edit_context_instructions }
435+ set_edit_files_instructions = { set_edit_files_instructions }
437436 set_commit_instructions = { set_commit_instructions }
438437 set_voice_input_instructions = { set_voice_input_instructions }
439- on_edit_context_instructions_blur = { ( ) => {
440- props . on_edit_context_system_instructions_change (
441- edit_context_instructions
438+ on_edit_files_instructions_blur = { ( ) => {
439+ props . on_edit_files_system_instructions_change (
440+ edit_files_instructions
442441 )
443442 if (
444- edit_context_instructions == '' &&
445- props . edit_context_system_instructions ==
443+ edit_files_instructions == '' &&
444+ props . edit_files_system_instructions ==
446445 default_system_instructions
447446 ) {
448- set_edit_context_instructions ( default_system_instructions )
447+ set_edit_files_instructions ( default_system_instructions )
449448 }
450449 } }
451450 on_commit_instructions_blur = { ( ) => {
@@ -467,12 +466,12 @@ export const Home: React.FC<Props> = (props) => {
467466 set_voice_input_instructions ( default_voice_input_instructions )
468467 }
469468 } }
470- default_edit_context_instructions = { default_system_instructions }
469+ default_edit_files_instructions = { default_system_instructions }
471470 default_commit_instructions = { default_commit_message_instructions }
472471 default_voice_input_instructions = { default_voice_input_instructions }
473- on_restore_edit_context_instructions = { ( ) => {
474- set_edit_context_instructions ( default_system_instructions )
475- props . on_edit_context_system_instructions_change (
472+ on_restore_edit_files_instructions = { ( ) => {
473+ set_edit_files_instructions ( default_system_instructions )
474+ props . on_edit_files_system_instructions_change (
476475 default_system_instructions
477476 )
478477 } }
0 commit comments