Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
UI smoke: verify HTML content in GET / and JSON-RPC in POST /rpc
Martin Vogel7d640081e0c0
diff --git a/scripts/smoke-test.sh b/scripts/smoke-test.shindex a147dcb71..fe0b631e9 100755--- a/scripts/smoke-test.sh+++ b/scripts/smoke-test.sh@@ -1345,29 +1345,29 @@ UI_PID=$!sleep 1if kill -0 "$UI_PID" 2>/dev/null; then- # 15a: HTTP root returns 200- UI_STATUS=$(curl -sf -o /dev/null -w "%{http_code}" "http://127.0.0.1:$UI_PORT/" 2>/dev/null || echo "000")- if [ "$UI_STATUS" = "200" ]; then- echo "OK 15a: UI root returns 200"- elif [ "$UI_STATUS" = "000" ]; then+ # 15a: GET / returns 200 with HTML content+ UI_BODY=$(curl -sf "http://127.0.0.1:$UI_PORT/" 2>/dev/null || echo "")+ if echo "$UI_BODY" | grep -qi "<html"; then+ echo "OK 15a: UI serves HTML at /"+ elif [ -z "$UI_BODY" ]; thenecho "SKIP 15a: UI not reachable (binary may not have embedded assets)"else- echo "FAIL 15a: UI root returned $UI_STATUS"+ echo "FAIL 15a: UI root did not return HTML"kill "$UI_PID" 2>/dev/null || trueexit 1fi- # 15b: /rpc endpoint accepts POST- RPC_STATUS=$(curl -sf -o /dev/null -w "%{http_code}" -X POST \+ # 15b: POST /rpc accepts JSON-RPC and returns JSON+ RPC_BODY=$(curl -sf -X POST \-H "Content-Type: application/json" \-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' \- "http://127.0.0.1:$UI_PORT/rpc" 2>/dev/null || echo "000")- if [ "$RPC_STATUS" = "200" ]; then- echo "OK 15b: UI /rpc endpoint returns 200"- elif [ "$RPC_STATUS" = "000" ]; then+ "http://127.0.0.1:$UI_PORT/rpc" 2>/dev/null || echo "")+ if echo "$RPC_BODY" | grep -q "jsonrpc"; then+ echo "OK 15b: /rpc returns JSON-RPC response"+ elif [ -z "$RPC_BODY" ]; thenecho "SKIP 15b: /rpc not reachable"else- echo "FAIL 15b: /rpc returned $RPC_STATUS"+ echo "FAIL 15b: /rpc did not return JSON-RPC"fikill "$UI_PID" 2>/dev/null || true