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
+8
View File
@@ -311,6 +311,14 @@ func (*fakeContainerCLI) ExecAs(ctx context.Context, containerID, user string, a
return nil, nil
}
func (*fakeContainerCLI) Stop(ctx context.Context, containerID string) error {
return nil
}
func (*fakeContainerCLI) Remove(ctx context.Context, containerID string) error {
return nil
}
type fakeDevcontainerCLI struct {
config agentcontainers.DevcontainerConfig
execAgent func(ctx context.Context, token string) error