Skip to content

feat(agentapi,claude-code): expose hidden parameter for web app#730

Open
zek wants to merge 2 commits intocoder:mainfrom
zek:feat/agentapi-web-app-hidden
Open

feat(agentapi,claude-code): expose hidden parameter for web app#730
zek wants to merge 2 commits intocoder:mainfrom
zek:feat/agentapi-web-app-hidden

Conversation

@zek
Copy link

@zek zek commented Feb 15, 2026

Summary

  • Add web_app_hidden variable to the agentapi module, passing it through to coder_app.agentapi_web.hidden
  • Add web_app_hidden variable to the claude-code module, forwarding it to the agentapi sub-module

This allows users to hide the AgentAPI web chat UI from the Coder dashboard while keeping the app fully functional for healthchecks and task status reporting (required by coder_ai_task).

Use Case

Users who prefer Claude Code via terminal (SSH / code-server) can set web_app_hidden = true to declutter their dashboard without losing the Tasks feature.

module "claude-code" {
  source         = "registry.coder.com/coder/claude-code/coder"
  version        = "~> 4.0"
  agent_id       = coder_agent.main.id
  web_app_hidden = true
  # ... other params
}

Changes

File Change
registry/coder/modules/agentapi/main.tf Add web_app_hidden variable + pass to coder_app.agentapi_web.hidden
registry/coder/modules/claude-code/main.tf Add web_app_hidden variable + forward to agentapi module

Requires Coder v2.16+ (when hidden was added to coder_app).

Closes #729

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 coder#729
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 60ef7d1755

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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 👍 / 👎.

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 👍 / 👎.

@matifali matifali added the version:minor Add to PRs requiring a minor version upgrade label Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version:minor Add to PRs requiring a minor version upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(agentapi): expose hidden parameter for coder_app

3 participants

Comments