Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.318 ·

JavaScript code sent to tools can be repaired before it runs

When certain internal checks pass, JavaScript in a tool's code field is repaired before the input is used and checked

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

Unclear It is not clear what the two checks test, so it is unknown whether any user gets this.

What

When a tool's input includes a piece of code, Claude Code can repair that JavaScript before it uses the input and when it checks the input is consistent. This only happens when two internal checks pass. This repair step is changed from the previous build.

Why

This is likely tied to tools that run code in a REPL, an environment where code runs one piece at a time.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear what the two checks test, so it is unknown whether any user gets this.

See this entry in the whole of v2.1.318 →

Feedback