All areas Feed Weekly digests

code-mode

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

91 items from 13 releases, 3 breaking Sources: Claude Code, Codex Last change:

Goes with

Changes

Claude Code v2.1.332

  1. fix

    Fixed Code Mode silently skipping a tool call whose input has a list over 4,096 items; very large typed array inputs are now refused instead of freezing.

  2. fix

    Fixed Code Mode leaving a message unanswered when typed during a command and Esc was pressed before Claude replied; the message now starts a new turn.

  3. fix

    Fixed Code Mode not telling Claude when a slow command moved to the background with empty output, or about the time limit on background commands in claude -p and the Agent SDK.

  4. fix

    Fixed Code Mode sometimes waiting for minutes on a command that had already been stopped.

  5. fix

    Fixed a typed slash command's inline shell commands not running in Code Mode after a background script's output arrived.

+6 more
  1. fix

    Fixed Code Mode sessions in the Agent SDK and claude -p sometimes losing Claude's last reply on resume after being stopped while a script ran.

  2. fix

    Fixed resuming a paused workflow in Code Mode waiting for minutes while other background work ran.

  3. fix

    Fixed subagents in Code Mode failing with Agent stalled and losing their command when a script ran over 10 minutes.

  4. other

    Improved resuming a Code Mode session so Claude is told up front that earlier script variables are gone.

  5. other

    Improved Claude in Code Mode to confirm before discarding worktree changes, read artifact files before publishing, and update an existing artifact instead of creating a second one.

  6. other

    Improved Code Mode tool search to show long MCP tool descriptions whole where they fit.

Codex 0.172.0

  1. deprecation

    Code Mode uses gRPC for all host connections, and the code_mode_host_grpc setting is deprecated.

