From 388dfee54021b30e97b736296c41a50ec38c048c Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 11 Apr 2026 15:08:49 +0000 Subject: [PATCH] fix(claude-code): add explicit existence check for boundary_config_path target After creating the symlink, explicitly verify that the path specified by boundary_config_path exists and is a regular file. This gives a clear error message when the target file is missing, rather than relying solely on the indirect check via the symlink destination. Co-Authored-By: Claude Sonnet 4.6 --- registry/coder/modules/claude-code/scripts/start.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/registry/coder/modules/claude-code/scripts/start.sh b/registry/coder/modules/claude-code/scripts/start.sh index 488d9a29..82dad597 100644 --- a/registry/coder/modules/claude-code/scripts/start.sh +++ b/registry/coder/modules/claude-code/scripts/start.sh @@ -244,6 +244,10 @@ function start_agentapi() { mkdir -p "$BOUNDARY_CONFIG_DIR" ln -sf "$ARG_BOUNDARY_CONFIG_PATH" "$BOUNDARY_CONFIG_FILE" fi + if [ ! -f "$ARG_BOUNDARY_CONFIG_PATH" ]; then + printf "Error: boundary_config_path '%s' does not exist or is not a regular file. Ensure the file exists at this path before starting.\n" "$ARG_BOUNDARY_CONFIG_PATH" >&2 + exit 1 + fi if [ ! -s "$BOUNDARY_CONFIG_FILE" ]; then printf "Error: boundary configuration file '%s' does not exist or is empty. Check that '%s' exists and is not empty.\n" "$BOUNDARY_CONFIG_FILE" "$ARG_BOUNDARY_CONFIG_PATH" >&2 exit 1