nickjvandyke/opencode.nvim
bug: `<file>.new` buffer persists after edit request diff
已關閉
#258 建立於 2026年5月9日
buggood first issue
倉庫指標
- 星標
- (3,504 顆星)
- PR 合併指標
- (平均合併 2天 22小時) (30 天內合併 9 個 PR)
描述
Describe the bug
When we display a diffpatch in response to an edit request, Neovim creates a <file>.new buffer. Even after the diff is closed, the .new buffer appears in e.g. buffer and file pickers, which is confusing and noisy.
Steps To Reproduce
vim.g.opencode_opts.events.permissions.edits.enabled = trueaskopencode to edit a file- Respond to the edit request via the diff tab (haven't checked whether this only happens with certain responses)
Expected Behavior
<file>.new should be deleted from the buffer list.
See plugin/events/permissions/edits.lua