Skip to content

Add Codex-aware health endpoint - #9

Merged
sadfun merged 1 commit into
mainfrom
feat/cloud-healthcheck
Sep 4, 2026
Merged

sadfun merged 1 commit into
mainfrom
feat/cloud-healthcheck

Conversation

@sadfun

@sadfun sadfun commented Aug 29, 2026

Copy link
Copy Markdown
Owner

What

  • run the HTTP health server for Telegram, Slack, and Discord configurations
  • cache a forced Codex account refresh and report authenticated, needs_login, not_required, or degraded
  • keep the public health route cheap and single-flight, including when the Codex RPC hangs
  • keep Mini App assets and authenticated routes unavailable without Telegram

Why

The Wirebot host agent needs one stable local health endpoint that can distinguish an expired Codex login from a dead process without letting public callers trigger token refreshes.

Verification

  • bun run check
  • bun test (7 passing)

@sadfun
sadfun marked this pull request as ready for review September 4, 2026 22:17
@sadfun
sadfun merged commit 76e3683 into main Sep 4, 2026
2 checks passed
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.

1 participant