feat: expose server mode in /health and /ready endpoints #39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Clients need to know the server's operational state to adjust UI behavior (disable writes, show banners).
Proposed modes
normalread-onlydegradedChanges to existing endpoints
Add
modefield to both existing endpoints:Mode also pushed via SSE
server.stateevent when it changes (depends on #38).Acceptance criteria
modefield added to/healthand/readyresponsesread-onlymode settable via config flag orSIGUSR1{"error":"server_read_only"}when in read-only mode