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

Practical Enhancements in Claude Opus 4.6: Memory Upgrade
Claude Opus 4.6 features a significant upgrade with a 1 million token context, enhancing memory retention and performance in complex tasks.

Project Health Check: Bus Factor and Commit Activity Across Claw/Assistant Repos
A Reddit user scraped commit data from major claw/assistant projects and found many with a bus factor of 1—meaning a single author accounts for over 50% of commits. Some projects show drastic drops in April activity.

AI Agents Need Rollback Primitives, Not Just Autonomy
A developer argues agent frameworks must adopt database concepts like ACID, sagas, and compensating actions to handle partial failures, rather than relying on LLMs to "figure it out."

Claude-Code v2.1.41 Release: Key Updates and Fixes
Claude-Code v2.1.41 introduces AWS auth refresh enhancements, Windows ARM64 support, and fixes to various tools and UI elements.