AIGenLab
EN

UPDATEclaude-code v2.1.333

Claude Code v2.1.333 fixes idle CPU and long-session memory

Version & typev2.1.333 · Feature
In short

A release that settles long-run costs: unbounded hook, MCP and language-server output, gigabyte memory growth under content logging, idle sessions burning a core, two sessions downloading one marketplace, lost scrollback in long sessions, plus a batch of desktop and VS Code panel fixes.

What changed in this release

31 checkpoints in 5 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.

Long sessions and output ceilings

  • Hook, MCP or language-server output that keeps printing no longer grows memory without bound
  • Content logging stops pushing a session into gigabytes, even with a slow or dead collector
  • A language server republishing diagnostics while idle no longer adds memory or freezes the next turn
  • Code Mode peaks lower on many large tool results, during and after the run
  • Simultaneous very large images use less memory; a Ctrl+O transcript with thousands of IDE diagnostics no longer freezes
  • A workflow script logging in a tight loop no longer eats gigabytes

Idle CPU and leftover background work

  • Windows: an idle session no longer holds a full core after a watched folder is deleted
  • FileChanged hooks stop burning CPU on folders created after startup or missing paths
  • Idle CPU falls when settings link into a very large folder such as `/nix/store`
  • CPU stops spiking when a `--plugin-dir` folder holds many build files
  • Idle background sessions woken by a finished task are retired, not left running for days
  • A shell stuck in your start-up files no longer outlives the session on a full core

Plugins, skills and mod interfaces

  • Two sessions on one marketplace no longer clear it or leave it incomplete; Windows retries
  • First session on a machine installs optional dependencies for `/reload-plugins` and marketplace updates
  • Two skill folders with one name no longer run the wrong skill; `/plugin` names both
  • A hook whose matcher doesn't match no longer slows the calls, rows and keys it skips
  • `claude plugin validate` lists names registered at `$.command`, `$.tool` and `$.agent` `register`
  • Spinner words, `/radio`, `/stickers`, the progress bar and the busy mark become optional plugins
  • `/compact` output reaches `session.append` by door `compaction`, breaking mods matching `command`

Input, terminal and panels

  • On WSL and Windows the prompt no longer stays on “Pasting…” or drops Enter when the clipboard hangs
  • Tap-mode and auto-submit dictation in `!` mode no longer run your words as a shell command
  • A brief CLI pause or Space during transcription no longer stops dictation or loses words
  • Scrollback lines no longer go missing outside fullscreen, nor above a tall permission prompt
  • The desktop Code tab attaches the right file after a folder change; the plan survives Rewind
  • The VS Code panel no longer freezes 5 seconds per large edit; `claudeCode.newLook` survives a reload

Exit, resume and writes

  • Prompts typed while Claude was working stay in history instead of being lost at exit
  • Cloud sessions keep their last status and one-line summary after `/compact`
  • Edit refuses a UTF-16LE file with an odd byte count instead of dropping its last byte
  • Windows line endings, an unquoted colon or a glob no longer make rules and skills skip a header
  • Deleted tasks stay deleted when many linked tasks are removed at once
  • An SDK host's settings save no longer overwrites a fresh edit of the same file

Read the original announcement

On this page
  1. Release inventory
  2. v2.1.333 pays off long-ru…
  3. Long sessions stop gettin…
  4. Idle sessions stop holdin…
  5. Two sessions on one marke…
  6. Input and terminal stop d…
  7. Exit and writes stop losi…
  8. Side by side
  9. Over two versions
  10. Release analysis
  11. Questions
  12. Sources & method

Contextv2.1.333 pays off long-run costs: sessions, idle CPU, plugins

You have probably had this session: an MCP server and a language server attached, content logging on, running all morning until memory sits in the gigabytes. This release bounds that path — runaway hook and MCP output, gigabytes under content logging, the Ctrl+O freeze on thousands of diagnostics.

Background commands also stop waiting on a host that has gone, unless that ceiling is turned off; watch `top` after upgrading. Other groups surface after a session ends: an idle Windows session holding a core after a watched folder was deleted, background sessions never retired, a shell stuck in your start-up files. The list groups the release 5 ways — long sessions, idle CPU, plugins and mods, input, exit and resume. The figure below shows where the changes land; the list below takes them one group at a time.

Where v2.1.333 lands: item counts across the five groups on this page. Plugins and mod interfaces hold the most items at 7; the other four groups hold 6 each, 31 in total. Schematic; counts come from this page's list.
Where the 31 grouped changes landWhere the 31 grouped changes landLong sessions and output ceilings6Idle CPU and leftover backgroundwork6Plugins, skills and mod interfaces7Input, terminal and panels6Exit, resume and writes6
AIGenLab original

