fix(billing): gate investigations on a real allowance, not balance presence - #835
Conversation
…esence Every plan carries an investigation_runs item after the Autumn config push, so checking that the balance key exists let free, hobby, and pro orgs enable investigations that then failed in the worker. Access now requires an unlimited balance, overage terms, or a positive grant, and the same rule drives the dashboard access and fixed-price flags.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Promote the investigation access gate fix from staging.
After the Autumn config push every plan carries an
investigation_runsitem, so checking that the balance key exists let free, hobby, and pro organizations enable investigations that then failed in the worker. Access now requires an unlimited balance, overage terms, or a positive grant. The same rule drives the dashboard access and fixed-price flags, and the analysis reply gate.Surfaced by the review of #789. AI-assisted implementation and review under the maintainer workflow.
Summary by cubic
Fixes investigation access gating so free, hobby, and pro orgs no longer see investigations enabled when they'd fail in the worker. Access now requires an unlimited balance, overage terms, or a positive grant, instead of just checking the
investigation_runsbalance key, which all plans have after the Autumn config push. The same rule now consistently drives the dashboard access, fixed-price flag, and analysis reply gate.Written for commit bc76ef1. Summary will update on new commits.