Claude Code v2.1.331

  1. feature

    Code Mode is now supported in terminal sessions on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and Claude Platform on AWS.

  2. fix

    Fixed Code Mode sessions resumed with --resume or --continue in another permission mode losing thinking and the prompt cache.

  3. fix

    Fixed a session begun in an asking permission mode keeping that mode's limits on scripts after resume.

  4. fix

    Fixed Code Mode sending a request about every second when a ! or slash command was typed while a script ran.

  5. fix

    Fixed Code Mode losing the middle of long script output; Claude now gets a path to the uncut text (#111373).

+2 more
  1. fix

    Fixed Code Mode with --bare not telling Claude what its scripts can call.

  2. performance

    Improved Code Mode tool search to show more of an MCP tool's description, with its limits, formats and defaults.

Claude Code v2.1.330

  1. fix

    Fixed a long pause in Code Mode after reading hundreds of files in projects with path-scoped rules or Read deny rules.

  2. fix

    Fixed the built-in chart tool failing when Claude called it in Code Mode.

  3. fix

    Fixed Code Mode ignoring an MCP tool's request to end the turn from a script in auto and bypass permissions modes.

  4. fix

    Fixed Code Mode in auto mode dropping earlier thinking and rewriting the prompt cache when a mod added a note after a script loaded a skill.

  5. fix

    Fixed Code Mode not restoring a file a script had read after Esc and /compact.

+4 more
  1. fix

    Fixed /context undercounting system tools in Code Mode before Claude's first reply.

  2. other

    Improved Code Mode by telling Claude how to look at images and PDFs.

  3. other

    Improved Code Mode so after Esc, Interrupted appears under the stopped command instead of a red error.

  4. performance

    Improved Code Mode so the terminal freezes for far less time after a subagent's script makes thousands of tool calls.

Claude Code v2.1.329

  1. fix Breaking

    Fixed mods listing only some tools silently turning Code Mode off; such a mod no longer disables it, so administrators should use managed settings to turn it off.

  2. breaking Breaking

    Code Mode: a PreToolUse hook that errors no longer refuses a script's tool call; hooks that must refuse need onFailure set to block on command, HTTP or MCP tool hooks.

  3. feature

    Code Mode can be enabled while OpenTelemetry events and metrics are on, with each tool call from the code sending its events; tracing still keeps it off.

  4. fix

    Fixed Code Mode hiding a script's finished edits and the stopped command after Esc, and losing them on exit.

  5. fix

    Fixed a runaway loop in Code Mode filling machine memory; it is now stopped at a limit.

+12 more
  1. fix

    Fixed Code Mode keeping every large text file read in memory, and memory growing each time a background subagent was woken.

  2. fix

    Fixed Code Mode stopping a script at its ten-minute limit while an MCP form, MCP link prompt or always-asking prompt awaited an answer.

  3. fix

    Fixed Code Mode scripts receiving a moved to the background message as data from most MCP calls over two minutes; scripts now wait up to ten minutes before getting an error.

  4. fix

    Fixed Code Mode ignoring an MCP tool's request to end the turn when the tool was called from a script Claude waits for.

  5. fix

    Fixed a Code Mode script's let x; keeping the value an earlier script gave x.

  6. fix

    Fixed a Code Mode script calling a tool with no argument failing with a missing-parameter error on tools that need none.

  7. fix

    Fixed Code Mode scripts losing access to tools through tools in sessions with more than 4,096 tools.

  8. performance

    Code Mode terminal freezes for far less time after a script makes thousands of tool calls.

  9. other

    Code Mode gives Claude the same guidance on waiting after starting a subagent as outside Code Mode.

  10. other

    Code Mode refuses a script's read of a line range over 256 MiB, and reads of very long lines no longer time out.

  11. other

    Code Mode now also starts when telemetry, nonessential traffic or feature flags are turned off; administrators can keep it off in managed settings.

  12. other

    Code Mode now runs scripts that declare their own log, preview or sleep, which it previously refused.

Claude Code v2.1.328

  1. breaking Breaking

    Code Mode no longer runs UserPromptSubmit hooks, managed ones included, on scripts' output; to redact that output, use a PostToolUse hook with updatedToolOutput.

  2. fix

    Code Mode no longer stops a script when a permission prompt, plan approval or question outside auto or bypass mode stays open for ten minutes.

  3. fix

    Code Mode scripts in auto and bypass-permissions modes can call an MCP server that connected while the previous script was running.

  4. fix

    Code Mode scripts run in the background in auto or bypass permissions mode for a session chosen in the claude --resume picker.

  5. fix

    Code Mode keeps a loaded skill, hook context or note typed with a permission approval when resuming a session in which one reply ran several scripts.

+17 more
  1. fix

    Claude is told that a Code Mode script was cut off when the session is resumed from the picker or in a mode that asks for permission.

  2. fix

    Code Mode no longer silently uses undefined for top-level variables that an earlier failed script never set.

  3. fix

    Code Mode scripts are told when a failing command's long output was cut.

  4. fix

    Code Mode no longer refuses valid scripts that start with a { block.

  5. fix

    Code Mode no longer refuses scripts that use both a top-level await and a top-level return.

  6. fix

    An @-mentioned small file is attached in Code Mode after a script has read or written it.

  7. fix

    Code Mode no longer offers write() and edit() to read-only subagents that cannot call them.

  8. fix

    Claude no longer starts a turn by itself in Code Mode when Esc is followed by a command such as /model.

  9. fix

    Claude in Code Mode is told to run workflows only when asked and to respect the workflow size set in /config.

  10. performance

    Code Mode scripts run faster in auto and bypass-permissions modes because a 0.75 second pause after most scripts is removed.

  11. performance

    Prompt caching works for new Code Mode sessions that have MCP servers, and Claude is told when a server is still connecting and when the server list changes.

  12. performance

    Code Mode uses fewer tokens because its tool descriptions are shorter.

  13. other

    Code Mode shows the command a script is running, and its output, while it runs.

  14. other

    In Code Mode, an edit that changes nothing no longer stops a script, and Claude is told where a failed edit matches or comes closest.

  15. other

    In Code Mode, Claude is told which tool calls were still running when a script failed.

  16. other

    In Code Mode auto and bypass modes, Claude is told to run dev servers as background tasks that show in /tasks.

  17. other

    On Windows, Code Mode tells Claude that script shell commands run in Git Bash and that PowerShell aliases run instead of same-named functions.

Claude Code v2.1.327

  1. fix

    Fixed a running Code Mode script in auto mode getting permission prompts and denials once Claude started a second script that auto mode also allowed.

  2. other

    Changed Code Mode to no longer refuse to start when an installed mod hooks tool calls; an administrator can still keep Code Mode off in managed settings.

Claude Code v2.1.326

  1. feature

    Code Mode can be turned on while agent teams are enabled, and sessions with teams on start in Code Mode if it was already turned on.

  2. fix

    Skills and slash commands load in Code Mode under auto mode when an inline ! command needs approval; Claude is asked to run it.

  3. fix

    Background subagents in Code Mode no longer fail when they preload a skill with an inline ! command.

  4. fix

    Mods can use Bash, Read and other tools through $.tool.call and $.tool.check in Code Mode.

  5. other

    Permission checks in Code Mode now ask or refuse more sandboxed commands.

+2 more
  1. other

    Messages shown when Code Mode cannot be turned on now say what the user can do.

  2. other

    Code Mode's $ shell helper refuses some values with an error, and nothing runs.

Claude Code v2.1.325

  1. fix

    Fixed Code Mode scripts ignoring a worktree entered with EnterWorktree, writing ~ paths into the project, and leaving /mcp showing a server connected after its sign-in expired.

  2. fix

    Fixed words typed with Yes at a permission dialog or plan approval not reaching Claude in Code Mode.

  3. fix

    Fixed Claude starting work by itself when a session that ended during a Code Mode script was resumed; it now waits for the next prompt.

Claude Code v2.1.323

  1. feature

    Added Code Mode, an experimental opt-in in which Claude writes JavaScript to call its tools, and can be turned off for an organization.

Codex 0.167.0

  1. feature

    Code Mode collects and renders output with bounds, and the runtime uses this bounded collection.

  2. feature

    Code Mode sessions get server-side output truncation, which clients can negotiate.

  3. feature

    Code Mode host output truncation is behind a feature flag.

Codex 0.166.0

  1. other

    Enabled zstd compression for code-mode gRPC responses.

  2. other

    Simplified code-mode cell completion delivery.

  3. other

    Added code-mode output truncation protocol contracts.

  4. other

    Always put Code Mode tool descriptions before namespace descriptions.

  5. other

    Restricted code-mode host replacement to session admission.

+2 more
  1. other

    Declared the image generation result type in code mode.

  2. other

    Added optional process metrics sampling for code-mode hosts.

Codex 0.163.0

  1. feature

    Sending a follow-up while Codex is responding steers it immediately, and interrupting a turn also stops active Code Mode cells and their nested tool calls.