Skip to content

chore(release): 0.5.0 - #444

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
release-please--branches--main
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
release-please--branches--main

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

The next claudecode.nvim release. Merging this PR creates the release tag and GitHub Release, then starts Communique GitHub Release note generation.

[0.5.0] - 2026-11-23

Added

  • Set the claudecode filetype on the native and snacks Claude terminal buffers so autocmds and buflisted = false rules can target them. On snacks this replaces the snacks_terminal filetype; set terminal.snacks_win_opts = { bo = { filetype = "snacks_terminal" } } to keep the old one (#202).
  • Ctrl-Z in the Claude terminal now suspends Neovim instead of being passed to Claude Code, matching every other window. Remap it in a FileType claudecode autocmd if you want the old behavior (#448).

Fixed

  • Security: reject file paths containing a line break, carriage return, or NUL in openFile/openDiff, and open every path as a single literal file, closing a code-execution vector when Claude opened or diffed a maliciously named committed file (#608).
  • Security: pass the working directory to external_terminal_cmd as one argument so a crafted folder name can no longer inject shell commands (CWE-88); templates that embed the cwd inside a larger argument are now refused with an error (#607).
  • :ClaudeCodeAdd % now works when the buffer's path contains spaces, and supports escaped spaces (#304).
  • @mentions are now sent as absolute paths, matching the VS Code extension, so they resolve to the right file when Claude's cwd differs from Neovim's (#460).
  • The @mention queue now delivers each queued mention once, in order, or reports an error; a mention queued while Claude is launching is delivered on connect rather than silently dropped, and :ClaudeCodeStop no longer leaks a pending mention to the next Claude or raises a Lua error. queue_timeout no longer expires mentions by age (connection_timeout bounds the wait) (#454, #480, #541).
  • Malformed tools/call requests (missing/wrong-typed name, non-object params or arguments, wrong-typed required parameters) now answer with -32602 "Invalid params" instead of leaking internal Lua errors and file paths, and close_tab errors are returned under error rather than result (#497, #500).
  • saveDocument now reports only the Vim error (e.g. E45: 'readonly' option is set) when :write fails, instead of a full Lua stack trace with install paths (#453).
  • getCurrentSelection answers the real selection or cursor position when track_selection = false, instead of a fixed empty selection at line 0 (#457).
  • openFile now finishes its reload with the whole new file even when a user's BufReadPre/FileChangedShell autocmd errors, and keeps Neovim's E13 guard so a BufWriteCmd autocmd can no longer overwrite Claude's new file with unsaved buffer text (#461, #468).
  • The unified diff layout now rejects on :q (answering DIFF_REJECTED immediately instead of timing out) and on switching the proposal window to another buffer, in both split and unified layouts (#469).
  • New-tab diffs now open the proposal in Normal mode, close without entering their tab, reuse the :tabnew window instead of leaving an empty pane, and tear down their terminal BufEnter handler on close (#303, #473, #478, #485).
  • An accepted unified diff now preserves every trailing blank line, and split/horizontal layouts accept a proposal with no final line break correctly, so Claude receives the exact proposed bytes (#535, #542, #551, #577).
  • Closing a diff no longer overwrites the sign column, diff mode, or other window options the user set in windows the diff leaves behind, and leaves no leftovers after :wq, a second :w, :qa, or :edit (#483, #491, #494).
  • A floating (snacks) Claude terminal is now hidden while a diff is open in its tab so the diff is visible and usable (#447, #504).
  • Every pending openDiff call is answered when Neovim exits, and a handler error during a failed openDiff setup no longer crashes Neovim (#538, #558, #574).
  • The Claude terminal now keeps a single live instance and no longer closes or errors on the wrong window: :ClaudeCodeOpen after :e in Claude's window works, :ClaudeCode no longer raises E444 when Claude is the only window, and an exited terminal is cleaned up before reopening (#451).
  • The running Claude is now found and reused after a plugin reload (:Lazy reload) across the native and snacks providers, so :ClaudeCodeClose and :ClaudeCodeSendText work and a second Claude is not started (#464).
  • The native terminal start survives an autocmd that closes its split, and stays a single start when an autocmd interrupts it (#527, #544).
  • The WebSocket server now drops dead clients promptly, never times out a Claude that answers pings, no longer drops a live Claude on a late keepalive tick during the handshake, and drops a client that answers pings but never reads (#455, #467, #479, #488).
  • The lock file (which holds the WebSocket auth token) now reports a failed removal and is cleaned up on a token mismatch instead of being left on disk silently (#459, #557).
  • Repository lookup (git_repo_cwd) now finds a repo whose folder name contains a space, comma, quote, or other path characters even when git cannot run, and the terminal uses a cwd folder with $ or \ in its name as written (#561, #569).
  • Visual-selection tracking is more reliable: a held selection ends when its text, cursor, or file changes, and the Claude terminal becoming current no longer clobbers or mis-reports the selection (#452, #471, #481, #493, #524, #540, #562, #463).
  • When setup rejects an invalid terminal.provider, the warning now names the provider that is actually kept instead of claiming "native" (#530).

Changed

  • The unified diff layout is documented and tested to run on Neovim 0.8.0 (it only needs vim.diff); the Requires Neovim >= 0.9.0 note has been removed (#564, #572).

Maintained by the release-please workflow. CHANGELOG.md and the release PR body are regenerated by Communique on every push to main, so manual edits to this PR are overwritten.

@github-actions
github-actions Bot force-pushed the release-please--branches--main branch from 821a650 to c1c4f22 Compare November 10, 2026 08:32
@github-actions github-actions Bot changed the title chore(release): 0.4.1 chore(release): 0.5.0 Nov 10, 2026
@github-actions
github-actions Bot force-pushed the release-please--branches--main branch 27 times, most recently from c58e92d to 4452eff Compare November 10, 2026 22:45
@github-actions
github-actions Bot force-pushed the release-please--branches--main branch 28 times, most recently from 32514ff to 9eb6c6b Compare November 12, 2026 01:35
@joshmedeski

Copy link
Copy Markdown
Contributor

Is this going to merge, I keep getting pinged over and over about it 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant