chore: add AI-tasks-specific fields to codersdk.WorkspaceBuild (#18436)

This will be needed by the frontend on the `/task/$id` page to display
the app in the sidebar.

Related to https://github.com/coder/coder/issues/18158
This commit is contained in:
Hugo Dutka
2025-06-20 10:59:34 +02:00
committed by GitHub
parent d788ab9e55
commit 32239b29cb
8 changed files with 60 additions and 0 deletions

View File

@ -75,6 +75,8 @@ type WorkspaceBuild struct {
DailyCost int32 `json:"daily_cost"`
MatchedProvisioners *MatchedProvisioners `json:"matched_provisioners,omitempty"`
TemplateVersionPresetID *uuid.UUID `json:"template_version_preset_id" format:"uuid"`
HasAITask *bool `json:"has_ai_task,omitempty"`
AITaskSidebarAppID *uuid.UUID `json:"ai_task_sidebar_app_id,omitempty" format:"uuid"`
}
// WorkspaceResource describes resources used to create a workspace, for instance: