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
Form stays editable while running; some mode/action combinations are selectable but can never run #102
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