Claude Code v2.1.161: Enhanced Usage Metrics, Tool Call Fixes, and UI Improvements
Claude Code version 2.1.161 incorporates `OTEL_RESOURCE_ATTRIBUTES` into metric datapoints for granular usage analysis, and enhances parallel tool call reliability by preventing failed Bash commands from canceling other operations. This patch also introduces UI refinements, improves handling of unused connectors, and addresses several regressions and bugs affecting sessions, policies, and terminal rendering for a smoother developer experience. The update is available now for all users.
- →Include OTEL_RESOURCE_ATTRIBUTES in metric datapoints
- →Improve display of fanned-out 'claude agents' tasks
- →Collapse unused 'claude.ai' connectors
- →Independent tool call results for parallel operations
- →Linux clipboard improvements for fullscreen mode
Features (1) ›
- Include OTEL_RESOURCE_ATTRIBUTES in metric datapoints
Metric datapoints now include `OTEL_RESOURCE_ATTRIBUTES` as labels, enabling usage metrics to be sliced by custom dimensions such as team or repository.
Enhancements (4) ›
- Improve display of fanned-out 'claude agents' tasks
Rows for 'claude agents' now display 'done/total' counts before detailed output when tasks are fanned out, and a peek function shows the longest-running item.
- Collapse unused 'claude.ai' connectors
The `/mcp` command now hides 'claude.ai' connectors that have never been signed into, behind a 'Show unused connectors' row.
- Independent tool call results for parallel operations
In parallel tool calls, a failed Bash command no longer cancels other calls in the same batch; each tool now returns its result independently.
- Linux clipboard improvements for fullscreen mode
Fullscreen mode on Linux now uses `wl-copy`/`xclip`/`xsel` when available, copies to both clipboard and PRIMARY selection, and displays the correct key hint for native selection.
Fixes (1) ›
- Fix motion reduction setting for UI elements
The `/effort` dialog, workflow animations, and prompt keyword shimmer now correctly honor the 'Reduce motion' setting.
https://github.com/anthropics/claude-code/releases/tag/v2.1.161