From 703b974757cab613ee150840994ecf8c54ce4ef5 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Mon, 16 Mar 2026 10:16:14 +0200 Subject: [PATCH] fix(coderd): remove false devcontainers early access warning (#23056) The script source claimed Dev Containers are early access and told users to set CODER_AGENT_DEVCONTAINERS_ENABLE=true, which already defaults to true. Clear the script source and set RunOnStart to false since there is nothing to run. --- coderd/provisionerdserver/provisionerdserver.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/coderd/provisionerdserver/provisionerdserver.go b/coderd/provisionerdserver/provisionerdserver.go index 7fcdc26060..b776b75bf9 100644 --- a/coderd/provisionerdserver/provisionerdserver.go +++ b/coderd/provisionerdserver/provisionerdserver.go @@ -2982,14 +2982,11 @@ func InsertWorkspaceResource(ctx context.Context, db database.Store, jobID uuid. scriptsParams.ScriptIDs = append(scriptsParams.ScriptIDs, id) // Re-use the devcontainer ID as the script ID for identification. scriptsParams.ScriptDisplayNames = append(scriptsParams.ScriptDisplayNames, displayName) scriptsParams.ScriptLogPaths = append(scriptsParams.ScriptLogPaths, "") - scriptsParams.ScriptSources = append(scriptsParams.ScriptSources, `echo "WARNING: Dev Containers are early access. If you're seeing this message then Dev Containers haven't been enabled for your workspace yet. To enable, the agent needs to run with the environment variable CODER_AGENT_DEVCONTAINERS_ENABLE=true set."`) + scriptsParams.ScriptSources = append(scriptsParams.ScriptSources, "") scriptsParams.ScriptCron = append(scriptsParams.ScriptCron, "") scriptsParams.ScriptTimeout = append(scriptsParams.ScriptTimeout, 0) scriptsParams.ScriptStartBlocksLogin = append(scriptsParams.ScriptStartBlocksLogin, false) - // Run on start to surface the warning message in case the - // terraform resource is used, but the experiment hasn't - // been enabled. - scriptsParams.ScriptRunOnStart = append(scriptsParams.ScriptRunOnStart, true) + scriptsParams.ScriptRunOnStart = append(scriptsParams.ScriptRunOnStart, false) scriptsParams.ScriptRunOnStop = append(scriptsParams.ScriptRunOnStop, false) }