From 60ef7d175573745bc5846c5b16e893b21c94f2d4 Mon Sep 17 00:00:00 2001 From: Zek Date: Sat, 14 Feb 2026 22:37:15 -0600 Subject: [PATCH] feat(agentapi,claude-code): expose hidden parameter for web app Add `web_app_hidden` variable to both the `agentapi` and `claude-code` modules, passing it through to `coder_app.agentapi_web.hidden`. This allows users to hide the AgentAPI web chat UI from the Coder dashboard while keeping the app functional for healthchecks and task status reporting (required by `coder_ai_task`). Requires Coder v2.16+ (when `hidden` attribute was added to `coder_app`). Closes #729 --- registry/coder/modules/agentapi/main.tf | 7 +++++++ registry/coder/modules/claude-code/main.tf | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/registry/coder/modules/agentapi/main.tf b/registry/coder/modules/agentapi/main.tf index 6914be779..36d2ef1fa 100644 --- a/registry/coder/modules/agentapi/main.tf +++ b/registry/coder/modules/agentapi/main.tf @@ -47,6 +47,12 @@ variable "web_app_slug" { description = "The slug of the web app." } +variable "web_app_hidden" { + type = bool + description = "Whether to hide the web app from the dashboard UI. The app still exists and functions (healthchecks, task status), but is not visible in the workspace app list. Requires Coder v2.16+." + default = false +} + variable "folder" { type = string description = "The folder to run AgentAPI in." @@ -242,6 +248,7 @@ resource "coder_app" "agentapi_web" { order = var.web_app_order group = var.web_app_group subdomain = var.agentapi_subdomain + hidden = var.web_app_hidden healthcheck { url = "http://localhost:${var.agentapi_port}/status" interval = 3 diff --git a/registry/coder/modules/claude-code/main.tf b/registry/coder/modules/claude-code/main.tf index 07e3eb5a4..8c341d889 100644 --- a/registry/coder/modules/claude-code/main.tf +++ b/registry/coder/modules/claude-code/main.tf @@ -59,6 +59,12 @@ variable "web_app_display_name" { default = "Claude Code" } +variable "web_app_hidden" { + type = bool + description = "Whether to hide the web app from the dashboard UI. The app still exists and functions (healthchecks, task status reporting), but is not visible in the workspace app list. Requires Coder v2.16+." + default = false +} + variable "cli_app_display_name" { type = string description = "Display name for the CLI app" @@ -364,6 +370,7 @@ module "agentapi" { web_app_group = var.group web_app_icon = var.icon web_app_display_name = var.web_app_display_name + web_app_hidden = var.web_app_hidden folder = local.workdir cli_app = var.cli_app cli_app_slug = var.cli_app ? "${local.app_slug}-cli" : null