Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions registry/coder/modules/agentapi/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Raise coder provider floor when using coder_app.hidden

The module now sets coder_app.hidden, but required_providers.coder in this file still allows >= 2.13; users with lockfiles or environments pinned below the version that introduced hidden will fail during planning with an unsupported argument/schema mismatch. Bumping the minimum provider version to the first release that supports hidden avoids this compatibility break.

Useful? React with 👍 / 👎.

healthcheck {
url = "http://localhost:${var.agentapi_port}/status"
interval = 3
Expand Down
7 changes: 7 additions & 0 deletions registry/coder/modules/claude-code/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update agentapi child version before passing web_app_hidden

This forwards web_app_hidden into the agentapi child module, but the child is still pinned to version = "2.0.0" in the same block. The new input was added in this commit under registry/coder/modules/agentapi/main.tf, so claude-code consumers can hit Unsupported argument during module loading when Terraform resolves agentapi v2.0.0, even if they do not explicitly set web_app_hidden.

Useful? React with 👍 / 👎.

folder = local.workdir
cli_app = var.cli_app
cli_app_slug = var.cli_app ? "${local.app_slug}-cli" : null
Expand Down