Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[BUG] Diff panels not cleared when new suggestion is shown — stale diffs accumulate until window focus change

Đang mở
#205 1 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
lua, neovim
Lĩnh vực
devtools

Hướng nghiên cứu

Bắt đầu trong đường dẫn tích hợp Neovim Claude Code xử lý một đề xuất mới và quản lý các buffer hoặc cửa sổ diff; issue không nêu tên các tệp hoặc bài kiểm thử cụ thể. Tái hiện bằng hai thay đổi liên tiếp, sau đó xác minh rằng chỉ diff hiện tại còn hiển thị và không còn cần chuyển tiêu điểm để xóa các panel cũ.

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

Mô tả

triage:done

Bug Description

After the latest update, sometimes diff panels shown in Neovim are not cleared when Claude Code proposes a new change. Previous diffs remain visible in the split panels and accumulate over time. The only way to dismiss them is to manually switch focus to the LazyVim tab.

To Reproduce

Steps to reproduce the behavior:

  1. Open Ghostty with a tab split in two panes: Claude Code on one side, LazyVim on the other.
  2. Start the Claude Code integration in Neovim.
  3. Ask Claude to make a change to a file — a diff is shown in the split panels.
  4. Ask Claude to make a second (different) change to the same or another file.
  5. Observe that the previous diff is still visible alongside the new one — diffs accumulate.

Expected Behavior

When Claude Code proposes a new change, any previously displayed diff panels should be cleared/replaced, so that only the current suggestion is visible.

Environment

  • Neovim version: 0.11.6
  • Claude Code CLI version: 2.1.70
  • OS: macOS 26.3
  • Plugin version: commit 432121f

Error Messages

No explicit error messages — visual/rendering issue only.

Additional Context

The issue seems to be related to focus/window state: switching focus to the LazyVim pane forces the stale diffs to disappear. This suggests the diff buffers or windows are not being properly closed/reset when a new suggestion is triggered.

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

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

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 coder/claudecode.nvim

Tất cả issue của coder/claudecode.nvim

Issue tương tự

Thêm issue về Lua

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.