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

Claude 4.6 Opus Can Reproduce Linux's list.h From Minimal Input
A user demonstrated that Claude 4.6 Opus can generate a near-identical copy of Linux's list.h header file when given the first 43 lines as input with temperature set to 0, raising questions about GPL licensing implications for AI models trained on open-source code.

Claude VS Code Extension Broken on Windows After Hardcoded Linux Path in Recent Update
Anthropic's recent VS Code extension update hardcodes a Linux path, breaking the extension on Windows. Downgrading to the previous version restores functionality.

BMW Dealership Revokes Buyback Offer After AI Chatbot Mistake, Precedent from Air Canada Case
A Toronto BMW dealership revoked a buyback offer generated by its AI chatbot, sparking legal questions. The Air Canada precedent holds companies liable for chatbot errors.

Georgia Court Order Contains AI-Hallucinated Legal Citations
A Georgia Supreme Court appeal revealed a trial court order contained at least five citations to nonexistent cases and five more to cases that don't support their cited propositions, with the prosecutor's proposed order containing the same errors.