Deferred follow-ups from the 2026-11 code-shape refactor run

オープン
#606 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
活発
技術スタック
lua
領域
devtools

調査の方向性

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 の本文から書いたものです。

説明

needs-triage

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

  • getDiagnostics reads %, # and $ in uri as special buffer names. lua/claudecode/tools/get_diagnostics.lua passes the path from uri to vim.fn.bufnr() unchecked. For uri = % the tool answers with the current buffer's diagnostics under the URI file://%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 on 6ad8e0fd.
  • A second openDiff is answered "rejected" before the user acts. This happens when one of the user's WinNew handlers runs the event loop (for example vim.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 openDiff for a gone client's tab name while the user is in the command-line window. The new openDiff answers 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.
  • openFile and 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_tab with a user autocmd BufLeave * update: a live run recorded E676 in the messages, on main. Nobody checked whether a hit-enter prompt blocks the close.
  • terminal.build_config: a reviewer read that a per-call cwd is skipped when the default is nil. Nobody ran it.

Test and tooling gaps

  • tests/mocks/vim.lua differs from Neovim in four calls: force and E37 in nvim_win_close, an invalid window id, the buffer of tabnew, and the order of win_findbuf after vsplit. The PR whose unit test depends on one of them fixes it.
  • A scheduled diff cleanup under textlock has no test.
  • vcn.sh launch check (#578, merged): a tool whose --version prints 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分
マージ済み PR(30日)
234

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

coder/claudecode.nvim のほかの issue

coder/claudecode.nvim の issue をすべて見る

似ている issue

Lua の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。