
Main Updates in Claude Code v2.1.161
This page has been translated by machine translation. View original
This is Ishikawa from the Cloud Business Division. Claude Code v2.1.161 (released June 2, 2026) has been released. This update focuses primarily on improvements to existing features, bug fixes, and security enhancements rather than adding new features — a stability-focused update.
Update Summary
v2.1.161 includes 22 changes. In addition to improvements around parallel tool calls and OpenTelemetry metrics, the update contains many practical fixes covering everyday use, automation, and security — including a regression fix for third-party provider authentication and a fix for secret output in claude mcp.
Recently, there was a post on X stating "We have reset the 5-hour and weekly rate limits for all users." Since I was on the Max plan, my weekly rate limit was reset to zero, which was a nice surprise.
We have reset the 5-hour and weekly rate limits for all Pro and Max plan users.
We fixed an issue where some Claude Code sessions were spawning excessive parallel sub-agents, causing usage to be consumed faster than expected.
Highlighted Updates
- Improvement: In parallel tool calls, a single failing Bash command no longer cancels other calls in the same batch. Additionally,
OTEL_RESOURCE_ATTRIBUTESvalues are now added as labels to usage metrics, enabling analysis by team or repo. - Bug fixes: A regression (introduced in 2.1.146) where admin policy settings were blocking sessions for third-party providers such as Bedrock and Vertex, and an issue where background sub-agent output was corrupting the stdout of
claude -p, have both been fixed. - Security: An issue where
claude mcplist/get/add was printing secrets directly to the terminal has been fixed, and secrets in authentication headers and URLs are now masked.
Update Details
Improvements
- Independent parallel tool calls: When tool calls are executed in parallel, a failure in one Bash command no longer cancels other calls in the same batch. Each tool returns its result independently. This improves robustness when running multiple commands together.
- Custom dimension support for OpenTelemetry metrics:
OTEL_RESOURCE_ATTRIBUTESvalues are now attached as labels to metric data points. This allows you to slice and analyze usage metrics by custom dimensions such as team or repo. - Enhanced clipboard support on Linux: Clipboard handling in fullscreen mode has been improved. On Linux,
wl-copy/xclip/xselwill be used when available. It copies to both the clipboard and the PRIMARY selection (for middle-click pasting), and the "hold {key} for native selection" hint now displays the correct key for each terminal. - Progress display for
claude agents: When work is fanned out in parallel, each row in the list now showsdone/totalbefore the details. The peek (preview) displays the longest-running item. - Cleaner
/mcpdisplay: Claude.ai connectors that have never been signed into are now collapsed into a "Show unused connectors" row, making the list easier to read. - [VSCode] Hint added for garbled text: A hint has been added suggesting that users disable GPU acceleration in the terminal (or run
/terminal-setup) to resolve glyph rendering issues (garbled characters).
Performance
- Terminal rendering improvements: Stabilized the JIT compilation profile of the layout engine, improving terminal rendering performance.
- Improved rendering for large file writes: Rendering performance when writing large files has been improved.
Security
- Fix for secret output in
claude mcp: Fixed an issue whereclaude mcplist/get/add was printing secrets to the terminal.${VAR}references are no longer expanded, and secrets contained in authentication headers or URLs are masked. This prevents credentials from being displayed directly in the terminal when reviewing MCP server configurations.
Fixes
Here is a summary of key fixes related to stability and usability.
- Fix for third-party provider authentication blocking: Fixed an issue (a regression from 2.1.146) where
forceLoginOrgUUID/forceLoginMethodadmin policy settings were blocking sessions for third-party providers such as Bedrock, Vertex, Foundry, and Mantle when used together with organization pinning. - Fix for
claude -pstdout corruption: Fixed an issue where background sub-agent output was corrupting the stdout ofclaude -pwhen using--output-format textorjson. This affected cases where the output ofclaude -pwas being parsed in scripts. - Fix for crash on session resume: Fixed a potential crash that occurred when rendering Write tool results after resuming a session.
- Fix for frozen sub-agent display: Fixed an issue where a completed sub-agent would remain stuck in a "running" state if an error occurred during result finalization.
- Fix for workflow agent worktree edit blocking: Fixed an issue where Workflow agents spawned with
isolation: "worktree"in background sessions were blocked from editing files within their own worktree. - Fix for missing OpenTelemetry log events: Fixed an issue where log events (
user_prompt,api_request,tool_result,tool_decision) were silently discarded if emitted before telemetry initialization was complete. - Fix for
--resumesession display: Fixed an issue where sessions in the current directory that is not a git worktree (such as jj workspaces) were not appearing in the--resumeselection screen. - In addition, numerous minor bug fixes have been made, including: application of the "Reduce motion" setting, behavior of
/usage-credits, false positives in/autofix-pr, bash hook invocation on Windows, background sessions starting with outdated models, and socket conflicts (EADDRINUSE) in temporary directories.
Closing Thoughts
While v2.1.161 has few flashy new features, it is a stability-focused update packed with practical improvements: more robust parallel tool calls, enhancements around OpenTelemetry, and fixes directly relevant to real-world use and security — including authentication, stdout handling, and secret output. In particular, we recommend updating if you use Bedrock or Vertex, use claude -p in scripts, or make heavy use of MCP servers. If any of the changes catch your interest, go ahead and update to check them out.
Recent Updates
References
