From d69998ebf5c19c6fb76b9ec9499d6db2aed84480 Mon Sep 17 00:00:00 2001 From: hermes Date: Fri, 16 Oct 2026 08:07:42 +0000 Subject: [PATCH] test(agents): check the npx install without compgen The dev shell's bash has no compgen (no programmable completion), so the npx-install check failed every agent. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01V3syn2fN2LNo5pvTSqc6eh --- tests/agents/agent-smoke.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/agents/agent-smoke.sh b/tests/agents/agent-smoke.sh index f5b4b7d..9ecc053 100755 --- a/tests/agents/agent-smoke.sh +++ b/tests/agents/agent-smoke.sh @@ -410,7 +410,8 @@ for agent in "${agents[@]}"; do # Proof that this agent's own npx installed the package binary, rather # than the server coming from somewhere else on PATH. status=pass failures= - if ! compgen -G "$npm_config_cache/_npx/*/node_modules/idx-mcp/bin/idx-mcp" > /dev/null; then + installed=("$npm_config_cache"/_npx/*/node_modules/idx-mcp/bin/idx-mcp) + if [[ ! -x "${installed[0]}" ]]; then status=fail failures="no idx-mcp binary under $npm_config_cache/_npx" fi jq -nc --arg agent "$agent" --arg status "$status" --arg failures "$failures" \