Skip to content

chore(agent/agentcontainers): disable project autostart by default #19114

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DanielleMaywood
Copy link
Contributor

We disable the logic that allows autostarting discovered devcontainers by default. We want this behavior to be opt-in rather than opt-out.

We disable the logic that allows autostarting discovered devcontainers
by default. We want this behavior to be opt-in rather than opt-out.
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR disables autostarting of discovered devcontainer projects by default, making this behavior opt-in rather than opt-out for better control over automatic project initialization.

  • Adds a new CLI flag --devcontainers-discovery-autostart-enable (defaults to false)
  • Wraps autostart logic with a conditional check based on the new setting
  • Updates tests to verify the new disabled-by-default behavior

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
cli/testdata/coder_agent_--help.golden Updates help text to include the new autostart flag documentation
cli/agent.go Adds CLI flag and option configuration for discovery autostart control
agent/agentcontainers/api_test.go Adds test case to verify autostart is disabled by default
agent/agentcontainers/api.go Implements the autostart conditional logic and option setter

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant