Skip to content

Conversation

@blinkagent
Copy link
Contributor

@blinkagent blinkagent bot commented Nov 12, 2025

This PR adds an extra_args variable to the code-server module, allowing users to pass additional command-line arguments to code-server.

Changes

  • Added additional_args variable to main.tf with a default empty string
  • Updated run.sh to include ${ADDITIONAL_ARGS} in the code-server command
  • Added documentation and example usage in README.md

Use Case

This solves the issue where users want to disable the workspace trust prompt by passing --disable-workspace-trust to code-server. See the discussion in https://codercom.slack.com/archives/C09H8LRLG8K/p1762983278455979

Example Usage

module "code-server" { source = "registry.coder.com/coder/code-server/coder" version = "1.4.0" agent_id = coder_agent.example.id additional_args = "--disable-workspace-trust" }

The additional_args variable can accept any additional command-line arguments that code-server supports.

blink-so bot and others added 2 commits November 12, 2025 21:55
Allows users to pass additional command-line arguments to code-server. For example, --disable-workspace-trust can be used to disable the workspace trust prompt. Fixes workspace trust issue by allowing flexible argument passing.
@DevelopmentCats
Copy link
Contributor

Works well for me! made a few changes and bumped the version but this will probably be perfect going forward.

@DevelopmentCats DevelopmentCats changed the title feat: add extra_args variable to code-server module feat: add additional_args variable to code-server module Nov 13, 2025
@DevelopmentCats DevelopmentCats merged commit 8bf1789 into main Nov 13, 2025
4 checks passed
@DevelopmentCats DevelopmentCats deleted the add-code-server-extra-args branch November 13, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants