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
Panel summaries crash on inf/nan; --minutes inf makes the app fail to start #147
_num accepts inf and nan, and _plain calls int() on the result, so the collapsed panel summaries raise. From the CLI this turns a bad value into a startup crash instead of a validation message.
The module promises "Bad numbers never raise", but click_summary(interval='inf'), timing_summary(burst_clicks='1e400') and safety_summary(max_clicks='inf') raise OverflowError, and hold_ms='nan' raises ValueError. The summaries run on every key release and from apply_form_values, before validation.
Impact
autoclicker --minutes inf (also --clicks inf, --burst 1e999:0, --hold nan) shows "Application failed to start" and exits 1. Typing inf into a field raises in the key-release handler and the summary stops updating.
Steps to reproduce
Run autoclicker --minutes inf
The app shows "Application failed to start: cannot convert float infinity to integer"
Suggested fix
In _num, return default unless math.isfinite(value).
Acceptance criteria
All summary functions return text for inf, -inf, nan and 1e400 inputs
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: medium. Effort: S. audit-key: bug|autoclicker/gui/summaries.py|_plain
Activity