feat(config): support ratio randomization in stop conditions#82
Merged
takitsu21 merged 11 commits intotakitsu21:mainfrom Mar 15, 2026
Merged
feat(config): support ratio randomization in stop conditions#82takitsu21 merged 11 commits intotakitsu21:mainfrom
takitsu21 merged 11 commits intotakitsu21:mainfrom
Conversation
- Add randomize_ratio and random_ratio_range_percent fields to FakerConfig, InstanceConfig, and PresetSettings - Add UI controls (checkbox + variance slider) in StopConditionSettings and GridImportDialog - Compute and persist effective_stop_at_ratio across sessions and server sync - Add validation for random_ratio_range_percent in desktop commands - Gitignore desktop-state.json
- Apply ratio randomization in RatioFaker::new when randomize_ratio is true, so CLI and non-UI clients benefit from it - Update computeEffectiveRatio to return null when randomization is off - Simplify App.svelte to pass base ratio to backend instead of pre-computed effective ratio
Expose the ratio randomization feature to CLI users via new flags: - --randomize-ratio: enable stop ratio randomization - --random-ratio-range: set the ±percentage range (default: 10%)
Owner
Contributor
Author
|
should be fixed. can you please test it now? |
Owner
|
If you can fix lint/formatting issues, btw you can reproduce locally the CI before opening a PR by running |
Contributor
Author
|
CI passed. my bad. you should add depandabot. |
takitsu21
approved these changes
Mar 15, 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.


This is useful to for ban evasion in some private torrent sites.