Repository navigation
fix(auto): exclude tos:avoid providers from auto by default (#15059) - #15839
Merged
diegosouzapw merged 2 commits intoOct 8, 2026
Merged
Conversation
excludeTosAvoid now defaults to true so Antigravity/OpenCode-style providers flagged tos:avoid in the free-model catalog stop receiving auto traffic on fresh installs. Operators can opt out via PATCH /api/settings.
Contributor
CI Coverage Report
Coverage artifact was not available for this run. |
This was referenced Oct 8, 2026
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.
Refs #15059
Scope note: this PR covers point 3 of the compound issue (ToS-avoid providers in
autoby default). Points 1/4 need a live check, 5/6 are doc wording; see "Not in this PR".Root cause
excludeTosAvoidshipped with defaultfalse(src/lib/db/settings.ts), so the auto-combo guardfilterTosAvoidCandidates()was a no-op and providers taggedtos: "avoid"in the free-model catalog (Antigravity/agy, OpenCode, blackbox, ...) receivedautotraffic right after being connected.Fix
Default
excludeTosAvoid: true(owner decision 2026-09-29). Operators can opt out withPATCH /api/settings {"excludeTosAvoid": false}. CHANGELOG fragment carries the callout that this changes theautopool on existing installs that never set the flag.Tests (RED -> GREEN)
tests/unit/issue-15059-tos-avoid-auto-default.test.ts: RED on base (false !== true,1 !== 0), GREEN after the fix (3/3), plus an explicit opt-out case.noauth-autocombo-exclude-7622,noauth-autocombo-lockout-7623,virtual-auto-comboOpenCode-Free case): every opencode keyless model istos: avoid, so they now setexcludeTosAvoid: falseexplicitly; assertions are unchanged.Gates
typecheck:core, eslint (changed files), check-file-size, check-complexity, check-cognitive-complexity, prettier, pre-commit hooks: OK.
Not in this PR (follow-ups)
excludeTosAvoid(would need new i18n keys across 66 locales; sibling flags likehidePaidModelsalso have no UI).tos: avoid, so with the new default a fresh install'sautohas no keyless target until the operator opts out or connects a provider. README hero claim (point 1) needs wording/live check accordingly; Cerebras figure in FREE-TIERS-GUIDE (point 5).