feat(agent): support deleting dev containers (#21247)

Add logic to the agent, and an endpoint, to allow requesting and then deleting a Dev Container and its related agent.
This commit is contained in:
Danielle Maywood
2025-12-22 11:28:31 +00:00
committed by GitHub
parent 59959e0add
commit 44a46db487
12 changed files with 872 additions and 78 deletions
+4
View File
@@ -20411,12 +20411,16 @@ const docTemplate = `{
"running",
"stopped",
"starting",
"stopping",
"deleting",
"error"
],
"x-enum-varnames": [
"WorkspaceAgentDevcontainerStatusRunning",
"WorkspaceAgentDevcontainerStatusStopped",
"WorkspaceAgentDevcontainerStatusStarting",
"WorkspaceAgentDevcontainerStatusStopping",
"WorkspaceAgentDevcontainerStatusDeleting",
"WorkspaceAgentDevcontainerStatusError"
]
},
+10 -1
View File
@@ -18757,11 +18757,20 @@
},
"codersdk.WorkspaceAgentDevcontainerStatus": {
"type": "string",
"enum": ["running", "stopped", "starting", "error"],
"enum": [
"running",
"stopped",
"starting",
"stopping",
"deleting",
"error"
],
"x-enum-varnames": [
"WorkspaceAgentDevcontainerStatusRunning",
"WorkspaceAgentDevcontainerStatusStopped",
"WorkspaceAgentDevcontainerStatusStarting",
"WorkspaceAgentDevcontainerStatusStopping",
"WorkspaceAgentDevcontainerStatusDeleting",
"WorkspaceAgentDevcontainerStatusError"
]
},