You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`GET /api/agents/{name}/schedules/{id}/webhook` and `DELETE /api/agents/{name}/schedules/{id}/webhook` return 404 (`{"detail":"Agent not found"}`) instead of the expected 200/204. The `DatabaseManager` facade in `src/backend/database.py` is missing delegation methods for `get_webhook_status`, `revoke_webhook_token`, and related WEBHOOK-001 operations.
Context
Full test suite run on 2026-05-08 identified 3 failures in `test_webhook_triggers.py`:
```
AssertionError: Expected status 200, got 404. Response body: {"detail":"Agent not found"}
```
The `POST .../webhook` endpoint (generate/rotate token) likely works, but the GET and DELETE surface is unreachable. This is the database facade delegation pattern issue — the router calls `db.get_webhook_status()` or similar, but the method was never wired from `DatabaseManager` down to the underlying `ScheduleOperations` domain class.
Acceptance Criteria
`GET /api/agents/{name}/schedules/{id}/webhook` returns 200 with `{webhook_token, webhook_enabled, webhook_url}` when token exists
`DELETE /api/agents/{name}/schedules/{id}/webhook` returns 200 and nulls the token (subsequent trigger calls return 404)
All 3 `test_webhook_triggers.py` webhook status tests pass
`DatabaseManager` in `src/backend/database.py` delegates the missing WEBHOOK-001 methods to `ScheduleOperations`
Fixed in #727 — GET webhook status endpoint now uses name: str + can_user_access_agent to match POST/DELETE, restoring auth parity across all three WEBHOOK-001 endpoints.
Activity
vybe commentedon May 8, 2026
/claim
github-actions commentedon May 8, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/724-<short-slug>Fixes #724fix(schedules): restore auth parity on GET webhook status endpoint (#724
fix(schedules): restore auth parity on GET webhook status endpoint (#724
vybe commentedon May 8, 2026
Fixed in #727 — GET webhook status endpoint now uses
name: str+can_user_access_agentto match POST/DELETE, restoring auth parity across all three WEBHOOK-001 endpoints.Release: v0.6.1 (#1171)