---
title: "Claude Code v2.1.193 发布：新增自动模式分类、OpenTelemetry 日志与文件路径自动补全"
source: "Claude Code：GitHub Releases（RSS）"
source_tier: "t1_5"
url: "https://github.com/anthropics/claude-code/releases/tag/v2.1.193"
permalink: "https://feed.astralor.com/items/itm_b8e39c432ddac758438f0d3b"
published: "2026-06-25T21:45:57.000Z"
score: 66
channel: "ai"
tags: ["Anthropic","Claude Code","OpenTelemetry","自动模式分类"]
---

# Claude Code v2.1.193 发布：新增自动模式分类、OpenTelemetry 日志与文件路径自动补全

## 速览

Claude Code v2.1.193 更新引入了多项关键改进：新增 autoMode.classifyAllShell 设置，将所有 Shell 命令路由至自动模式分类器；增加 OpenTelemetry 日志事件以记录模型响应文本，需通过环境变量控制；在 Bash 模式下实现实时文件路径自动补全；改进 MCP 服务器认证提示和后台任务内存压力回收机制。同时修复了 /model 显示空白、后台任务误取消等问题，并优化了后台代理的持续运行能力。

## 关键点

- 新增 autoMode.classifyAllShell 设置，可对所有 Shell 命令启用自动模式分类，提升安全性
- 引入 claude_code.assistant_response OpenTelemetry 日志事件，支持响应内容追踪，通过环境变量精细控制
- Bash 模式下实现实时文件路径自动补全，提升交互效率
- 改进后台代理运行逻辑：不再要求结束响应，可继续处理其他任务

## 全文

What's changed Added autoMode.classifyAllShell setting to route all Bash/PowerShell commands through the auto-mode classifier instead of only arbitrary-code-execution patterns Added auto-mode denial reasons to the transcript, the denial toast, and /permissions recent denials Added claude_code.assistant_response OpenTelemetry log event containing the model's response text. Redacted unless OTEL_LOG_ASSISTANT_RESPONSES=1; when that var is unset it follows OTEL_LOG_USER_PROMPTS, so deployments that already log prompt content will start receiving response content on upgrade — set OTEL_LOG_ASSISTANT_RESPONSES=0 to keep prompts-only. Added live file path autocomplete to bash mode (!) Added a startup notice when MCP servers need authentication, pointing at /mcp Added automatic memory-pressure reaping for idle background shell commands (disable with CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP=1) Fixed /model and other client-data-gated UI showing stale/empty state immediately after /login Fixed backgrounding (←←) spuriously cancelling with "N background tasks would be abandoned" when all running tasks carry over to the new session Fixed pinned background agents being re-prompted to "Continue from where you left off" after every auto-update Fixed backgrounding the main turn spawning a phantom "general-purpose (resumed)" subagent that re-ran the main conversation Fixed agent panel hiding sibling agents when viewing a subagent Improved background agents: the launch result no longer instructs Claude to "end your response" — it keeps working on other tasks while the agent runs Improved MCP headersHelper auth: the helper now re-runs and reconnects automatically when a tool call returns 401/403 Improved plugin auto-rename: marketplace renames maps are now followed automatically, updating your settings to the new name Improved /add-dir message when the directory is already a working directory

---

引用前请核对原文;本文由星际流动整理:https://feed.astralor.com/items/itm_b8e39c432ddac758438f0d3b
