Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.328 ·

Shell command setup gains a watchedSleep option and records why snapshots are made

Shell commands now take a watchedSleep option, and shell snapshot records say why a snapshot was created

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

What

Claude Code runs shell commands, the commands you would type in a terminal, on your behalf. Two changes touch how those commands are prepared.

  • watchedSleep: shell execution now passes a watchedSleep option into buildExecCommand, the step that builds the command to run. What it does was not traced. A head-start skip reason too_old is also recorded.
  • Snapshot reason: the record made when a shell snapshot is created, on success or failure, now carries a reason. It is started_early when the snapshot began ahead of time, and otherwise the reason the caller gave, defaulting to other. The retry path gives needs_terminal. Before, only the time taken was recorded.

Why

This shows how often snapshots are built late because a terminal is needed. The watchedSleep option probably changes how sleep commands are handled, so watch for differences when Claude runs commands that wait.

See this entry in the whole of v2.1.328 →

Feedback