diff --git a/registry/coder/modules/claude-code/README.md b/registry/coder/modules/claude-code/README.md index 01d00f1d..2b058374 100644 --- a/registry/coder/modules/claude-code/README.md +++ b/registry/coder/modules/claude-code/README.md @@ -13,7 +13,7 @@ Run the [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude ```tf module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.1" + version = "4.9.2" agent_id = coder_agent.main.id workdir = "/home/coder/project" claude_api_key = "xxxx-xxxxx-xxxx" @@ -67,7 +67,7 @@ The module writes the config to `~/.config/coder_boundary/config.yaml` automatic ```tf module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.1" + version = "4.9.2" agent_id = coder_agent.main.id workdir = "/home/coder/project" enable_boundary = true @@ -87,7 +87,7 @@ Use this when the config file is provisioned separately or managed outside the t ```tf module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.0" + version = "4.9.2" agent_id = coder_agent.main.id workdir = "/home/coder/project" enable_boundary = true @@ -109,7 +109,7 @@ For tasks integration with AI Bridge, add `enable_aibridge = true` to the [Usage ```tf module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.1" + version = "4.9.2" agent_id = coder_agent.main.id workdir = "/home/coder/project" enable_aibridge = true @@ -138,7 +138,7 @@ data "coder_task" "me" {} module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.1" + version = "4.9.2" agent_id = coder_agent.main.id workdir = "/home/coder/project" ai_prompt = data.coder_task.me.prompt @@ -161,7 +161,7 @@ This example shows additional configuration options for version pinning, custom ```tf module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.1" + version = "4.9.2" agent_id = coder_agent.main.id workdir = "/home/coder/project" @@ -217,7 +217,7 @@ Run and configure Claude Code as a standalone CLI in your workspace. ```tf module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.1" + version = "4.9.2" agent_id = coder_agent.main.id workdir = "/home/coder/project" install_claude_code = true @@ -239,7 +239,7 @@ variable "claude_code_oauth_token" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.1" + version = "4.9.2" agent_id = coder_agent.main.id workdir = "/home/coder/project" claude_code_oauth_token = var.claude_code_oauth_token @@ -312,7 +312,7 @@ resource "coder_env" "bedrock_api_key" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.1" + version = "4.9.2" agent_id = coder_agent.main.id workdir = "/home/coder/project" model = "global.anthropic.claude-sonnet-4-5-20250929-v1:0" @@ -369,7 +369,7 @@ resource "coder_env" "google_application_credentials" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.1" + version = "4.9.2" agent_id = coder_agent.main.id workdir = "/home/coder/project" model = "claude-sonnet-4@20250514" diff --git a/registry/coder/modules/claude-code/main.tf b/registry/coder/modules/claude-code/main.tf index a8a781c3..fed672af 100644 --- a/registry/coder/modules/claude-code/main.tf +++ b/registry/coder/modules/claude-code/main.tf @@ -233,12 +233,12 @@ variable "enable_boundary" { default = false validation { - condition = !var.enable_boundary || var.boundary_config == null || var.boundary_config_path == null + condition = !var.enable_boundary || (var.boundary_config == null || trimspace(var.boundary_config) == "") || (var.boundary_config_path == null || trimspace(var.boundary_config_path) == "") error_message = "Only one of boundary_config or boundary_config_path can be provided, not both." } validation { - condition = (var.boundary_config == null && var.boundary_config_path == null) || var.enable_boundary + condition = ((var.boundary_config == null || trimspace(var.boundary_config) == "") && (var.boundary_config_path == null || trimspace(var.boundary_config_path) == "")) || var.enable_boundary error_message = "boundary_config and boundary_config_path can only be set when enable_boundary is true." } }