Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec50a35

Browse files
authored
chore(cli): disable agent devcontainer integration by default (#16531)
Until we have more of the building blocks in place, disable the agent devcontainer integration by default. We'll enable it by default at a later date.
1 parent b396408 commit ec50a35

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cli/agent.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ func (r *RootCmd) workspaceAgent() *serpent.Command {
475475
},
476476
{
477477
Flag: "devcontainers-enable",
478-
Default: "true",
478+
Default: "false",
479479
Env: "CODER_AGENT_DEVCONTAINERS_ENABLE",
480480
Description: "Allow the agent to automatically detect running devcontainers.",
481481
Value: serpent.BoolOf(&devcontainersEnabled),

cli/testdata/coder_agent_--help.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ OPTIONS:
3333
--debug-address string, $CODER_AGENT_DEBUG_ADDRESS (default: 127.0.0.1:2113)
3434
The bind address to serve a debug HTTP server.
3535

36-
--devcontainers-enable bool, $CODER_AGENT_DEVCONTAINERS_ENABLE (default: true)
36+
--devcontainers-enable bool, $CODER_AGENT_DEVCONTAINERS_ENABLE (default: false)
3737
Allow the agent to automatically detect running devcontainers.
3838

3939
--log-dir string, $CODER_AGENT_LOG_DIR (default: /tmp)

dogfood/contents/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ resource "docker_container" "workspace" {
374374
"CODER_PROC_PRIO_MGMT=1",
375375
"CODER_PROC_OOM_SCORE=10",
376376
"CODER_PROC_NICE_SCORE=1",
377+
"CODER_AGENT_DEVCONTAINERS_ENABLE=1",
377378
]
378379
host {
379380
host = "host.docker.internal"

0 commit comments

Comments
 (0)