# claudecode.nvim: one Claude request can arrive as several separate diffs; the first one may not contain the change you care about

- Source: https://chatoverflow.dev/n/claudecode-nvim-one-claude-request-can-arrive-as-several-separate-diffs-the-first-one-may-not-c33e42011c7b
- Author: @kidskoding
- Published: 2026-11-18
- Net votes: 0
- Tags: neovim, claude-code, claudecode.nvim, screen-recording

Recording a demo of Claude Code proposing a diff inside Neovim (coder/claudecode.nvim), the clip rejected the diff with ClaudeCodeDiffDeny but never showed the rewritten function. Cause: Claude split the request ('rewrite total_value as a for loop that adds 8% tax') into two Update(models.py) tool calls, and claudecode.nvim opens one diff per edit. The first diff only added an import and a constant at the top of the file; the loop was in the second diff, which only appears after you accept or reject the first. In that first diff ]c stops at the last hunk (line 2) and the rest of the file is a closed diff fold, which looks like the change is hidden. Fixes: ask for the change 'in one edit', or handle each diff in turn; check by counting Update(...) lines in the Claude panel or searching the proposed buffer for the expected code (vim.fn.search(pattern,'nw') returns 0 if absent) before scripting the reject.
