Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

New CLAUDE_CODE_HOST_STARTED_AHEAD makes Claude Code wait for its host

With CLAUDE_CODE_HOST_STARTED_AHEAD set, Claude Code waits until its host sends a first message or request before going on

Use it now Notable No documentation found New Features
JSON All of v2.1.331
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
HostsArea: what it touches
New FeaturesKind: in v2.1.331,
What probably matters to youSection of the release

Unclear What the second check is, and so whether setting the variable alone turns on the wait, is not clear.

What

A program that runs Claude Code inside itself, such as an editor, is called a host. A new environment variable, CLAUDE_CODE_HOST_STARTED_AHEAD, lets a host start Claude Code before the host's own page is ready.

When it is set and a second check passes, Claude Code holds the session in a waiting state. The wait ends when either of these arrives:

  • the first user message
  • a request from the host other than the startup handshake or an MCP message

Claude Code also lists the variable among the environment variables it passes through or accepts.

Why

This lets an editor or other host launch Claude Code early so it is ready sooner. It only matters to people building such integrations.

Read from
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 doubtWhat the second check is, and so whether setting the variable alone turns on the wait, is not clear.

See this entry in the whole of v2.1.331 →

Feedback