Secure Keyboard Entry refusal should name the app/window that enabled it
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 67/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- macos, swift
- Lĩnh vực
- accessibility, desktop
Hướng nghiên cứu
Start from the typing route that refuses input when Secure Keyboard Entry is active, then check how desktop_apps reports session.secure_keyboard_entry and how focus information is exposed. Include the focused app identity in the refusal so the user can identify the blocking dialog; done when the refusal names the app holding focus or provides its bundle ID.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened
Typing into an ordinary web form field in Safari was refused:
desktop_insert → refused
"Secure keyboard entry is on, as for a password field or a terminal's
Secure Keyboard Entry, so typed text can't be delivered. Nothing was typed."
hint: "Use a field that isn't secure, or turn off Secure Keyboard Entry in the app."
There was no secure field anywhere near the target. The actual cause was a
com.apple.NetAuthAgent SMB password dialog open behind the Safari window,
holding focus on an AXSecureTextField. macOS enables secure input globally
while that field has focus, so every synthesized keystroke in every app is
blocked.
Why the current hint doesn't help
"turn off Secure Keyboard Entry in the app" is ambiguous — which app? The
agent is pointed at its own target window, which is not the cause. I only
found the real cause by noticing focus.bundle_id had changed to
com.apple.NetAuthAgent in an unrelated desktop_apps call, then inspecting
that window.
Also note the fix is something the agent cannot do: system password prompts
are (correctly) refused to agents, so the only resolution is asking the user
to dismiss a specific dialog — which requires naming it.
Suggestion
desktop_apps already reports session.secure_keyboard_entry. When a typing
route is refused for this reason, include the app that currently holds focus
in the refusal, e.g.:
"Secure keyboard entry is on. com.apple.NetAuthAgent ("Enter your name and
password for the server …") holds focus on a secure field. Ask the user to
dismiss or complete it; agents cannot answer system password prompts."
Even just focused_bundle_id in the error payload would be enough to let the
agent inspect and describe it.
Environment
Desktop Tools 0.16.1 (app + MCP), macOS 27, Safari 27
- Ngôn ngữ chính
- Swift
- Star
- 0
- Fork
- 0
- Merge trung bình
- 39 phút
- Pull request đã merge (30 ngày)
- 144
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của githubnext/desktop-tools
-
Ace: adopt desktopToolRules()Đang mởace documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
githubnext/desktop-tools#104 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
githubnext/desktop-tools#179 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
githubnext/desktop-tools#178 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
No usable route to type into a web text field when the app loses keyboard focus between callsĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
githubnext/desktop-tools#177 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
githubnext/desktop-tools#159 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của githubnext/desktop-tools
Issue tương tự
-
bug good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
marcovisona/arca#5 ·
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
luis-guillen/airy#2 ·
-
accessibility bug medium-priority mobile
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
lognorman20/monaco#6247 ·
-
documentation windows
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
521xueweihan/HelloGitHub#4060 ·