You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
task status is empty when workspace is starting or startup script is running #1063
When workspace is starting, agent is connecting, and/or startup script is running can we show a unique message in the status field? This should both be a UI and API thing so someone can get this via the tasks API, not workspaces API
With the new tasks data model refactor, the GET /api/experimental/tasks response contains Task.Status which will be initializing during the mentioned state, once ready it will be active.
As mentioned in the previous comments, with the new tasks data model, when a task is initializing, an "Initializing" status appears. However, since the agent is still waiting for workspace initialization or is still initializing, its state (current_state) is set as null, and the message "No message available" is displayed, which is not very informative about what's actually happening during initialization.
The solution presented in coder/coder#20692 consists of adding more descriptive messages that explain the initialization workflow, such as: "Workspace is pending" > "Workspace is starting" > "Agent is connecting" > "Agent is starting" > "App is initializing"
This provides users with clear, actionable feedback about the current initialization phase.
Activity
mafredri commentedon Oct 24, 2025
With the new tasks data model refactor, the
GET /api/experimental/tasksresponse containsTask.Statuswhich will beinitializingduring the mentioned state, once ready it will beactive.johnstcn commentedon Oct 24, 2025
FWIW I think in this case Ben is mentioning the empty "Agent status" field (a.k.a.
TaskState).ssncferreira commentedon Nov 12, 2025
As mentioned in the previous comments, with the new tasks data model, when a task is initializing, an "Initializing" status appears. However, since the agent is still waiting for workspace initialization or is still initializing, its state (
current_state) is set asnull, and the message "No message available" is displayed, which is not very informative about what's actually happening during initialization.The solution presented in coder/coder#20692 consists of adding more descriptive messages that explain the initialization workflow, such as: "Workspace is pending" > "Workspace is starting" > "Agent is connecting" > "Agent is starting" > "App is initializing"
This provides users with clear, actionable feedback about the current initialization phase.
fix: set codersdk.Task current_state during task initialization (#20692)