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.287 ·

Cloud hook error now tells you how to fix it with CLAUDE_CODE_TMPDIR

When a cloud session cannot store a verified hook copy safely, the error now explains what is blocked and suggests setting CLAUDE_CODE_TMPDIR

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

A hook is a command of yours that Claude Code runs at a set moment. A PreToolUse hook runs before a tool call, meaning an action Claude takes such as running a command, and it can block that call. When you start a cloud session with claude --cloud, Claude Code keeps a verified copy of such a hook somewhere the session itself cannot change.

If it cannot do that, the error message used to say only that the machine had no private place to keep a verified copy. The message now says:

  • a verified copy could not be saved outside the session's write access
  • the tool calls that hook matches are blocked
  • you can set CLAUDE_CODE_TMPDIR to a folder the session cannot write to and restart claude --cloud
Why

The old message stated the problem but gave no way out. The new one tells you what is being blocked and what to change to fix it.

Read from
Names in the bundleCLAUDE_CODE_TMPDIR
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up CLAUDE_CODE_TMPDIR, on Error reference. * Delete files you no longer need on the filesystem that holds Claude Code's temp directory. If your message doesn't name that directory, look up its default location in the [`CLAUDE_CODE_TMPDIR`](/docs/en/env-vars) reference. For `EDQUOT`… errors see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up CLAUDE_CODE_TMPDIR, on Error reference.

See this entry in the whole of v2.1.287 →

Feedback