[Bug]: Sidebar project filter uses Shift-click instead of ⌘-click to add or remove a project
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 76/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
两个 handler 都位于 apps/web/src/components/Sidebar.tsx:先读第 1580-1590 行的 thread-list 切换逻辑,因为它在非 macOS 上已经根据 metaKey 和 ctrlKey 分支,再读第 3031-3040 行只检查 shiftKey 的 project filter 点击 handler。把同样的修饰键检查复制到 project filter 中,使 ⌘/Ctrl-click 在现有选择中切换某个 project 并保持菜单打开,而普通 click 仍作为替换选择。完成意味着复现 issue 中的三步场景(两次 shift-click,然后 ⌘-click 第三个)会显示选中三个 project 且菜单仍打开,第二次 ⌘-click 只移除那一个;在 macOS 上检查,并在可用时在 Windows/Linux 上检查 ctrlKey 分支。
由索引模型根据 Issue 内容生成。
描述
The sidebar project filter uses Shift-click to add or remove a project. The convention is ⌘-click on macOS and Ctrl-click on Windows and Linux; no desktop OS uses Shift-click for this. In T3, ⌘-click instead acts like a plain click: the filter switches to that one project and the menu closes, so the selection you had is gone.
It's one of the oldest selection conventions on the desktop:
- ⌘-click (Ctrl-click on Windows and Linux) adds or removes a single item (Apple: Select items on Mac).
- Shift-click selects a range.
T3's own thread list already follows it.
Steps to reproduce
- Open the sidebar project filter.
- Shift-click two projects.
- ⌘-click a third.
Expected: the third project is added and the menu stays open. ⌘-clicking it again removes just that project.
Actual: the filter shows only the third project and the menu closes.
Where it happens
- The thread list toggles on
metaKey(ctrlKeyoff macOS) and range-selects onshiftKey: Sidebar.tsx#L1580-L1590 - The project filter checks only
shiftKey, and every other click replaces the selection: Sidebar.tsx#L3031-L3040
Multi-select came in with #25284, which chose Shift-click and Shift+Enter.
Suggestion: use ⌘-click (Ctrl-click off macOS) instead of Shift-click to add or remove a project, the same check the thread list uses. Shift-click normally selects a range, which doesn't fit a menu where each project is picked on its own.
Seen in T3 Code 0.1.11 on macOS.
- 主要语言
- TypeScript
- 星标
- 24.8k
- 派生
- 6.4k
- 平均合并
- 3 小时 11 分钟
- 30 天内合并 PR
- 466
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
[Bug]: Link dialog copy uses "here"/"there" instead of host names, so the access direction is ambiguous可能已有人在做 @ahmedgamalalzatary 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
needs more info
难度 2/5 1-3 小时 新手友好度 72/100
pingdotgg/t3code#39400 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: Wrapped PR titles lose bottom padding in the thread details panel可能已有人在做 @iamdatvt94 于 2 天前认领。 未关闭bug needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
[Bug]: t3_worktree_handoff drops git's error message ("git worktree add failed")可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
vercel-labs/ui#999 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
melgarafael/DeskcommCRM#5109 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
Doist/todoist-sdk-typescript#783 ·
-
难度 2/5 1-3 小时 新手友好度 64/100
nicobailon/pi-subagents#3319 · 1 条评论 ·
维护者通常 1 天内回复
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offers可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭catalog provider provider-compatibility
难度 2/5 1-3 小时 新手友好度 62/100
lidge-jun/opencodex#9037 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复