From 65c40ed0ad28a77962dac8e98be112d11832a08c Mon Sep 17 00:00:00 2001 From: 35C4n0r Date: Fri, 6 Feb 2026 17:32:21 +0000 Subject: [PATCH] feat: rector agentapi_server_type to agent_name --- registry/coder/modules/agentapi/main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/registry/coder/modules/agentapi/main.tf b/registry/coder/modules/agentapi/main.tf index 7eaf909f..4bccbb03 100644 --- a/registry/coder/modules/agentapi/main.tf +++ b/registry/coder/modules/agentapi/main.tf @@ -105,9 +105,9 @@ variable "agentapi_port" { default = 3284 } -variable "agentapi_server_type" { +variable "agent_name" { type = string - description = "The server type for AgentAPI, passed using --agent flag." + description = "The agent's name. This is used as server type for AgentAPI, passed using --agent flag." } variable "agentapi_term_width" { @@ -206,7 +206,7 @@ resource "coder_script" "agentapi" { ARG_AGENTAPI_VERSION='${var.agentapi_version}' \ ARG_WAIT_FOR_START_SCRIPT="$(echo -n '${local.agentapi_wait_for_start_script_b64}' | base64 -d)" \ ARG_AGENTAPI_PORT='${var.agentapi_port}' \ - ARG_AGENTAPI_SERVER_TYPE='${var.agentapi_server_type}' \ + ARG_AGENTAPI_SERVER_TYPE='${var.agent_name}' \ ARG_AGENTAPI_TERM_WIDTH='${var.agentapi_term_width}' \ ARG_AGENTAPI_TERM_HEIGHT='${var.agentapi_term_height}' \ ARG_AGENTAPI_INITIAL_PROMPT="$(echo -n '${local.encoded_initial_prompt}' | base64 -d)" \