Skip to content

Form stays editable while running; some mode/action combinations are selectable but can never run #102

Closed

Description

@TMHSDigital

Why it matters

Users can change settings mid-run that do not affect the run, so the status "Target:" line and form stop describing what is actually happening. Some combinations only fail at Start.

Evidence

  • Only Start/Stop change state while running (gui/main_window.py:~510-511). Target mode radios, profile load and sequence edit buttons stay enabled; _on_target_mode_change rewrites coord_var and persists the new mode mid-run.
  • Turning on Pause when unfocused mid-run calls configure_safety (main_window.py:321-325), but _foreground_hwnd, _step_hwnds, _point_target are only set in start_clicking (click_engine.py:294-307), so the run uses leftover or empty focus state.
  • Typing in X, Y or Key never refreshes the target summary (no trace/bind on those entries).
  • _apply_target_mode_state enables X/Y and Pick in Fixed mode even when Action is Key (ignored by validation). Key in Image mode and Hold/Key in Sequence mode are only rejected at Start (settings_manager.py:670-677).
  • The "which fields matter in which mode" rules live in four places that already drift: validate_all_settings, controller.validate_and_start_clicking, _target_summary, _apply_target_mode_state.

Suggested approach

  • Lock the form while running or counting down, with a short "Running: settings locked" note. Keep safety toggles either locked or properly re-initialized.
  • Introduce one fields_for(mode, action) helper used by validation and UI state, and disable incompatible Action radios per mode.
  • Refresh the summary on entry changes.

Done when

Tests cover the locked state and the shared helper; incompatible combinations cannot be selected.

Activity

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

    priority: mediumux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions