[BUG] Hardcoded terminal buffer filter breaks with external terminal setups
评估
调研方向
从 selection.lua 开始,使用 terminal.provider = "none" 和采用 tmux 后端的 sidekick.nvim 重现设置。检查如何识别终端缓冲区,并验证选择它后是否会改为保留上一个活动的代码缓冲区。使用所描述的复现步骤确认修复。
由索引模型根据 Issue 内容生成。
描述
Bug Description
The terminal buffer filter in selection.lua is hardcoded to only match buffers containing "claude" in their name. When Claude Code runs via sidekick.nvim with mux.backend = "tmux", the terminal buffer is named term://...tmux - it never contains "claude". As a result, selection tracking treats the tmux terminal as an active code buffer instead of ignoring it.
I have a fix ready and will open a PR shortly.
To Reproduce
- Configure claudecode.nvim with
terminal.provider = "none" - Launch Claude Code via sidekick.nvim with tmux backend
- Switch cursor to the Claude Code terminal pane
- Selection tracking reports the tmux terminal buffer instead of the last active code file
Expected Behavior
Selection tracking should ignore the terminal buffer and retain the last active code buffer, regardless of how Claude Code was launched.
Environment
n/a - the issue is in the Lua filter logic, independent of versions.
Error Messages
No error messages. The filter silently fails to match.
- 主要语言
- Lua
- 星标
- 3.1k
- 派生
- 219
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/claudecode.nvim 的其他 Issue
-
needs-triage
难度 2/5 1-3 小时 新手友好度 84/100
coder/claudecode.nvim#321 ·
-
[BUG] ClaudeCodeAdd fails on paths with spaces可能已有人在做 @7A1T 于 55 天前认领。 未关闭bug needs-triage
难度 1/5 1 小时以内 新手友好度 88/100
coder/claudecode.nvim#314 ·
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
coder/claudecode.nvim#313 ·
-
needs-triage
难度 5/5 一周以上 新手友好度 20/100
coder/claudecode.nvim#319 · 9 个 reaction ·
-
[BUG] 框选文本一直抱错误信息可能已有人在做 @DukeLog 于 44 天前认领。 未关闭bug needs-triage
难度 4/5 3-5 天 新手友好度 35/100
coder/claudecode.nvim#316 · 1 条评论 ·
查看 coder/claudecode.nvim 的全部 Issue
相似的 Issue
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 82/100
eugenioenko/ttt#919 · 1 条评论 ·
维护者通常 1 天内回复
-
Profiler (Remotery) leaks a socket for every connection that fails the WebSocket handshake可能已有人在做 @rthery 今天认领。 未关闭triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Mosquito: LOOP_ANT_LOCK reads the IFF detonator cover可能已有人在做 @cbass2404 今天认领。 未关闭Mosquito
难度 1/5 1 小时以内 新手友好度 88/100
DCS-Skunkworks/dcs-bios#1925 ·
维护者通常 1 天内回复
-
难度 2/5 1 小时以内 新手友好度 80/100
mason-org/mason.nvim#2117 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
mailcow/mailcow-dockerized#7518 ·
维护者通常 1 天内回复