Claude Code 2.1.332: no more silent login failures
Most of a Claude Code changelog is noise, but v2.1.332 (published 25 November) has a handful of fixes that matter if you run the tool unattended or on a box with a locked-down secrets setup. I read the release notes line by line; here's what I'd actually pay attention to.
A login that said "success" when it wasn't
The release notes say claude auth login used to report Login successful. even when a claude.ai login could not be saved. It now exits with status 1 and tells you what to check, such as a leftover lock file or a full disk.
That sounds small until you script it. A provisioning script that runs claude auth login and then moves on will happily continue with no credentials stored, and the failure only surfaces later as a confusing auth error in the middle of a job. Exit codes are the contract automation relies on, so this one is a genuine fix. If you wrap the command in a setup script, it's worth adding set -e or an explicit check so the new non-zero exit actually stops you.
Reads that hang on a named pipe
The notes also fix Read, @-mentions and compaction hanging on a named pipe that nothing writes to. The example given is a .env mounted by a locked secrets manager. The read now fails after 20 seconds instead of blocking forever.
If you mount secrets as FIFOs, this is the case where an agent session would just sit there. A 20-second failure is much easier to diagnose than a frozen terminal.
Skills from MCP servers, and the new hook event
Two additions are new surface area. Skills from MCP servers are in beta and show up in the / menu as server:skill, while other skills keep their plain names. There is also a PreSkillShellCommand hook event that can refuse a skill or command's inline shell commands as it loads. One caveat from the notes: on 2.1.331 and older, a settings file that names this event opens a dialog at start, so if you share a settings file across machines, update them together.
I'd treat MCP-supplied skills the way I treat any third-party instruction source: read what the server ships before enabling it, and use the new hook to gate the shell commands it can run.
Smaller things worth a glance
- Several freezes are fixed, including a hook that prints output without end and a local MCP server flooding standard output.
- The
sonnetalias on Bedrock Mantle now means Sonnet 5 (not 5.5), and an account without Sonnet 5 gets an error, so enable it first. - OpenTelemetry
service.namefor desktop Code tab sessions changes toclaude-code-desktop, so filters keyed onclaude-codeneed updating.
The theme running through this release is honesty under failure: commands that exit non-zero when they fail, reads that time out instead of hanging. If you run Claude Code in CI or on a schedule, upgrade and re-check any wrapper script that assumed the old always-succeeds behaviour.