All areas Feed Weekly digests

headless

The tracked changes tagged headless, newest release first. Every sentence is an item's summary.

29 items from 11 releases, 0 breaking Sources: Claude Code, Gemini CLI Last change:

Goes with

Changes

Claude Code v2.1.329

  1. fix

    Fixed a removed plugin's MCP server staying connected in headless sessions after reload_plugins or when the account plugin list drops it.

  2. fix

    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

  1. fix

    Normalizes error payloads in headless CLI formatting.

  2. fix

    Kills child processes, records cancelled tools, and preserves the signal exit code on headless abort.

Claude Code v2.1.321

  1. other

    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

  1. fix

    Fixes high memory use and slow startup in headless sessions with many plugins that register commands.

Claude Code v2.1.304

  1. fix

    Fixed a plugin keeping a headless run going past --max-turns, Stop, or ended input by spawning subagents or re-running a finished one.

  2. performance

    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

  1. fix

    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.

  2. fix

    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.

  3. fix

    Fixed queued prompts sent as content blocks over --input-format stream-json running together without a line break when merged into one turn.

  4. fix

    Fixed MCP tool calls in headless and SDK sessions sometimes failing or running twice when a background reconnect closed their connection.

  5. fix

    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.

+2 more
  1. fix

    Fixed Ultracode not being announced to scheduled tasks and other delivered headless turns when ultracode is on in settings.

  2. other

    Changed /btw side questions in non-interactive sessions to return a timeout error when still unanswered after 11 minutes.

Claude Code v2.1.296

  1. fix

    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.

  2. fix

    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.

  3. fix

    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.

  4. fix

    Fixed a late-loading plugin's SessionStart hook output reaching the new conversation after /clear in headless sessions.

Claude Code v2.1.295

  1. feature

    Added a stderr line in a terminal during claude -p runs that stay open after the last turn, stating what they are waiting for.

  2. fix

    Fixed claude -p text output dropping earlier responses when background work started another turn; each turn's response now prints when it ends.

  3. fix

    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.

  4. fix

    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.

  5. fix

    Fixed non-interactive sessions reporting MCP servers needing authentication when the request does not use them.

+1 more
  1. other

    Improved headless rate_limit_event usage-limit warnings to say whether extra usage is turned on.

Claude Code v2.1.290

  1. fix

    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

  1. fix

    Fixed headless sessions reporting an MCP server as needing authentication after one refused call.

  2. performance

    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

  1. fix

    Fixed headless sessions repeating the "MCP servers require authentication" reminder after successful re-authentication when the MCP discovery cache is enabled.