Skip to content

Commit 7e90994

Browse files
chapterjasonclaude
andcommitted
Bump web-shell to 0.6.0, pass workspace name as title prefix
v0.6.0 adds WEB_SHELL_TITLE_PREFIX (SoureCode/web-shell@277946a). Wire the Coder workspace name into the env file so the browser tab reads "<workspace> | <session> | web-shell". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a54bbe7 commit 7e90994

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,10 @@ resource "docker_container" "workspace" {
425425
# the unit picks it up on next start.
426426
upload {
427427
file = "/etc/default/web-shell"
428-
content = "WEB_SHELL_CWD=${data.coder_parameter.directory.value}\n"
428+
content = <<-EOT
429+
WEB_SHELL_CWD=${data.coder_parameter.directory.value}
430+
WEB_SHELL_TITLE_PREFIX=${data.coder_workspace.me.name}
431+
EOT
429432
}
430433

431434
host {

scripts/web-shell/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# proxy, which gates access with Coder auth.
1010
set -e
1111

12-
WS_VERSION_OPT="${VERSION:-0.5.1}"
12+
WS_VERSION_OPT="${VERSION:-0.6.0}"
1313

1414
# Activate nvm so `npm` resolves against the user's default Node.
1515
export NVM_DIR="$HOME/.nvm"

0 commit comments

Comments
 (0)