fix(ui): surface reload no-op as a warning, not an error

The reload no-op path used NotificationsManager.fromBackend, which classifies the message as an error toast. A forced-backup reload is informational, so render it via NotificationsManager.warning instead.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
shivam 2026-07-29 23:14:38 +00:00
parent f8c0ce88b0
commit c470aeec50

View file

@ -130,7 +130,7 @@ const PriceDataReload: React.FC<PriceDataReloadProps> = ({
await fetchReloadStatus();
await fetchSourceInfo();
} else if (response.status === "no_op") {
NotificationsManager.fromBackend(
NotificationsManager.warning(
response.message || "Reload was a no-op because LITELLM_LOCAL_MODEL_COST_MAP forces the bundled cost map.",
);
await fetchReloadStatus();