You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Runaway guard ignores speed limits below 8 clicks per second #149
bugSomething isn't workinggood first issueGood for newcomerspriority: lowNice to have / polishsafetyClick-safety behavior (stop paths, limits, failsafe)
if len(ts) < 8: return False runs before len(ts) > self.max_cps_ceiling. Validation accepts ceilings from 1, and the README says the guard stops the run if more than N presses land in any one second.
Impact
Users who set a low ceiling as a safety net get a weaker guard than they configured.
Steps to reproduce
Set the speed limit to 2, interval 0, burst 5 with 0 pause
Start: the guard trips at the 8th press in a second, not the 3rd
Suggested fix
Use min(8, ceiling + 1) as the minimum sample count, or skip the floor when the ceiling is below 8. Add a unit test for ceiling 2.
Acceptance criteria
With ceiling 2, the third press inside one second trips the guard
How to run tests: make check (Git Bash) or tasks.bat lint, tasks.bat typecheck, tasks.bat test (cmd). Single test: python -m pytest tests/test_x.py::TestClass::test_name --no-cov
Related docs: CONTRIBUTING.md, docs/ARCHITECTURE.md
Filed by repo-audit/full-audit at 9968dc8. Severity: low. Effort: S. audit-key: bug|autoclicker/core/click_engine.py|ClickEngine._check_runaway_cps
bugSomething isn't workinggood first issueGood for newcomerspriority: lowNice to have / polishsafetyClick-safety behavior (stop paths, limits, failsafe)
Activity