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

オープン 初心者向け
#38,462 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript
領域
desktop, frontend

調査の方向性

まず apps/web/src/shortcutModifierState.ts から始め、ウィンドウのフォーカス喪失と keyup が修飾キーの状態をどのように更新するかを追ってください。次に、apps/web/src/components/Sidebar.logic.ts にある createModifierHoldStore と useThreadJumpHintsVisible を確認してください。macOS で Cmd+Tab を使って別のアプリに切り替えてから戻り、関連する修正 #8189 を調べて再現してください。戻って Cmd を離した後に ⌘N のヒントが消え、対象を絞った回帰テストが追加されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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).
主要言語
TypeScript
スター
24.8k
フォーク
6.4k
平均マージ
4時間 46分
マージ済み PR(30日)
488

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pingdotgg/t3code のほかの issue

pingdotgg/t3code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。