Skip to content

Fix agent feature gating to use resolved B2C billing entitlements#33

Merged
codybmenefee merged 1 commit intomainfrom
codex/fix-agent-dashboard-billing-entitlements
Feb 9, 2026
Merged

Fix agent feature gating to use resolved B2C billing entitlements#33
codybmenefee merged 1 commit intomainfrom
codex/fix-agent-dashboard-billing-entitlements

Conversation

@codybmenefee
Copy link
Copy Markdown
Owner

Summary

  • route Agent Dashboard access through resolved billing subscription entitlements (plan/features) in addition to session claim checks
  • wire Sidebar, Settings quick-link, and Agent dashboard data hook to pass resolved plan/feature slugs into hasAgentDashboardAccess
  • clarify subscribe debug logs so claim-based checks are clearly labeled as claims-only diagnostics

Why

In org-active sessions, Clerk has() claim checks can stay false for B2C user plans/features even when user billing subscription is valid. This left agent_monitor/agent_dashboard checks failing and locked Agent UI despite successful app access.

Validation

  • cd app && npx eslint src/lib/agentAccess.ts src/lib/convex/useAgentDashboard.ts src/components/layout/Sidebar.tsx src/routes/app/settings.tsx src/routes/subscribe.tsx
  • cd app && pnpm run build

@codybmenefee codybmenefee merged commit 8deebe1 into main Feb 9, 2026
1 check passed
@codybmenefee codybmenefee deleted the codex/fix-agent-dashboard-billing-entitlements branch February 9, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant