fix(billing): do not auto-retry billed tool Seer requests - #75
Closed
cursor[bot] wants to merge 1 commit into
Closed
cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
Ask-the-Seer gates debit PAYG credits (or consume the per-tool free instance) before the LLM runs. Face Reading, Runes, KP, Horary, Feng Shui, and Dream Symbols auto-retried 5xx and thrown fetches, so one send could burn the free instance and then charge a credit. Co-authored-by: Andy Oliver Rozario <andyrozario7@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 tasks
Owner
|
Superseded by #78 — unique fix cherry-picked onto current main (billed tool Seer UIs no longer auto-retry after debit). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Why this change is safe
enforceToolSeerGatecallsconsumeBillingActionbefore the LLM. These UIs retried 500/502 and catch-path network/stream errors, so one click could consume the per-tool free instance and then debit a PAYG credit.fetchWithFirebaseAuthRequiredis unchanged (auth fails before debit).Verification
pnpm exec eslinton the six chat files + new test (pre-existing warnings only; 0 errors)pnpm test— 74 suites / 399 tests, includingtests/unit/seerBilledRetry.test.tsRegression prevention
tests/unit/seerBilledRetry.test.tsfails if those UIs restoreRETRY_DELAY_MS/isRetryableStatus/ a secondawait performFetch()Release checklist (solo-friendly)
CI / Lint + JestCI / Playwright smokemain.