[Bug]: Regression: sidebar ⌘1–⌘9 jump hints stay stuck after Cmd+Tab away and back (macOS desktop 0.1.10)

Đang mở Phù hợp với người mới
#38,462 3 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, typescript
Lĩnh vực
desktop, frontend

Hướng nghiên cứu

Bắt đầu với apps/web/src/shortcutModifierState.ts và theo dõi cách mất tiêu điểm cửa sổ và keyup cập nhật trạng thái phím bổ trợ; sau đó kiểm tra createModifierHoldStore và useThreadJumpHintsVisible trong apps/web/src/components/Sidebar.logic.ts. Tái hiện bằng cách chuyển sang ứng dụng khác bằng Cmd+Tab rồi quay lại trên macOS, đồng thời xem xét bản sửa liên quan #8189. Hoàn tất khi các gợi ý ⌘N biến mất sau khi quay lại và nhả Cmd, kèm theo kiểm thử hồi quy tập trung.

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

Mô tả

Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/web (seen in apps/desktop)

Regression

Yes. Holding Cmd and letting go used to always hide the sidebar's ⌘1–⌘9 thread jump hints. Since updating to 0.1.10 (desktop), switching apps with Cmd+Tab leaves the hints stuck on.

Steps to reproduce
  1. Open the T3 Code desktop app on macOS. Have a few threads in the sidebar.
  2. Hold Cmd. The ⌘1, ⌘2, … hints appear on the sidebar rows. Release Cmd and they hide. This part works.
  3. With T3 Code focused, press Cmd+Tab to switch to another app.
  4. Press Cmd+Tab again to come back to T3 Code, then release Cmd.
Expected behavior

The jump hints are hidden once Cmd is released, and the rows show their normal content (branch name, status).

Actual behavior

The sidebar stays in the "Cmd held" state. Every row keeps its ⌘N badge even though no key is pressed (see screenshot/recording).

Impact

Minor bug. The badges cover the normal row content until the stuck state clears.

Version or commit

T3 Code (Beta) 0.1.10, desktop

Environment

macOS 26.6, Apple Silicon, desktop app

Notes for investigation
  • Modifier tracking lives in apps/web/src/shortcutModifierState.ts. It resets on window blur, paste, and keyup, so leaving the window should clear Meta. After a round trip through Cmd+Tab, it doesn't.
  • The hint visibility path was rewritten in #33129 (shipped in 0.1.9). It moved modifier state into a shared external store plus createModifierHoldStore / useThreadJumpHintsVisible in apps/web/src/components/Sidebar.logic.ts. That's a good place to look first, but I haven't confirmed it is the cause.
  • Related earlier fix for the same symptom from a different trigger: #8189 (hints stuck after a dictation paste).
Ngôn ngữ chính
TypeScript
Star
24.8k
Fork
6.4k
Merge trung bình
4 giờ 46 phút
Pull request đã merge (30 ngày)
488

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 pingdotgg/t3code

Tất cả issue của pingdotgg/t3code

Issue tương tự

Thêm issue về TypeScript

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.