Claude Code v2.1.334: a /model search box, an editable auto-compact window, and a resend when thinking-off is refused#

Published by

Part of the Claude Code Version Tracker series. | Official Env Vars | Official Changelog

Claude Code 2.1.334, the release after 2.1.333, adds a search box to /model once the list passes 25 models, an Auto-compact window row in /config for the size /autocompact sets, and /desktop on Windows Arm computers. A request that a model refuses with thinking turned off now resends without that setting, so it can finish.[1]

Finding a model and setting the compaction window#

When /model lists more than 25 models, it shows a search box that matches both names and model IDs; ↓ moves to it, as do s and the number keys.[1] /config gains an Auto-compact window row that shows and changes the size /autocompact sets.[1] A separate fix stops /context from drawing the compact buffer as used space when auto-compact is off.[1]

Requests finish when thinking is turned off#

A request that failed on a model that does not accept thinking being turned off now resends without that setting, which may let the model think on the request.[1] A related path covers sessions behind a gateway that rewrites API errors: an unknown 400 or 422 is resent, then resent again with earlier thinking stripped, and CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE=1 turns that stripped-thinking resend off.[1]

/code-review reads REVIEW.md up the folder tree#

A local /code-review follows REVIEW.md files in folders above a committed change, not only the one at the repository root.[1]

Pricing keys and a gateway config check#

modelPricing takes cacheWrite5m, cacheWrite1h, and, for Haiku 5.5, longPrompt; gateway pricing.overrides takes cache_write_5m, cache_write_1h, and long_prompt. The earlier keys still work.[1] claude gateway --config <file> --check config checks a config file without starting, and a start now reports a bad managed policy before it connects to Postgres.[1]

New environment variables#

VariableWhat It Does
CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBESet to 1, it turns off the resend that strips earlier thinking from a request after a gateway returns an unknown 400 or 422.[1]

Fixes#

AreaChange
WorktreesFixes cover a worktree starting from the wrong branch after Claude moved into another repository, --worktree in bare repositories whose default branch isn't main, and a resumed unchanged worktree dropping an unpushed commit that only its branch held.
mTLS certificatesA session with a client certificate no longer switches to expired or unusable certificate files on disk after a single temporary HTTP 400 certificate error.
Code ModeFixes cover tool calls drawn as empty rows, a script's calls counting toward context size and causing early compaction, subagents failing with "Agent stalled" on runs over ten minutes, and scripts overwriting an outside edit after /compact.
Vim modeEdits with p, x, s, r, ~, text objects, and Visual mode no longer break an image or pasted-text placeholder; b, db, dF, ci", and ; act as in Vim.
PluginsA plugin's SessionStart hook is no longer skipped when the plugin finishes loading after the session started, and plugins enabled through --settings load on a new machine's second start.
CompactionA response that hits the output token limit before writing text no longer triggers needless auto-compaction or a false "Prompt is too long" error, and /compact keeps the model's draft notes behind the summary.

One failed API exchange stops ending a session#

The thread through these fixes is that a single failed API exchange no longer takes the whole session with it. A request refused over thinking, an unknown error from a rewriting gateway, a response that hit the output limit before any text, a tool called with an input that is not an object, and a message the session cannot display each used to stall or exit the session; this release resends, substitutes, or shows a placeholder and keeps going.

The /model search box and the /config auto-compact window row sit beside that work. Both move something a user reached for by hand, a model buried in a long list and the size /autocompact uses, into a control they can see and change in place.

This analysis is conducted for educational and research purposes under fair use principles. All trademarks and software referenced belong to their respective owners.

Sources#

  1. Claude Code Official Changelog, v2.1.334 release notes

Previous Claude Code analysis: v2.1.333 (November 30, 2026)

All 95 Claude Code analyses: Claude Code Version Tracker · Official Claude Code changelog

Get the weekly digest

New Claude Code, Codex, Gemini CLI and OpenCode guides and release analyses, once a week, plus occasional notes.

One email a week plus occasional notes. Confirm by email; unsubscribe from any issue. Privacy