From 516a93469417dea83dea3c3b46c1168dbb96bf64 Mon Sep 17 00:00:00 2001 From: "blinkagent[bot]" <237617714+blinkagent[bot]@users.noreply.github.com> Date: Fri, 3 Apr 2026 12:19:05 -0500 Subject: [PATCH] feat(claude-code): wire `web_app` variable through to agentapi module (#831) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to #764. Now that the `agentapi` module `v2.4.0` is published with `web_app` support, this PR completes the wiring: ## Changes ### `claude-code/main.tf` - Bump agentapi dependency from `v2.3.0` → `v2.4.0` - Replace `# TODO: pass web_app = var.web_app once agentapi module is published with web_app support` with `web_app = var.web_app` ### `claude-code/README.md` - Bump version references from `4.9.0` → `4.9.1` ## Result Setting `web_app = false` on the `claude-code` module now correctly passes through to the `agentapi` module, hiding the web UI app icon from the Coder dashboard while still running AgentAPI. The task-safe behavior (auto-enabling for `coder_ai_task`) is handled by the `agentapi` module. --------- Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com> --- registry/coder/modules/claude-code/README.md | 18 +++++++++--------- registry/coder/modules/claude-code/main.tf | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/registry/coder/modules/claude-code/README.md b/registry/coder/modules/claude-code/README.md index c4be4595..ea845f6e 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.0" + version = "4.9.1" agent_id = coder_agent.main.id workdir = "/home/coder/project" claude_api_key = "xxxx-xxxxx-xxxx" @@ -60,7 +60,7 @@ By default, when `enable_boundary = true`, the module uses `coder boundary` subc ```tf module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.0" + version = "4.9.1" agent_id = coder_agent.main.id workdir = "/home/coder/project" enable_boundary = true @@ -81,7 +81,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.0" + version = "4.9.1" agent_id = coder_agent.main.id workdir = "/home/coder/project" enable_aibridge = true @@ -110,7 +110,7 @@ data "coder_task" "me" {} module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.0" + version = "4.9.1" agent_id = coder_agent.main.id workdir = "/home/coder/project" ai_prompt = data.coder_task.me.prompt @@ -133,7 +133,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.0" + version = "4.9.1" agent_id = coder_agent.main.id workdir = "/home/coder/project" @@ -189,7 +189,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.0" + version = "4.9.1" agent_id = coder_agent.main.id workdir = "/home/coder/project" install_claude_code = true @@ -211,7 +211,7 @@ variable "claude_code_oauth_token" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.0" + version = "4.9.1" agent_id = coder_agent.main.id workdir = "/home/coder/project" claude_code_oauth_token = var.claude_code_oauth_token @@ -284,7 +284,7 @@ resource "coder_env" "bedrock_api_key" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.0" + version = "4.9.1" agent_id = coder_agent.main.id workdir = "/home/coder/project" model = "global.anthropic.claude-sonnet-4-5-20250929-v1:0" @@ -341,7 +341,7 @@ resource "coder_env" "google_application_credentials" { module "claude-code" { source = "registry.coder.com/coder/claude-code/coder" - version = "4.9.0" + version = "4.9.1" 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 3781ee36..7a08aa82 100644 --- a/registry/coder/modules/claude-code/main.tf +++ b/registry/coder/modules/claude-code/main.tf @@ -368,10 +368,10 @@ locals { module "agentapi" { source = "registry.coder.com/coder/agentapi/coder" - version = "2.3.0" + version = "2.4.0" - agent_id = var.agent_id - # TODO: pass web_app = var.web_app once agentapi module is published with web_app support + agent_id = var.agent_id + web_app = var.web_app web_app_slug = local.app_slug web_app_order = var.order web_app_group = var.group