Skip to content

The open-source app everyone uses to manage agents at work

Fix agent budget tab routing

Dotta1990b29018af
diff --git a/ui/src/pages/AgentDetail.tsx b/ui/src/pages/AgentDetail.tsx
index 32039355fa..ba56e29e91 100644
--- a/ui/src/pages/AgentDetail.tsx
+++ b/ui/src/pages/AgentDetail.tsx
@@ -366,7 +366,9 @@ export function AgentDetail() {
? "configuration"
: activeView === "runs"
? "runs"
- : "dashboard";
+ : activeView === "budget"
+ ? "budget"
+ : "dashboard";
if (routeAgentRef !== canonicalAgentRef || urlTab !== canonicalTab) {
navigate(`/agents/${canonicalAgentRef}/${canonicalTab}`, { replace: true });
return;
@@ -483,6 +485,8 @@ export function AgentDetail() {
crumbs.push({ label: "Configuration" });
} else if (activeView === "runs") {
crumbs.push({ label: "Runs" });
+ } else if (activeView === "budget") {
+ crumbs.push({ label: "Budget" });
} else {
crumbs.push({ label: "Dashboard" });
}