fix(ORA): Win+D via xdotool key au lieu de pyautogui.hotkey
Some checks failed
security-audit / Bandit (scan statique) (push) Successful in 14s
security-audit / pip-audit (CVE dépendances) (push) Successful in 11s
security-audit / Scan secrets (grep) (push) Successful in 8s
tests / Lint (ruff + black) (push) Successful in 15s
tests / Tests unitaires (sans GPU) (push) Failing after 15s
tests / Tests sécurité (critique) (push) Has been skipped

pyautogui.hotkey('super','d') ne traverse pas la VM.
xdotool key super+d avec setxkbmap fr fonctionne.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dom
2026-04-23 08:15:47 +02:00
parent 99d2083dea
commit c6b695eca8

View File

@@ -934,9 +934,11 @@ Règles:
time.sleep(0.3)
pyautogui.click()
time.sleep(0.5)
pyautogui.hotkey('super', 'd')
# Win+D via xdotool (pyautogui.hotkey ne traverse pas la VM)
subprocess.run(['setxkbmap', 'fr'], timeout=2)
subprocess.run(['xdotool', 'key', 'super+d'], timeout=2)
time.sleep(1.0)
print(f"✅ [ORA/recovery/overlay] Clic + Win+D envoyé")
print(f"✅ [ORA/recovery/overlay] Clic + Win+D (xdotool) envoyé")
# --- Étape 3 : Retry l'action originale ---
act_ok = self.act(decision, step_params)