feat: include latest build id in task responses (#20181)

Adding the latest build ID is necessary to locate the logs associated
with the tasks in the UI.
This commit is contained in:
Bruno Quaresma
2025-10-06 13:12:56 -03:00
committed by GitHub
parent 1783ee13ab
commit 23a44d10ac
6 changed files with 7 additions and 0 deletions
+1
View File
@@ -119,6 +119,7 @@ type Task struct {
WorkspaceAgentID uuid.NullUUID `json:"workspace_agent_id" format:"uuid" table:"workspace agent id"`
WorkspaceAgentLifecycle *WorkspaceAgentLifecycle `json:"workspace_agent_lifecycle" table:"workspace agent lifecycle"`
WorkspaceAgentHealth *WorkspaceAgentHealth `json:"workspace_agent_health" table:"workspace agent health"`
LatestBuildID uuid.NullUUID `json:"latest_build_id" format:"uuid" table:"latest build id"`
InitialPrompt string `json:"initial_prompt" table:"initial prompt"`
Status WorkspaceStatus `json:"status" enums:"pending,starting,running,stopping,stopped,failed,canceling,canceled,deleting,deleted" table:"status"`
CurrentState *TaskStateEntry `json:"current_state" table:"cs,recursive_inline"`