headless
The tracked changes tagged headless, newest release first. Every sentence is an item's summary.
Goes with
Changes
Claude Code v2.1.329
-
Fixed a removed plugin's MCP server staying connected in headless sessions after reload_plugins or when the account plugin list drops it.
-
Fixed headless rewind and fork proceeding while a message sent right after a model change still waited on it.
Gemini CLI Release v0.69.0
-
Normalizes error payloads in headless CLI formatting.
-
Kills child processes, records cancelled tools, and preserves the signal exit code on headless abort.
Claude Code v2.1.321
-
Headless sessions reload mods in .claude/skills when their files change; CLAUDE_CODE_PLUGIN_DIR_WATCH=0 turns this off.
Claude Code v2.1.317
-
Fixes high memory use and slow startup in headless sessions with many plugins that register commands.
Claude Code v2.1.304
-
Fixed a plugin keeping a headless run going past --max-turns, Stop, or ended input by spawning subagents or re-running a finished one.
-
Improved resume of large compacted sessions in SDK and headless mode so the first request after resuming is sent sooner.
Claude Code v2.1.299
-
Fixed a mod that submits a prompt at the end of every turn keeping a headless run going past --max-turns, --max-budget-usd, an interrupt, or the end of the host conversation.
-
Fixed a 2.1.296 regression where cloud and headless sessions could run an approved tool call twice when a new message arrived as the session resumed after restart.
-
Fixed queued prompts sent as content blocks over --input-format stream-json running together without a line break when merged into one turn.
-
Fixed MCP tool calls in headless and SDK sessions sometimes failing or running twice when a background reconnect closed their connection.
-
Fixed /btw side questions in non-interactive sessions not being cancelled when the session ends, and running twice when the same request arrived mid-run.
Claude Code v2.1.296
-
Fixed headless sessions starting a folder's .mcp.json or plugin MCP server that was switched off for that folder, after changing directory or reloading plugins.
-
Fixed Esc or an interrupt during a UserPromptSubmit hook or a mod's prompt.submit hook ending headless sessions, clearing the typed prompt, or letting the unchecked prompt through.
-
Fixed SessionStart hooks of a plugin loaded after a headless session starts being skipped when a different plugin with the same name, or another spelling of it, had already run.
-
Fixed a late-loading plugin's SessionStart hook output reaching the new conversation after /clear in headless sessions.
Claude Code v2.1.295
-
Added a stderr line in a terminal during claude -p runs that stay open after the last turn, stating what they are waiting for.
-
Fixed claude -p text output dropping earlier responses when background work started another turn; each turn's response now prints when it ends.
-
Fixed remote MCP servers in headless and SDK sessions staying disconnected after outages over 15 seconds or reconnecting in a tight loop; repeated drops now back off up to 30s.
-
Fixed a skill's allowed-tools and effort being dropped when the Skill tool finished before the response stream ended, denying skill Bash commands in -p runs.
-
Fixed non-interactive sessions reporting MCP servers needing authentication when the request does not use them.
Claude Code v2.1.290
-
Fixed headless --json-schema runs exiting non-zero on a success result when the connection dropped after output was delivered.
Claude Code v2.1.287
-
Fixed headless sessions reporting an MCP server as needing authentication after one refused call.
-
In headless mode, a remote MCP server whose first connect fails transiently is retried without waiting for the slowest server.
Claude Code v2.1.286
-
Fixed headless sessions repeating the "MCP servers require authentication" reminder after successful re-authentication when the MCP discovery cache is enabled.