coder / coder/claudecode.nvim

[BUG] Hardcoded terminal buffer filter breaks with external terminal setups

Đang mở
#206 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Lua
Star
3.1k
Fork
217
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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

1. Configure claudecode.nvim with `terminal.provider = "none"`
2. Launch Claude Code via sidekick.nvim with tmux backend
3. Switch cursor to the Claude Code terminal pane
4. 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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu trong selection.lua và tái hiện thiết lập với terminal.provider = "none" và sidekick.nvim bằng backend tmux. Kiểm tra cách terminal buffer được nhận diện và xác minh rằng việc chọn nó thay vào đó sẽ giữ lại code buffer hoạt động gần nhất. Xác nhận bản sửa lỗi bằng các bước tái hiện đã mô tả.

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

Đánh giá

Công nghệ
lua, neovim
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
50/100

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.