Follow Discord
Sweep 27 Oct 2026 · 19:04Z Build v2.1.312 531 read Stable v2.1.308 Latest v2.1.312 Next v2.1.312 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.311 ·

Loops with do not after ; or a new line can no longer be checked as safe

Claude Code now refuses to verify loops, functions and coproc commands whose do is not preceded by ; or a line break

You'll notice Improvements
JSON All of v2.1.311
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Bash SafetyArea: what it touches
ImprovementsKind: in v2.1.311,
ImprovementsSection of the release
What

Before running a shell command without asking, Claude Code checks what the command will do. It now refuses to verify the following when their do keyword has no ; or line break before it:

  • for loops
  • select loops
  • repeat loops
  • function definitions
  • coproc commands

The reason it gives says that what the loop runs cannot be checked, and that written with ; do it can be.

Why

This closes a gap where Claude Code could misread such commands when deciding whether to allow them on its own. Writing the loop with ; do lets the check work.

See this entry in the whole of v2.1.311 →

Feedback