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-12-03

Added

  • The Claude terminal buffer now carries the claudecode filetype (native and snacks providers), so you can target it with FileType claudecode autocmds — for example to set buflisted = false. On snacks this replaces the snacks_terminal filetype; set terminal.snacks_win_opts = { bo = { filetype = "snacks_terminal" } } to keep the old one (#202, @ehaynes99).
  • <C-z> in the Claude terminal now suspends Neovim instead of Claude, matching normal windows (#448, @ThomasK33).
  • The unified diff layout now officially runs on Neovim 0.8.0 (it only needs vim.diff); the README no longer claims it requires 0.9 (#564, @ThomasK33).

Fixed

Security

  • openFile/openDiff no longer execute text after a line break in a file path as an Ex command; such paths are refused with -32602 (#608, @ThomasK33).
  • The external terminal provider no longer lets a crafted working-directory name inject arguments into external_terminal_cmd; the cwd is passed as a single argument (#607, @ThomasK33).
  • Paths derived from terminal buffer names or git output are no longer passed to vim.fn.expand(), closing a backtick command-injection vector; a new cwd.expand_leading() only expands leading ~/$VAR (#610, @ThomasK33).

@mentions

  • @mentions are now sent as absolute paths, matching the VS Code extension, so they resolve correctly when Claude's cwd differs from Neovim's (#460, @ThomasK33).
  • Queued @mentions (sent while Claude is launching) are now delivered once, in order, or reported with an error — no more silent drops; each queued mention gets a deadline of connection_timeout + connection_wait_delay (#454, #480, @ThomasK33).

Diff correctness

  • Accepted diffs now return the exact text you approved: trailing blank lines are kept in unified diffs (#535), proposals without a final newline keep that ending in split layouts (#542), an emptied buffer saves as an empty file (#551), and a line typed into a CRLF proposal is saved with CRLF (#577) — all @ThomasK33.
  • :q on a unified diff now rejects it and answers Claude immediately instead of leaving openDiff hanging; switching the proposal window to another buffer also rejects cleanly (#469, @ThomasK33).
  • :wq/:x/ZZ now accept and close the proposal window, a second :w no longer errors with E676, and :qa works after a reject (#483, @ThomasK33).
  • The proposal now opens in Normal mode (not Insert) when a diff opens in a new tab (#473, @ThomasK33).
  • A Snacks float Claude terminal is hidden while a diff is open in its tab, so the diff is usable without :ClaudeCodeFocus (#447, #504, @ThomasK33).
  • Diff cleanup no longer closes a window you switched to another file, nor overwrites a sign column or diff mode you set in it, and leaves no lone diff-mode windows that force the next diff into a new tab (#483, #491, #494, @ThomasK33).
  • The unified new-tab diff no longer leaves an empty [No Name] pane, and its tab is tracked for cleanup (#303, @zakissimo).
  • Every openDiff call open at Neovim exit now gets exactly one answer (DIFF_REJECTED or a -32603 error) instead of waiting until the socket closes (#558, @ThomasK33).
  • A failed openDiff setup no longer crashes Neovim or leaks tabs/buffers/temp files (#516, #538, #574, @ThomasK33).

Commands & tools

  • :ClaudeCodeAdd now handles file paths with spaces, e.g. :ClaudeCodeAdd % on a spaced buffer name (#304, @joshmedeski).
  • Malformed tools/call and close_tab requests now answer with -32602 "Invalid params" and no longer leak internal file paths or Lua error text (#497, #500, @ThomasK33).
  • A failed :write from saveDocument now reports only the Vim error (e.g. E45: 'readonly' option is set) instead of a full Lua stack trace with install paths (#453, @ThomasK33).
  • openFile now finishes reloading a file after a user's BufReadPre/FileChangedShell autocmd error, and keeps Neovim's E13 guard so it never overwrites a newly created file with unsaved buffer text (#461, #468, @ThomasK33).
  • getCurrentSelection now answers with the live selection or cursor when track_selection = false, instead of a fixed empty selection at line 0 (#457, @ThomasK33).

Terminal

  • The Claude terminal keeps a single live job and no longer runs a second Claude, closes the wrong window, or raises E444/Invalid window id during startup, buffer swaps, or autocmd-driven re-entry (#451, #464, #527, #544, @ThomasK33).
  • The caller's window and mode are preserved when a snacks terminal is shown without focus (#446, @ThomasK33).
  • A working directory whose name contains $, \, [, {, a space, or a comma is now used as written for the terminal cwd and git-root lookup (#561, #569, @ThomasK33).

Selection tracking

  • A held selection (one kept across leaving visual mode) now ends correctly when its text or cursor changes, when an operator consumes it, or when you move away, and never reports another file's cursor or a stale position (#452, #471, #481, #493, #524, #540, #562, @ThomasK33).
  • getCurrentSelection answers from the previous window when the Claude terminal is current (#463, @ThomasK33).

Server & connection

  • A Claude that answers pings is never dropped, dead clients are dropped promptly, and a protocol error no longer keeps a non-reading client forever (#455, #467, #479, #488, #499, @ThomasK33).
  • A client with a wrong auth token is no longer logged as "Authenticated"; the log line now follows the token check (#539, @ThomasK33).
  • The lock file (which holds the auth token) is now removed on a token mismatch, failed removals are reported, and lockfile.update is gone (#459, @ThomasK33).

Changed

  • queue_timeout no longer expires @mentions by age; it is still accepted for backward compatibility but connection_timeout now bounds how long a mention waits (#454, #480, @ThomasK33).
  • On snacks, the Claude terminal uses the claudecode filetype instead of snacks_terminal (#202, @ehaynes99).

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