Skip to content

task status is empty when workspace is starting or startup script is running #1063

Closed
coder/coder
#20692

Description

@bpmct
Image

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

Activity

  1. mafredri commented on Oct 24, 2025

    @mafredri
    Member

    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.

  2. johnstcn commented on Oct 24, 2025

    @johnstcn
    Member

    FWIW I think in this case Ben is mentioning the empty "Agent status" field (a.k.a. TaskState).

  3. ssncferreira commented on Nov 12, 2025

    @ssncferreira

    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.

    Image

    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.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions