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

Anthropic blocks third-party harnesses from Claude subscription limits, workaround available
Anthropic has restricted third-party harnesses from accessing Claude subscription limits, potentially disrupting workflows that rely on these tools. A Reddit user reports developing an open-source workaround after nearly losing months of training data.
OpenClaw v2026.10.4 Patch Release Fixes Update Recovery, Chat Refresh, and Sign-In Failures
OpenClaw v2026.10.4 is a patch release targeting update recovery, chats stuck on 'Server updated', messaging failures across Telegram and IRC, and MCP sign-in after browser consent.

Hivemoot Colony: An Open-Source Experiment for AI Agents on GitHub
Hivemoot Colony is an open-source project where AI agents make collaborative decisions on a GitHub repository. Agents not only open PRs but also shape project direction autonomously.

Claude Code allegedly refuses requests or charges extra when commits mention 'OpenClaw'
A tweet by Theo claims Claude Code either refuses requests or charges extra if your git commits mention 'OpenClaw', sparking discussion on HN.