refactor: generate task name fallback on coderd (#19447)

Instead of generating the fallback task name on the website, we instead
generate it on coderd.
This commit is contained in:
Danielle Maywood
2025-08-21 11:06:30 +01:00
committed by GitHub
parent 62fa731b34
commit 2521e732be
7 changed files with 47 additions and 21 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ func (api *API) tasksCreate(rw http.ResponseWriter, r *http.Request) {
return
}
taskName := req.Name
taskName := taskname.GenerateFallback()
if anthropicAPIKey := taskname.GetAnthropicAPIKeyFromEnv(); anthropicAPIKey != "" {
anthropicModel := taskname.GetAnthropicModelFromEnv()