Skip to content

refactor(agent): update agentcontainers api initialization #17600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Apr 29, 2025
Prev Previous commit
Next Next commit
fix copy
  • Loading branch information
mafredri committed Apr 29, 2025
commit ea9f564bafa8c51c8ff05182334f7eab36dae48e
4 changes: 2 additions & 2 deletions agent/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ func (a *agent) apiHandler() (http.Handler, func() error) {
} else {
r.HandleFunc("/api/v0/containers", func(w http.ResponseWriter, r *http.Request) {
httpapi.Write(r.Context(), w, http.StatusForbidden, codersdk.Response{
Message: "Container API is not enabled.",
Detail: "Set the CODER_AGENT_DEVCONTAINERS_ENABLE environment variable or use the --devcontainers-enable flag on the agent to enable the container API.",
Message: "The agent dev containers feature is not enabled.",
Detail: "Set the CODER_AGENT_DEVCONTAINERS_ENABLE environment variable or use the --devcontainers-enable flag to enable this feature.",
})
})
}
Expand Down
Loading