Deferred follow-ups from the 2026-11 code-shape refactor run
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Read the Code Shape rules in AGENTS.md (#552) and the deferred items listed here, then check the referenced paths such as lua/claudecode/tools/get_diagnostics.lua, tests/mocks/vim.lua, and vcn.sh. This issue combines multiple unstarted defects, test gaps, leads, and a broader refactor, so first identify a specific item and its related issue or pull request; completion is not defined for the bundle as a whole.
由索引模型根據 Issue 內容生成。
描述
The 2026-11 code-shape refactor run stopped after #578 merged. Its reviews found the items below and they were not started. Each one is deferred by that decision. "Read, not run" means a reviewer read main's code and did not reproduce it.
User-visible defects
-
getDiagnosticsreads%,#and$inurias special buffer names.lua/claudecode/tools/get_diagnostics.luapasses the path fromuritovim.fn.bufnr()unchecked. Foruri=%the tool answers with the current buffer's diagnostics under the URIfile://%25, a file that does not exist. A verifier probed the real tool on Neovim 0.12.3 and v0.8.0 (2026-11-12). The code is the same on6ad8e0fd. - A second
openDiffis answered "rejected" before the user acts. This happens when one of the user'sWinNewhandlers runs the event loop (for examplevim.wait) while the first diff sets up. The second diff opens during that wait, its proposal buffer gets hidden, and the plugin treats a hidden proposal as a reject. Claude reads that the user rejected a diff they never reviewed. Without such a handler it does not happen. Reproduced on main on both Neovim versions, 5 of 5 runs each (2026-11-12). The step that hides the proposal is not found. Not re-run after #511 and #536. - The rest of #528 (window ownership). A cleanup of the plugin can close a window or a tab that it did not make. #528 stays the tracking issue. The fix series (a vim mock that matches Neovim, then the setup and close paths) was built locally and not landed.
- A leftover diff when a new client sends
openDifffor a gone client's tab name while the user is in the command-line window. The newopenDiffanswers an error and one rejected diff stays on screen. Read, not run. -
stop()called from a timer or another plugin while the user is in the command-line window raises E11 and stops halfway: the server keeps running and one rejected diff stays on screen. Read, not run. -
openFileand the reload after a save still raise E11 or E565 in the command-line window and under textlock. #499 fixed only the disconnect path. When a diff setup fails in those states, the hidden proposal buffer stays. Read, not run.
Leads, not verified bugs
-
close_tabwith a userautocmd BufLeave * update: a live run recordedE676in the messages, on main. Nobody checked whether a hit-enter prompt blocks the close. -
terminal.build_config: a reviewer read that a per-callcwdis skipped when the default is nil. Nobody ran it.
Test and tooling gaps
-
tests/mocks/vim.luadiffers from Neovim in four calls:forceand E37 innvim_win_close, an invalid window id, the buffer oftabnew, and the order ofwin_findbufaftervsplit. The PR whose unit test depends on one of them fixes it. - A scheduled diff cleanup under textlock has no test.
-
vcn.shlaunch check (#578, merged): a tool whose--versionprints an empty first line on stdout, then its error on stderr, and exits 1 gets "it printed no error" in the message. Launch still exits 1 and names the tool and its path. - The Phase 2 refactor beyond the tools pins (#563) is not started on main: the server, core, selection, diff and terminal areas. The Code Shape rules in
AGENTS.md(#552) describe the target shape.
The vcn.sh proof leftovers with TMPDIR outside /tmp are in #603.
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: xhigh
- 主要語言
- Lua
- 星號
- 3.2k
- 分支
- 223
- 平均合併
- 7 小時 18 分鐘
- 30 天內合併 PR
- 234
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
coder/claudecode.nvim 的其他 Issue
-
needs-triage
難度 2/5 1-3 小時 新手友好度 88/100
coder/claudecode.nvim#599 ·
維護者通常 1 天內回覆
-
needs-triage
難度 1/5 1-3 小時 新手友好度 84/100
coder/claudecode.nvim#595 ·
維護者通常 1 天內回覆
-
needs-triage
難度 2/5 1-3 小時 新手友好度 78/100
coder/claudecode.nvim#588 ·
維護者通常 1 天內回覆
-
needs-triage
難度 2/5 1-3 小時 新手友好度 72/100
coder/claudecode.nvim#587 ·
維護者通常 1 天內回覆
-
bug needs-triage
難度 2/5 1-3 小時 新手友好度 72/100
coder/claudecode.nvim#313 ·
維護者通常 1 天內回覆
查看 coder/claudecode.nvim 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
fw876/helloworld#2097 · 2 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
diivi/aseprite-mcp#43 ·
-
bug discord guide:tailoring locale:enUS triage v4.2.1
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
version-fox/vfox#825 ·
維護者通常 1 天內回覆
-
[Bug] KOReader plugin catalog uses popup corner rounding, leaking page content behind the corners未關閉bug needs-triage
難度 2/5 1-3 小時 新手友好度 62/100
bookorbit/bookorbit#2314 · 1 則留言 ·
維護者通常 2 天內回覆