Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.0.11-beta.0 — 2026-05-18

### Fixes
- Dashboard `/policies` activity-tab subheading: replace the hardcoded "Policy evaluations for Claude" with a dynamic list of installed CLIs ("Policy evaluations across Claude Code, Cursor"), collapsing to "across N agents" when 4 or more are installed and falling back to "Policy evaluations" when none are. Reads from the existing `getHooksConfigAction()` payload — no new server work. The text was a leftover from when failproofai only supported Claude Code and was inaccurate against the now-7-CLI surface (Claude, Codex, Copilot, Cursor, OpenCode, Pi, Gemini) (#358).

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
## 0.0.11-beta.0 — 2026-05-13

### Dependencies
Expand Down
10 changes: 9 additions & 1 deletion app/policies/hooks-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,7 @@ export default function HooksClient({ initialTab = "activity" }: { initialTab?:
const [activeTab, setActiveTab] = useState<"activity" | "policies">(initialTab);
const [hooksInstalled, setHooksInstalled] = useState<boolean | undefined>(undefined);
const [policyCounts, setPolicyCounts] = useState<{ enabled: number; total: number } | null>(null);
const [installedCliLabels, setInstalledCliLabels] = useState<string[]>([]);

useEffect(() => {
getHooksConfigAction()
Expand All @@ -1495,10 +1496,17 @@ export default function HooksClient({ initialTab = "activity" }: { initialTab?:
enabled: cfg.enabledPolicies.length,
total: cfg.policies.length + (cfg.customPolicies?.length ?? 0),
});
setInstalledCliLabels(cfg.clis.filter((c) => c.installed).map((c) => c.label));
})
.catch(() => setHooksInstalled(undefined));
}, []);

const evaluationsHeading = installedCliLabels.length === 0
? "Policy evaluations"
: installedCliLabels.length <= 3
? `Policy evaluations across ${installedCliLabels.join(", ")}`
: `Policy evaluations across ${installedCliLabels.length} agents`;

const handleTabChange = (tab: "activity" | "policies") => {
setActiveTab(tab);
url.setAll({ tab: tab === "activity" ? undefined : tab });
Expand Down Expand Up @@ -1529,7 +1537,7 @@ export default function HooksClient({ initialTab = "activity" }: { initialTab?:
<p className="text-sm text-muted-foreground mt-1">
{activeTab === "activity" ? (
<>
Policy evaluations for Claude
{evaluationsHeading}
{policyCounts && (
<span className="text-muted-foreground/60">
{" · "}enabled policies{" "}
Expand Down