From 65ccc6ff48e6ffe8ceec018b76fe0a15e3d3047d Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Wed, 7 Jan 2026 15:47:41 +0000 Subject: [PATCH] agentapi: make agentapi-wait-for-start.sh noisy --- .../coder/modules/agentapi/scripts/agentapi-wait-for-start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh b/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh index 6e18332f..0d1960e9 100644 --- a/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh +++ b/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh @@ -1,6 +1,7 @@ #!/bin/bash set -o errexit set -o pipefail +set -x port=${1:-3284} @@ -13,7 +14,7 @@ echo "Waiting for agentapi server to start on port $port..." for i in $(seq 1 150); do for j in $(seq 1 3); do sleep 0.1 - if curl -fs -o /dev/null "http://localhost:$port/status"; then + if curl -f "http://localhost:$port/status"; then echo "agentapi response received ($j/3)" else echo "agentapi server not responding ($i/15)"