Global hotkey event tap dies silently and never re-arms

Đang mở
#1,300 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
50/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
macos, rust, tauri
Lĩnh vực
desktop

Hướng nghiên cứu

Start by tracing the global hotkey event-tap and listener handling for macOS tap-disabled notifications; the issue does not name source files or tests. Done means the listener re-arms after a timeout and, if that fails, the user sees a warning with a restart-listener option.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Environment: OpenLess 2.0.2-Beta.3+build.20261026-c9f49c60, macOS 27.2 (26B123) arm64.

Steps
  1. Use the app normally for a while.
  2. At some point the global hotkey stops responding.
Expected

Re-arm the tap when macOS reports kCGEventTapDisabledByTimeout, and if re-arming fails, warn the user visibly and offer "restart listener".

Actual

The event tap is gone. The app stays in the menu bar, looks completely healthy, and the capsule never appears again. Nothing in the UI indicates a problem, and there is no log line either. Only a full quit and relaunch restores it.

Evidence
01:09:30 [hotkey] 触发键与其他键组合按下 —— 撤销本次触发     # last hotkey line ever
… 40 minutes of the app running with zero hotkey events …
01:46:20 [hotkey] CGEventTap 已启动                          # after manual restart
01:46:20 [coord] hotkey listener installed (after 1 attempt(s))
Ngôn ngữ chính
Rust
Star
3.7k
Fork
349
Merge trung bình
2 ngày 14 giờ
Pull request đã merge (30 ngày)
97

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Open-Less/openless

Tất cả issue của Open-Less/openless

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.