diff --git a/app/main.py b/app/main.py index 296c97f..29544ae 100644 --- a/app/main.py +++ b/app/main.py @@ -3137,12 +3137,18 @@ async def admin_overview(request: Request): agents = [ { "alias": alias, + # Display name: the panel's section header already says "Agents", so the + # "agent:" prefix is noise there. `alias` keeps the full string. + "name": alias.split(":", 1)[1] if ":" in alias else alias, "spend": float(t.get("spend") or 0.0), "budget": t.get("max_budget"), "team_members": len(t.get("members_with_roles") or []), } for alias, t in teams.items() - if alias and not alias.startswith("member:") + # member:* are members; sandbox:* are throwaway test accounts rather than + # agents of the co-op. Their spend stops being visible anywhere once + # filtered here — accepted knowingly. + if alias and not alias.startswith(("member:", "sandbox:")) ] agents.sort(key=lambda a: a["spend"], reverse=True)