@@ -55,14 +55,10 @@ export function SettingsView() {
5555 const isDarkMode = useThemeStore ( ( state ) => state . isDarkMode ) ;
5656 const toggleDarkMode = useThemeStore ( ( state ) => state . toggleDarkMode ) ;
5757 const {
58- autoRunTasks,
59- createPR,
6058 cursorGlow,
6159 desktopNotifications,
6260 autoConvertLongText,
6361 sendMessagesWith,
64- setAutoRunTasks,
65- setCreatePR,
6662 setCursorGlow,
6763 setDesktopNotifications,
6864 setAutoConvertLongText,
@@ -106,30 +102,6 @@ export function SettingsView() {
106102 } , [ worktreeLocation ] ) ;
107103
108104 // Tracked settings handlers
109- const handleAutoRunChange = useCallback (
110- ( checked : boolean ) => {
111- track ( ANALYTICS_EVENTS . SETTING_CHANGED , {
112- setting_name : "auto_run_tasks" ,
113- new_value : checked ,
114- old_value : autoRunTasks ,
115- } ) ;
116- setAutoRunTasks ( checked ) ;
117- } ,
118- [ autoRunTasks , setAutoRunTasks ] ,
119- ) ;
120-
121- const handleCreatePRChange = useCallback (
122- ( checked : boolean ) => {
123- track ( ANALYTICS_EVENTS . SETTING_CHANGED , {
124- setting_name : "create_pr" ,
125- new_value : checked ,
126- old_value : createPR ,
127- } ) ;
128- setCreatePR ( checked ) ;
129- } ,
130- [ createPR , setCreatePR ] ,
131- ) ;
132-
133105 const handleDarkModeChange = useCallback ( ( ) => {
134106 track ( ANALYTICS_EVENTS . SETTING_CHANGED , {
135107 setting_name : "dark_mode" ,
@@ -437,49 +409,6 @@ export function SettingsView() {
437409
438410 < Box className = "border-gray-6 border-t" />
439411
440- { /* Task Execution Section */ }
441- < Flex direction = "column" gap = "3" >
442- < Heading size = "3" > Task execution</ Heading >
443- < Card >
444- < Flex direction = "column" gap = "4" >
445- < Flex align = "center" justify = "between" >
446- < Flex direction = "column" gap = "1" >
447- < Text size = "1" weight = "medium" >
448- Auto-run new tasks
449- </ Text >
450- < Text size = "1" color = "gray" >
451- Automatically start tasks after creation
452- </ Text >
453- </ Flex >
454- < Switch
455- checked = { autoRunTasks }
456- onCheckedChange = { handleAutoRunChange }
457- size = "1"
458- />
459- </ Flex >
460-
461- < Flex align = "center" justify = "between" >
462- < Flex direction = "column" gap = "1" >
463- < Text size = "1" weight = "medium" >
464- Create PR for local runs
465- </ Text >
466- < Text size = "1" color = "gray" >
467- Automatically create a pull request when local tasks
468- complete
469- </ Text >
470- </ Flex >
471- < Switch
472- checked = { createPR }
473- onCheckedChange = { handleCreatePRChange }
474- size = "1"
475- />
476- </ Flex >
477- </ Flex >
478- </ Card >
479- </ Flex >
480-
481- < Box className = "border-gray-6 border-t" />
482-
483412 { /* Workspace Storage Section */ }
484413 < Flex direction = "column" gap = "3" >
485414 < Heading size = "3" > Workspace storage</ Heading >
0 commit comments