Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Trailing newline is now trimmed after an edit is applied, not before

When preparing file content, Claude Code now removes a single trailing newline after applying an edit instead of before

Under the hood Internal Changes
JSON All of v2.1.333
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
File ToolsArea: what it touches
Internal ChangesKind: in v2.1.333,
Internal ChangesSection of the release
What

When Claude Code prepares the content of a file, it removes a single trailing newline (the line break at the very end). It now does this after the edit is applied to the content, where before it did it first. Content ending in two line breaks is still left alone.

Why

The order can affect whether a file ends with a line break after an edit, so the final line of edited files may come out differently than before.

See this entry in the whole of v2.1.333 →

Feedback