fix(claude-code): default remote_control_name to workspace name
This commit is contained in:
parent
1040aebd8b
commit
885c19e7bf
@ -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
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user