fix(claude-code): default remote_control_name to workspace name

This commit is contained in:
Atif Ali 2026-03-11 17:38:56 +00:00
parent 1040aebd8b
commit 885c19e7bf
2 changed files with 3 additions and 3 deletions

View File

@ -233,7 +233,7 @@ module "claude-code" {
workdir = "/home/coder/project" workdir = "/home/coder/project"
claude_code_oauth_token = var.claude_code_oauth_token claude_code_oauth_token = var.claude_code_oauth_token
enable_remote_control = true enable_remote_control = true
remote_control_name = "My Project" # Optional: custom session name # remote_control_name = "Custom Name" # Optional: defaults to workspace name
} }
``` ```

View File

@ -275,7 +275,7 @@ variable "enable_remote_control" {
variable "remote_control_name" { variable "remote_control_name" {
type = string type = string
description = "Custom session name for Remote Control, visible in the session list at claude.ai/code. Only used when enable_remote_control is true." description = "Custom session name for Remote Control, visible in the session list at claude.ai/code. Only used when enable_remote_control is true. Defaults to the workspace name."
default = "" default = ""
} }
@ -414,7 +414,7 @@ module "agentapi" {
ARG_CODER_HOST='${local.coder_host}' \ ARG_CODER_HOST='${local.coder_host}' \
ARG_CLAUDE_BINARY_PATH='${var.claude_binary_path}' \ ARG_CLAUDE_BINARY_PATH='${var.claude_binary_path}' \
ARG_ENABLE_REMOTE_CONTROL='${var.enable_remote_control}' \ ARG_ENABLE_REMOTE_CONTROL='${var.enable_remote_control}' \
ARG_REMOTE_CONTROL_NAME='${var.remote_control_name}' \ ARG_REMOTE_CONTROL_NAME='${var.remote_control_name != "" ? var.remote_control_name : data.coder_workspace.me.name}' \
/tmp/start.sh /tmp/start.sh
EOT EOT