Skip to content

Runtime/Rate tiles and Timing summary show wrong values in some idle states #148

Closed

Description

@TMHSDigital

Summary

Two small display inaccuracies in the new control panel.

Where

  • autoclicker/core/click_engine.py:923-934 (get_status), :382-388
  • autoclicker/gui/main_window.py:476-486 (_paint_stopped)
  • autoclicker/gui/summaries.py:81-92 (timing_summary)
  • autoclicker/gui/features/countdown.py:34-41

Details

  • 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

  1. Run for 10 s and stop
  2. Wait 2 minutes, then cancel a countdown
  3. 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

Getting started

  • Relevant files: autoclicker/core/click_engine.py, autoclicker/gui/summaries.py
  • 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

  1. added
    bug
    good first issue
    priority: low
    ux
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issuepriority: lowux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions