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