Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

web: fill by coordinates sends Cmd+A on macOS, which can open "About This Mac"

Ouverte
#3,987 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
62/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
node.js, typescript, web-dev
Domaine
testing, tooling

Piste de recherche

Locate the web backend's agent-browser provider and its fill implementation, where the coordinate click is followed by Meta+a; the issue does not give file or test paths. Read that flow and run the provided data URL reproduction on macOS. Done when a miss-click no longer opens “About This Mac” and filling a focused editable field still replaces its contents.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Environment

  • agent-device 0.21.20 (managed web backend: agent-browser 0.27.1, Chrome for Testing 152.0.7977.54, headless)
  • macOS 26.6.2 (Tahoe), Apple M4 Max
  • Node v24.18.0

Description

On macOS, fill <x> <y> <text> on the web backend clicks the point and then presses Meta+a to clear the field. If the click doesn't land in an editable element, Chrome doesn't use the key and hands it to the macOS menu, and the system "About This Mac" window opens on the host. With agents filling forms all day, this happened about 15 times a day for us.

Control+a doesn't trigger it, and neither does Meta+a when an input has focus. Not a regression as far as we know.

Possible fix: select inside the page instead of sending a key, e.g. eval this in place of press Meta+a in the agent-browser provider's fill:
(()=>{const a=document.activeElement;if(a&&typeof a.select==="function")a.select();else if(a&&a.isContentEditable)document.execCommand("selectAll")})()

Reproducible Demo

agent-device open 'data:text/html,<input style="position:absolute;left:50px;top:50px">' --platform web
agent-device fill 600 500 "x" --platform web

Output: Filled 1 chars, and "About This Mac" opens. The system log shows loginwindow: _handleAppleEvent | AboutThisMac event received right after Chrome for Testing logs performKeyEquivalent:.

Langage dominant
TypeScript
Étoiles
5.2k
Forks
359
Merge moyen
12 h 48 min
PR mergées (30 j)
657

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de callstack/agent-device

Toutes les issues de callstack/agent-device

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.