Skip to content

[Bug] /api/run/:id returns 404 when server starts after UI #47

Description

@MyNameIsEdi

Steps to Reproduce

  1. Run npm run dev (starts UI + server concurrently)
  2. The browser opens and loads immediately
  3. Before the Express server fully initializes, click Run on any agent
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions