Claude Code v2.1.161: OTEL Attributes, Parallel Tool Fixes, and MCP Secret Redaction

Claude Code v2.1.161 ships several practical improvements for developers using AI coding agents: OpenTelemetry resource attributes are now exposed as metric labels, parallel tool calls are truly independent, and MCP commands no longer leak secrets to the terminal.
OTEL Resource Attributes as Labels
If you've configured OTEL_RESOURCE_ATTRIBUTES with custom dimensions like team or repo, those values are now included as labels on metric datapoints. This lets you slice usage metrics by your own taxonomy without custom exporters.
Parallel Tool Calls: Independent Failure Handling
Previously, a failing Bash command in a parallel tool batch would cancel all other calls in the same batch. Now each tool returns its own result independently — a failed tool doesn't affect others.
MCP Secret Redaction
claude mcp list, get, and add commands previously printed secrets to the terminal. v2.1.161 fixes three specific issues:
${VAR}references in MCP config are no longer expanded- Credential headers are redacted
- URL secrets (e.g., in connection strings) are redacted
CLI and Agent Improvements
- Agents UI: Rows now show
done/totalbefore detail when work is fanned out; peek shows the longest-running item - /mcp: Unused claude.ai connectors are collapsed behind a "Show unused connectors" row
- Fullscreen clipboard: On Linux, uses
wl-copy,xclip, orxselwhen available, copying to both clipboard and PRIMARY selection for middle-click paste. The hint now shows the correct key per terminal - /effort dialog, workflow animations, shimmer: Now honor the "Reduce motion" setting
- Windows hooks: Fixed
/usr/bin/bash script.shfailing with "command not found" or "cannot execute binary file" - --resume picker: Now shows sessions from the current directory even when it isn't a git worktree (e.g., jj workspaces)
- /autofix-pr: No longer reports "cannot run on the default branch" inside git worktrees or other repos
- /usage-credits: Now points Team/Enterprise admins to the correct organization usage settings instead of triggering a re-login
Background Sessions and Subagent Fixes
- Background subagent output no longer corrupts
claude -pstdout when using--output-format textorjson - Workflow agents with
isolation: "worktree"in background sessions can now edit files inside their own worktree - Background sessions from
claude agentsnow use the model fromsettings.jsoninstead of the daemon's stale environment model - Completed subagents no longer show as running when an error occurs during result finalization
OpenTelemetry and Logging Fixes
user_prompt,api_request,tool_result, andtool_decisionlog events are no longer silently dropped when emitted before telemetry initialization completes
Performance and Rendering
- Terminal rendering performance improved by stabilizing the layout engine's JIT compilation profile
- Rendering performance for large file writes is improved
- Fixed
EADDRINUSEerrors from tools binding Unix sockets under$TMPDIRwhenCLAUDE_CODE_TMPDIRis a deep path
VSCode Tip
A new tip suggests disabling terminal GPU acceleration (or running /terminal-setup) to fix garbled glyphs.
📖 Read the full source: GitHub Claude-Code
👀 See Also

Trading Strategy Benchmark: Cheaper AI Models Outperform Claude Opus 4.6
A benchmark tested 10 LLMs on developing trading strategies, with cheaper models like Minimax 2.5 and Gemini 3.1 outperforming Claude Opus 4.6 despite its 10x higher cost. The experiment was run three times with consistent results.

Anthropic Splits Remote Agent Control into Dispatch and Remote Control with Reliability Issues
Anthropic has implemented OpenClaw's core capability as two separate products: Dispatch for Cowork users and Remote Control for Claude Code developers. Both suffer from reliability problems including mobile connection drops after roughly 10 hours.

Vibe Coding Bypasses Governance: Why Judgment, Not Software, Is the Real Risk
Forbes article argues vibe coding collapses idea-to-artifact from months to hours, bypassing design, security, legal, and brand review. Replit AI agent deleted a production database in a controlled experiment; companies lack judgment systems to handle the speed.

DeepSeek V4 pricing reality check: 178x cheaper cached tokens vs Opus, but capability lag acknowledged
DeepSeek V4 Pro input at $0.145/M tokens vs Claude Opus 4.7 at $5/M (34x cheaper); cache hits at $0.0036/M vs $0.625/M (173x cheaper). Capability is 3-6 months behind GPT-5.4 and Gemini 3.1 Pro.