From 42db8f53d933bc3563f5c3c51adccf21fb3931b6 Mon Sep 17 00:00:00 2001 From: "blink-so[bot]" <211532188+blink-so[bot]@users.noreply.github.com> Date: Wed, 29 Oct 2025 21:14:40 +0000 Subject: [PATCH 1/3] fix: Move set -euo pipefail after sourcing bashrc Moves the strict error handling flags after sourcing user bashrc files to prevent failures from unbound variables in user dotfiles. This is especially important when users load dotfiles from git. Fixes agentapi server startup failures caused by BASHRCSOURCED and other unbound variables in /etc/bashrc or user-specific bashrc files. --- registry/coder/modules/claude-code/scripts/install.sh | 4 +++- registry/coder/modules/claude-code/scripts/start.sh | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/registry/coder/modules/claude-code/scripts/install.sh b/registry/coder/modules/claude-code/scripts/install.sh index 21133384d..80f84e6d3 100644 --- a/registry/coder/modules/claude-code/scripts/install.sh +++ b/registry/coder/modules/claude-code/scripts/install.sh @@ -1,10 +1,12 @@ #!/bin/bash -set -euo pipefail if [ -f "$HOME/.bashrc" ]; then source "$HOME"/.bashrc fi +# Set strict error handling AFTER sourcing bashrc to avoid unbound variable errors from user dotfiles +set -euo pipefail + BOLD='\033[0;1m' command_exists() { diff --git a/registry/coder/modules/claude-code/scripts/start.sh b/registry/coder/modules/claude-code/scripts/start.sh index 704526753..afd21cdc8 100644 --- a/registry/coder/modules/claude-code/scripts/start.sh +++ b/registry/coder/modules/claude-code/scripts/start.sh @@ -1,9 +1,12 @@ #!/bin/bash -set -euo pipefail if [ -f "$HOME/.bashrc" ]; then source "$HOME"/.bashrc fi + +# Set strict error handling AFTER sourcing bashrc to avoid unbound variable errors from user dotfiles +set -euo pipefail + export PATH="$HOME/.local/bin:$PATH" command_exists() { From 058ce8489a2d91b1d6b220883797148831d7e1e2 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Thu, 30 Oct 2025 19:56:42 +0500 Subject: [PATCH 2/3] chore: bump module versions (patch) --- registry/coder/modules/claude-code/README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/registry/coder/modules/claude-code/README.md b/registry/coder/modules/claude-code/README.md index c311eeb7e..ec27e4c51 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 = "3.3.3" + version = "3.4.4" agent_id = coder_agent.example.id workdir = "/home/coder/project" claude_api_key = "xxxx-xxxxx-xxxx" @@ -46,7 +46,7 @@ This example shows how to configure the Claude Code module to run the agent behi module "claude-code" { source = "dev.registry.coder.com/coder/claude-code/coder" enable_boundary = true - boundary_version = "main" + boundary_version = "3.4.4" boundary_log_dir = "/tmp/boundary_logs" boundary_log_level = "WARN" boundary_additional_allowed_urls = ["GET *google.com"] @@ -70,7 +70,7 @@ data "coder_parameter" "ai_prompt" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "3.3.3" + version = "3.4.4" agent_id = coder_agent.example.id workdir = "/home/coder/project" @@ -106,7 +106,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 = "3.3.3" + version = "3.4.4" agent_id = coder_agent.example.id workdir = "/home/coder" install_claude_code = true @@ -129,7 +129,7 @@ variable "claude_code_oauth_token" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "3.3.3" + version = "3.4.4" agent_id = coder_agent.example.id workdir = "/home/coder/project" claude_code_oauth_token = var.claude_code_oauth_token @@ -202,7 +202,7 @@ resource "coder_env" "bedrock_api_key" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "3.3.3" + version = "3.4.4" agent_id = coder_agent.example.id workdir = "/home/coder/project" model = "global.anthropic.claude-sonnet-4-5-20250929-v1:0" @@ -259,7 +259,7 @@ resource "coder_env" "google_application_credentials" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "3.3.3" + version = "3.4.4" agent_id = coder_agent.example.id workdir = "/home/coder/project" model = "claude-sonnet-4@20250514" From 000860673c7d66904485729809cc4837c1a392ba Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Thu, 30 Oct 2025 20:02:08 +0500 Subject: [PATCH 3/3] Update boundary version to main in claude-code --- registry/coder/modules/claude-code/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/coder/modules/claude-code/README.md b/registry/coder/modules/claude-code/README.md index 20320b19a..8e26416e2 100644 --- a/registry/coder/modules/claude-code/README.md +++ b/registry/coder/modules/claude-code/README.md @@ -46,7 +46,7 @@ This example shows how to configure the Claude Code module to run the agent behi module "claude-code" { source = "dev.registry.coder.com/coder/claude-code/coder" enable_boundary = true - boundary_version = "3.4.4" + boundary_version = "main" boundary_log_dir = "/tmp/boundary_logs" boundary_log_level = "WARN" boundary_additional_allowed_urls = ["GET *google.com"]