Skip to content

Add lightweight health check endpoint#7

Merged
jhd3197 merged 1 commit into
mainfrom
dev
Feb 2, 2026
Merged

Add lightweight health check endpoint#7
jhd3197 merged 1 commit into
mainfrom
dev

Conversation

@jhd3197

@jhd3197 jhd3197 commented Feb 2, 2026

Copy link
Copy Markdown
Owner

Introduces a new /api/health endpoint for simple health checks without external dependencies. Updates the deployment healthcheck path in railway.json to use this new endpoint.

Introduces a new /api/health endpoint for simple health checks without external dependencies. Updates the deployment healthcheck path in railway.json to use this new endpoint.
Copilot AI review requested due to automatic review settings February 2, 2026 02:19
@jhd3197 jhd3197 merged commit 58ea671 into main Feb 2, 2026
5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a lightweight health check endpoint specifically designed for deployment health checks. The previous health check used the /api/models endpoint which makes external calls to the prompture library for model discovery, making it unsuitable as a health check probe.

Changes:

  • Added a new /api/health endpoint that returns a simple {"status": "ok"} response without making any external calls
  • Updated Railway deployment configuration to use the new /api/health endpoint instead of /api/models for health checks

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
agentsite/api/app.py Adds the new /api/health GET endpoint that returns a simple status response
railway.json Updates the healthcheckPath from /api/models to /api/health

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread agentsite/api/app.py
Comment on lines +80 to +82
@app.get("/api/health")
async def health():
return {"status": "ok"}

Copilot AI Feb 2, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new /api/health endpoint lacks test coverage. Since this repository has comprehensive test coverage for API endpoints in tests/test_api.py (including tests for /api/models, /api/projects, and other endpoints), you should add a test for the new health check endpoint to maintain consistency with the codebase's testing practices.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants