fix(ui): stop rendering the disabled-resource sentinel as a real API failure - #9919
Conversation
…failure useApiResource wrote the literal "disabled" into error as a synthetic sentinel for a switched-off resource, and MinerPanel rendered it through the same warning box as a genuine apiFetch failure -- so a signed-out visitor saw "Miner dashboard is unavailable right now (disabled)". Export API_RESOURCE_DISABLED and compare against it explicitly instead, gate MinerPanel on useSession's hydrated flag so the box never flashes before the session resolves, and split AgentRuns' source pill so a live API error no longer reads as "No session".
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-29 23:00:09 UTC
Review summary Nits — 6 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Visual previewClick any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. Scroll preview
A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|








fix(ui): stop rendering the disabled-resource sentinel as a real API failure
useApiResource wrote the literal "disabled" into error as a synthetic
sentinel for a switched-off resource, and MinerPanel rendered it through
the same warning box as a genuine apiFetch failure -- so a signed-out
visitor saw "Miner dashboard is unavailable right now (disabled)". Export
API_RESOURCE_DISABLED and compare against it explicitly instead, gate
MinerPanel on useSession's hydrated flag so the box never flashes before
the session resolves, and split AgentRuns' source pill so a live API
error no longer reads as "No session".
Closes #9672
UI Evidence
before
after
before
after
before
after