Long sessions stop getting heavier: hook, MCP, language-server output

  1. Runaway output is bounded: memory stops growing while a hook, an MCP server or a language server keeps printing.
  2. Logging, images, Code Mode: OTel sessions no longer grow by gigabytes; large images use less memory; Code Mode peaks lower on many big results.
  3. Diagnostics: a republishing language server no longer adds memory or freezes the next turn; thousands of IDE diagnostics no longer freeze Ctrl+O.

Idle sessions stop holding a core: deleted folders, symlinks, leftovers

  1. On Windows an idle session no longer holds a full core after a watched folder is deleted, and FileChanged hooks stop burning CPU.
  2. Idle CPU falls when a settings file links into `/nix/store`, or a `--plugin-dir` folder holds many build files.
  3. Idle background sessions woken by a finished task are retired; a shell stuck in start-up files no longer stays.

Two sessions on one marketplace stop colliding: dependencies, clashes

  1. Two sessions downloading one marketplace no longer clear it or leave it incomplete; Windows retries on locked files.
  2. A new machine installs optional dependencies in the first session, and `/plugin` names two skill folders sharing a name.
  3. Spinner words, `/radio`, `/stickers`, the progress bar and the tab's busy mark become plugins you can turn off.

Input and terminal stop dropping keystrokes: clipboard, dictation, scrollback

  1. On WSL and Windows the prompt no longer stays on “Pasting…” and ignores Enter when the clipboard never answers.
  2. Tap-mode and auto-submit dictation in `!` mode no longer run your words as a shell command, nor lose them on a pause.
  3. Scrollback lines missing outside fullscreen are back, and the VS Code panel no longer freezes per large edit.

Exit and writes stop losing things: history, half-byte files, state

  1. Prompts typed while Claude was working stay in history at exit; cloud sessions keep status and summary after `/compact`.
  2. Edit and NotebookEdit refuse a UTF-16LE file with an odd byte count instead of dropping its last byte.
  3. Deleted tasks stay deleted when many linked tasks go at once; an SDK host's settings save keeps a fresh edit.

Side by side: Codex and Gemini CLI also spent this round on long runs

All three run a long coding-agent session in a terminal, and each puts its ceiling elsewhere. Codex tightens idle watchers and resume state, Gemini CLI concurrent installs and interface freezes, this release memory, background processes and rendering. Rows follow the five update points; cells name where a change landed.

Read your own row first, then check whether another tool shipped the same patch: where all three moved, the cost is common to terminal agents. Which side to pick depends on the line you need: memory, background processes and panel rendering in one release points here; idle wakeups or resume state alone already landed in Codex v0.169.0 and v0.172.0. Versions in the table are where a change landed, not release dates. Check row by row: same machine, same session, before and after.

