Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.246 ·

Headless startup logs which turn loop it is running

Headless runs log which turn loop they're using, making non-interactive problems easier to diagnose.

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

On starting a print/headless run, Claude Code now writes a debug line naming which of its two turn loops is active, which makes headless behaviour easier to triage.

Details
  • Selected by the environment variable CLAUDE_CODE_PRINT_ENGINE_LOOP; the accessor returns its value when set and false otherwise, so the legacy per-turn path is the default.
Evidence

[print] turns run on the engine session (createHeadlessSession)

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.246 →

Feedback