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
Runtime/Rate tiles and Timing summary show wrong values in some idle states #148
get_status computes runtime as time.monotonic() - self.start_time even when no run is active, and the rate as clicks divided by that. _paint_stopped refreshes the tiles on paths with no run (tray Stop while idle, cancelling the countdown, "Not started"), so Runtime grows and Rate drops long after the run ended.
timing_summary always shows the start delay, but start_from_button ignores the delay when Start at is set. With the default delay of 3 the panel reads "3 s delay · at 09:30".
Impact
Misleading figures after a run, and a Timing summary that describes a delay that will not happen.
Steps to reproduce
Run for 10 s and stop
Wait 2 minutes, then cancel a countdown
Runtime shows about 00:02:10
Suggested fix
Record an end time in the click loop's finally and use it instead of now when not running (or skip the tile refresh in _paint_stopped when no run ended). Drop the delay part of the summary when parse_start_at(start_at) is not None.
Acceptance criteria
Runtime and Rate stay at the last run's values after idle stop or countdown cancel
Timing summary omits the delay when Start at is set
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.get_status
Activity