= {
+ repeated_tool_call: "the same tool call repeating",
+ repeated_tool_error: "the same tool call erroring",
+};
+
+/**
+ * A stall can be detected on a request already at the highest configured tier, which has
+ * nowhere to go. That row still has to say the detector fired, so an operator reading a bill
+ * can tell a real bump from a no-op. Only called when a stall was detected.
+ */
+function describeStallEscalation(escalated: boolean, reason: string | undefined, originalTier: string | undefined) {
+ const named = reason ? STALL_REASON_LABELS[reason] ?? reason : undefined;
+ const because = named ? `, ${named}` : "";
+ if (!escalated) return `Detected${because}; already at the highest tier`;
+ return originalTier ? `Yes, from ${originalTier}${because}` : `Yes${because}`;
+}
+
function Row({ label, children }: { label: string; children: React.ReactNode }) {
return (
@@ -170,6 +190,9 @@ export function RoutingDecisionCard({
signals,
escalated,
escalation_keyword: escalationKeyword,
+ stall_escalated: stallEscalated,
+ stall_escalation_reason: stallReason,
+ stall_escalation_original_tier: stallOriginalTier,
tier_boundaries: tierBoundaries,
} = decision;
@@ -220,6 +243,12 @@ export function RoutingDecisionCard({
{escalated !== undefined && {describeEscalation(escalated, escalationKeyword)}
}
+ {stallEscalated !== undefined && (
+
+ {describeStallEscalation(stallEscalated, stallReason, stallOriginalTier)}
+
+ )}
+
{signals && signals.length > 0 && (
diff --git a/ui/litellm-dashboard/src/lib/http/schema.d.ts b/ui/litellm-dashboard/src/lib/http/schema.d.ts
index 6d62ce2b675..53a720c9419 100644
--- a/ui/litellm-dashboard/src/lib/http/schema.d.ts
+++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts
@@ -36452,6 +36452,15 @@ export interface components {
score?: number;
/** Signals */
signals?: string[];
+ /** Stall Escalated */
+ stall_escalated?: boolean;
+ /** Stall Escalation Original Tier */
+ stall_escalation_original_tier?: string;
+ /**
+ * Stall Escalation Reason
+ * @enum {string}
+ */
+ stall_escalation_reason?: "repeated_tool_call" | "repeated_tool_error";
/** Tier */
tier?: string;
tier_boundaries?: components["schemas"]["StandardLoggingRoutingDecisionTierBoundaries"];