@@ -37,7 +37,7 @@ type ExecutionMode = Automation["executionMode"]
3737type AutomationKind = Automation [ "kind" ]
3838type PermissionProfile = Automation [ "permissionProfile" ]
3939type NotificationBehavior = Automation [ "notificationBehavior" ]
40- type ReasoningEffort = NonNullable < Automation [ "reasoningEffort" ] >
40+ type ReasoningEffort = NonNullable < Automation [ "reasoningEffort" ] > | "default"
4141
4242type FormState = {
4343 title : string
@@ -62,7 +62,7 @@ type FormState = {
6262const scheduleTypes : ScheduleType [ ] = [ "interval" , "daily" , "weekly" ]
6363const executionModes : ExecutionMode [ ] = [ "local" , "worktree" ]
6464const automationKinds : AutomationKind [ ] = [ "standalone" , "thread" ]
65- const reasoningEfforts : ReasoningEffort [ ] = [ "none " , "low" , "medium" , "high" ]
65+ const reasoningEfforts : ReasoningEffort [ ] = [ "default " , "low" , "medium" , "high" ]
6666const permissionProfiles : PermissionProfile [ ] = [
6767 "read_only" ,
6868 "repo_write_no_network" ,
@@ -95,7 +95,7 @@ function defaultForm(model: string): FormState {
9595 days : [ "mon" , "tue" , "wed" , "thu" , "fri" ] ,
9696 executionMode : "local" ,
9797 model,
98- reasoningEffort : "none " ,
98+ reasoningEffort : "default " ,
9999 permissionProfile : "read_only" ,
100100 notificationBehavior : "auto_archive_no_findings" ,
101101 maxRuntimeMinutes : "" ,
@@ -133,7 +133,7 @@ function formFromAutomation(automation: Automation, fallbackModel: string): Form
133133 days : schedule . type === "weekly" ? [ ...schedule . days ] : base . days ,
134134 executionMode : automation . executionMode ,
135135 model : automation . model ,
136- reasoningEffort : automation . reasoningEffort ?? "none " ,
136+ reasoningEffort : automation . reasoningEffort ?? "default " ,
137137 permissionProfile : automation . permissionProfile ,
138138 notificationBehavior : automation . notificationBehavior ,
139139 maxRuntimeMinutes : automation . maxRuntimeMinutes ? String ( automation . maxRuntimeMinutes ) : "" ,
@@ -151,7 +151,7 @@ function isActiveRun(run: AutomationRun) {
151151}
152152
153153function label ( value : string ) {
154- if ( value === "none " ) return "Off "
154+ if ( value === "default " ) return "Default "
155155 return value
156156 . split ( "_" )
157157 . map ( ( part ) => part . charAt ( 0 ) . toUpperCase ( ) + part . slice ( 1 ) )
@@ -426,7 +426,7 @@ export default function AutomationsPage() {
426426 schedule,
427427 executionMode : form . executionMode ,
428428 model : form . model . trim ( ) || undefined ,
429- reasoningEffort : form . reasoningEffort ,
429+ reasoningEffort : form . reasoningEffort === "default" ? undefined : form . reasoningEffort ,
430430 permissionProfile : form . permissionProfile ,
431431 notificationBehavior : form . notificationBehavior ,
432432 maxRuntimeMinutes : maxRuntimeMinutes === undefined ? undefined : Math . floor ( maxRuntimeMinutes ) ,
0 commit comments