Skip to content

Runaway guard: ceiling not editable in the UI, and double clicks count as one #64

Closed

Description

@TMHSDigital

Why it matters

The runaway guard is a good idea, but two details make it either frustrating or weaker than the README says:

  1. The ceiling can't be changed in the app. Anyone who wants more than 50 clicks per second (common for clicker games and stress testing) gets "Runaway guard: over 50 clicks per second", and the only fix is hand-editing max_cps_ceiling in %APPDATA%\WindowsAutoclicker\autoclicker_settings.json. The Troubleshooting section explains the cause but there is no in-app control.
  2. A double click counts as one. The engine sends clicks=2 but records one timestamp, so with Double selected the real rate of button presses can be twice the ceiling before the guard fires. The README says it "stops if more than 50 clicks land in any one second".

Evidence

  • autoclicker/gui/main_window.py:400 reads max_cps_ceiling straight from settings; autoclicker/gui/sections/advanced.py has no field for it.
  • autoclicker/core/click_engine.py:435 and 450-451: one pyautogui.click(..., clicks=2) call, then self.click_count += 1 and one _recent_click_ts.append(...).
  • README Safety and Troubleshooting sections.

Suggested approach

  • Add a "Max clicks per second" entry under Advanced, Safety (0 = off). Confirm when it is set to 0, like the failsafe toggle. Validation already exists (SettingsManager.validate_max_cps).
  • Count each press of a double click toward the guard (append two timestamps), or document clearly that the guard counts click actions. Counting presses is the safer reading.
  • Optional: warn before starting when the planned rate obviously exceeds the ceiling (for example 0 ms interval with large bursts), so the guard is not the first feedback the user gets.

Done when

  • The ceiling is editable in the UI, validated, persisted, and covered by a GUI test.
  • With Double selected the guard trips at the documented rate; a unit test proves it.
  • README Safety text matches the behavior.

Activity

  1. added
    bug
    priority: medium
    safety
    ux
    on Oct 4, 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

    bugpriority: mediumsafetyux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions