File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1078,6 +1078,14 @@ func (api *API) convertWorkspaceBuild(
1078
1078
if build .TemplateVersionPresetID .Valid {
1079
1079
presetID = & build .TemplateVersionPresetID .UUID
1080
1080
}
1081
+ var hasAITask * bool
1082
+ if build .HasAITask .Valid {
1083
+ hasAITask = & build .HasAITask .Bool
1084
+ }
1085
+ var aiTasksSidebarAppID * uuid.UUID
1086
+ if build .AITasksSidebarAppID .Valid {
1087
+ aiTasksSidebarAppID = & build .AITasksSidebarAppID .UUID
1088
+ }
1081
1089
1082
1090
apiJob := convertProvisionerJob (job )
1083
1091
transition := codersdk .WorkspaceTransition (build .Transition )
@@ -1105,6 +1113,8 @@ func (api *API) convertWorkspaceBuild(
1105
1113
DailyCost : build .DailyCost ,
1106
1114
MatchedProvisioners : & matchedProvisioners ,
1107
1115
TemplateVersionPresetID : presetID ,
1116
+ HasAITask : hasAITask ,
1117
+ AITasksSidebarAppID : aiTasksSidebarAppID ,
1108
1118
}, nil
1109
1119
}
1110
1120
Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ type WorkspaceBuild struct {
75
75
DailyCost int32 `json:"daily_cost"`
76
76
MatchedProvisioners * MatchedProvisioners `json:"matched_provisioners,omitempty"`
77
77
TemplateVersionPresetID * uuid.UUID `json:"template_version_preset_id" format:"uuid"`
78
+ HasAITask * bool `json:"has_ai_task,omitempty"`
79
+ AITasksSidebarAppID * uuid.UUID `json:"ai_tasks_sidebar_app_id,omitempty" format:"uuid"`
78
80
}
79
81
80
82
// WorkspaceResource describes resources used to create a workspace, for instance:
You can’t perform that action at this time.
0 commit comments