Repository navigation
fix(web): check a stream node's health right after it is added - #2294
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Review summaryReviewed head: What I checked
Left for the maintainers
Validated features
User manual
Apple/Android parity: not applicable. Neither app manages nodes. Fit: 8/10 · Readiness: 9/10 — conditional
|
Problem
Related issue: #1176
Validation tasks: changes #1178 C1
A node that an admin has just added in Admin > Nodes shows as Unhealthy, checked Never, for up to 30 seconds, even when it is running and reachable. During that time Silo sends it no work. Nothing checks a new node until the next health sweep, and the create request deliberately doesn't contact the worker.
After a node is created, the web admin now runs the existing health check for it (
POST /api/v2/admin/nodes/{id}/check) and reloads the list. The check stores its result, so a reachable node shows Healthy a moment after it is saved. Each server picks up the stored result on its next node-list reload, within about 5 seconds, and can then send it work.Approach
Validation
pnpm exec vitest run src/hooks/queries/admin/ src/pages/AdminNodes: pass.make test-webpass, and so do the Go build, vet, lint and everyverify-*target.make test-gofails on this macOS host in the same tests as onmain; this change has no Go code.Evidence: https://evidence.siloserver.org/r/silo-server/pr-2294/
Risks
None identified. The check is the same request the card's refresh button sends.
Checklist
AI Disclosure