From df258d4400d32ff9a46525eeaddd571edd978812 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 3 Dec 2026 10:23:42 +0000 Subject: [PATCH] chore(release): 0.5.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 63 +++++++++++++++++++++++++++++++++++ VERSION | 2 +- 3 files changed, 65 insertions(+), 2 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2537c1f1d..f1c1e5884 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.4.0" + ".": "0.5.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a5584fa3..c376ea34f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,69 @@ ## [Unreleased] +## [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](https://github.com/coder/claudecode.nvim/pull/202), @ehaynes99). +- `` in the Claude terminal now suspends Neovim instead of Claude, matching normal windows ([#448](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/454), [#480](https://github.com/coder/claudecode.nvim/pull/480), @ThomasK33). + +### Diff correctness + +- Accepted diffs now return the exact text you approved: trailing blank lines are kept in `unified` diffs ([#535](https://github.com/coder/claudecode.nvim/pull/535)), proposals without a final newline keep that ending in split layouts ([#542](https://github.com/coder/claudecode.nvim/pull/542)), an emptied buffer saves as an empty file ([#551](https://github.com/coder/claudecode.nvim/pull/551)), and a line typed into a CRLF proposal is saved with CRLF ([#577](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/483), @ThomasK33). +- The proposal now opens in Normal mode (not Insert) when a diff opens in a new tab ([#473](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/447), [#504](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/483), [#491](https://github.com/coder/claudecode.nvim/pull/491), [#494](https://github.com/coder/claudecode.nvim/pull/494), @ThomasK33). +- The unified new-tab diff no longer leaves an empty `[No Name]` pane, and its tab is tracked for cleanup ([#303](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/558), @ThomasK33). +- A failed `openDiff` setup no longer crashes Neovim or leaks tabs/buffers/temp files ([#516](https://github.com/coder/claudecode.nvim/pull/516), [#538](https://github.com/coder/claudecode.nvim/pull/538), [#574](https://github.com/coder/claudecode.nvim/pull/574), @ThomasK33). + +### Commands & tools + +- `:ClaudeCodeAdd` now handles file paths with spaces, e.g. `:ClaudeCodeAdd %` on a spaced buffer name ([#304](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/497), [#500](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/461), [#468](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/451), [#464](https://github.com/coder/claudecode.nvim/pull/464), [#527](https://github.com/coder/claudecode.nvim/pull/527), [#544](https://github.com/coder/claudecode.nvim/pull/544), @ThomasK33). +- The caller's window and mode are preserved when a snacks terminal is shown without focus ([#446](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/561), [#569](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/452), [#471](https://github.com/coder/claudecode.nvim/pull/471), [#481](https://github.com/coder/claudecode.nvim/pull/481), [#493](https://github.com/coder/claudecode.nvim/pull/493), [#524](https://github.com/coder/claudecode.nvim/pull/524), [#540](https://github.com/coder/claudecode.nvim/pull/540), [#562](https://github.com/coder/claudecode.nvim/pull/562), @ThomasK33). +- `getCurrentSelection` answers from the previous window when the Claude terminal is current ([#463](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/455), [#467](https://github.com/coder/claudecode.nvim/pull/467), [#479](https://github.com/coder/claudecode.nvim/pull/479), [#488](https://github.com/coder/claudecode.nvim/pull/488), [#499](https://github.com/coder/claudecode.nvim/pull/499), @ThomasK33). +- A client with a wrong auth token is no longer logged as "Authenticated"; the log line now follows the token check ([#539](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/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](https://github.com/coder/claudecode.nvim/pull/454), [#480](https://github.com/coder/claudecode.nvim/pull/480), @ThomasK33). +- On snacks, the Claude terminal uses the `claudecode` filetype instead of `snacks_terminal` ([#202](https://github.com/coder/claudecode.nvim/pull/202), @ehaynes99). + ## [0.4.0] - 2026-11-09 ### Added diff --git a/VERSION b/VERSION index 1d0ba9ea1..8f0916f76 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.4.0 +0.5.0