UpdateOpenAI Codex CLI v0.172.0Gemini CLI v0.71.0Claude Code v2.1.333
Long-session memory0.172.0 deduplicates large tool output (#62407); 0.171.0 boxed payloads cut submission memory (#61389)0.69.0 stops PDF inlineData and telemetry buffer retention (#30217)Persistent hook, MCP and language-server output no longer grows memory; content logging stops growing by gigabytes
Idle resources0.169.0 avoids periodic wakeups in idle watchers (#60560); 0.168.0 keeps idle MCP pipes off other I/O (#59726)0.69.0 closes the orphan /dev/ptmx master FD on PTY spawn (#30184)Deleted folders, large symlinked settings and build-heavy plugin folders stop pinning a core
Plugin installs0.169.0 reuses on-disk Git objects on marketplace upgrades (#60528)0.68.0 serializes concurrent extension installs (#30039); handles download stream failures (#30100)Two sessions on one marketplace no longer damage it; the first session installs optional dependencies
Plugin checks0.171.0 defers plugin manifests until an entry is picked (#61686); 0.172.0 starts cached stdio MCP servers (#62366)0.68.0 adds an extension validation command (#29980)`claude plugin validate` lists registered command, tool and agent names
Resume and writes0.172.0 restores saved sandbox permissions, working directory and workspace roots on resume (#62194)0.69.0 stops model-turn 400s on resume and main-thread JSONL freezes (#30186)Prompts typed before exit stay in history; Edit refuses odd-byte UTF-16LE files

Over two versions: v2.1.332 fixed single stalls, v2.1.333 adds limits

The previous release fixed stalls one input at a time: a hook printing without end, a hook blocking mid-turn, a local MCP server flooding stdout, an SSE server reconnecting. This release takes on what happens over hours — the same hook flood is bounded, marketplace installs survive two downloads.

Reading: left is v2.1.332, right is v2.1.333, the same feature before and after. Both come from each release's own notes; no current documentation is used to infer older behaviour.

Featurev2.1.332v2.1.333
Long-session memoryFreezes and runaway memory fixed in most cases while a hook prints without endPersistent hook, MCP and language-server output bounded; content logging stops growing by gigabytes
Marketplace installsWindows add retries while another program holds the files; failed downloads leave no `temp_*` foldersTwo sessions on one marketplace no longer damage it; first session installs optional dependencies
Hook eventsNew `PreSkillShellCommand` hook can refuse a skill's inline shell commandsSessionEnd hooks of zip-loaded plugins no longer fail; `FileChanged` fires for missing watched files
Voice dictationTap mode keeps the microphone until 60 seconds without words or 10 minutesA brief pause or Space no longer stops dictation; `!` mode no longer runs it as a shell command
Terminal renderingSelecting text no longer pushes the footer label to a second rowScrollback lines no longer go missing outside fullscreen; fullscreen stays filled after Ctrl+O

Release analysisWho upgrades first: all-day sessions, Windows, many plugins

The people who gain most leave a session open all day: content logging on, an MCP server and a language server attached, several sessions on one marketplace. Windows and WSL users come next — an idle core after a deleted folder, tool calls at a network drive root, crashes under security software, a clipboard that never answers.

On this step Codex v0.172.0 and Gemini CLI v0.71.0 moved along the same two lines: Codex stopped periodic wakeups in idle Windows watchers in v0.169.0 and restored saved sandbox permissions on resume in v0.172.0; Gemini CLI serialized concurrent extension installs in v0.68.0 and fixed telemetry buffer retention in v0.69.0.

Station view, not tested here: upgrade a few machines that stay open, run a day, compare memory and idle CPU, then roll out. Two edits first — `--allowedTools` and `--tools` stop the launch when a list is passed as several values, so pass one value such as `--allowedTools "Read,Edit,Write"`; mods matching `/compact` output on door `command` move to `session.append` with door `compaction`. Do not copy `CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0` as a default.

Station view, not tested here: One more group can wait: short tasks only, no plugins, no Remote Control and no self-hosted runner. None of this release's items reach them, so they can take it in the next window.

AIGenLab views

Not independently tested

Long-session stability can only be checked machine by machine: upgrade a few machines that stay open, run a day, compare memory and idle CPU, and do not roll out everywhere at once.

Station view: the release concentrates on memory, idle CPU and process retirement, and the notes give no reproducible readings.

Mod authors should move `/compact` output matching from door `command` to door `compaction` on `session.append`, and check for two skill folders sharing a name.

The notes state that `/compact` output now reaches `session.append` by door `compaction` and breaks mods matching on door `command`, and that `/plugin` now names two folders that share a skill name.

Independently tested for this edition

Anyone running short sessions with no plugins, Remote Control or self-hosted runner can defer this upgrade to the next round and watch how long-session teams fare.

Station view: the items cluster around long-session resources, Windows and WSL failures and plugin marketplaces, which short-session users rarely hit.

Questions

What do I need to change after upgrading to v2.1.333?
Most teams change nothing. Two things do move: `--allowedTools` and `--tools` stop the launch when a list is passed as several values, so pass one value such as `--allowedTools "Read,Edit,Write"`; mods matching `/compact` output on door `command` must move to `session.append` with door `compaction`.
What do I lose if I turn the built-in plugins off?
Spinner words, `/radio`, `/stickers`, shipped spinner tips, example prompts and the tab's busy mark need their built-in plugins running; `spinnerTipsOverride` tips and `spinnerVerbs` still show.
Do background processes survive after a session ends?
Once the host is gone and no subagent runs, SDK sessions end background commands, monitors and wakeups; set `CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0` if a background command must outlive the host. Idle background sessions woken by a finished task are retired.

Official sources and scope

  • Claude Code v2.1.333 Every item on this page, the version number and the publish time
  • Claude Code v2.1.332 The previous-version column of the vertical table
  • OpenAI Codex CLI v0.172.0 Codex's rows on memory, plugin loading and resume state (#62407, #62366, #62194)
  • OpenAI Codex CLI v0.171.0 Codex cutting on-disk submission memory with boxed payloads and deferring plugin manifest loading (#61389, #61686)
  • OpenAI Codex CLI v0.169.0 Codex's idle Windows file watchers and marketplace Git object reuse (#60560, #60528)
  • OpenAI Codex CLI v0.168.0 Codex's idle local MCP pipes no longer blocking unrelated I/O (#59726)
  • Gemini CLI v0.71.0 Gemini CLI's current release and its async PowerShell parsing that avoids a UI spinner freeze (#30334)
  • Gemini CLI v0.69.0 Gemini CLI's telemetry buffer retention, leaked PTY file descriptor and resume freezes (#30217, #30184, #30186)
  • Gemini CLI v0.68.0 Gemini CLI's per-extension lock, extension validation command and download stream handling (#30039, #29980, #30100)

Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.