Steps to Reproduce
- Run
npm run dev (starts UI + server concurrently)
- The browser opens and loads immediately
- Before the Express server fully initializes, click
Run on any agent
- The request to
/api/run/:id returns 404
Expected
The UI should wait for the server to be ready, or show a 'server not ready' state instead of a 404 error.
Suggested Fix
Add a /api/health endpoint and have the UI poll it on startup before enabling Run buttons.
Steps to Reproduce
npm run dev(starts UI + server concurrently)Runon any agent/api/run/:idreturns 404Expected
The UI should wait for the server to be ready, or show a 'server not ready' state instead of a 404 error.
Suggested Fix
Add a
/api/healthendpoint and have the UI poll it on startup before enabling Run buttons.