Skip to content

Add support to track Agent API version #10339

Closed
@spikecurtis

Description

@spikecurtis

Background

We are in the process of consolidating/refactoring the API calls the Coder Agent makes into a new Agent API. This API will be versioned separately from the main Coder Product version and consist of a major and minor version (no patch).

The existing combination of REST calls and websockets is now defined as Agent API version 1.0.

Feature

  1. Define a new column in the workspace_agents table, called api_version to track the API version of the agent when it connects.
  2. Populate the API version in the same code-path as we populate the version column. For now we can hard-code 1.0 as the version.
  3. API calls that fetch the Agent should return the api_version.

Metadata

Metadata

Assignees

No one assigned

    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