AI 编程 3.0 · 值得看 2026-11-19 · GitHub

Claude Code v2.1.329: hooks trust dialog, /tasks consolidation, MCP server error row

Claude Code 2.1.329:加 hooks 声明位置的信任对话框;托管设置 hooks 加载失败会在非交互宿主给出会话内警告;/tasks 收齐 scheduled tasks/loopgoal 与 forks运维补 /mcp 的 Server message 行(MCP 拒连的 JSON-RPC 错误)与 /status 的 Marketplace auto-update 行;Code Mode 可与 OpenTelemetry 共存修复 ~/.claude.json 重置Keychain 登出/terminal-setup 损坏 VS Code 配置

打开原文回到归档

Claude Code v2.1.329: hooks trust dialog, /tasks consolidation, MCP server error row

  • Source: https://github.com/anthropics/claude-code/releases/tag/v2.1.329
  • Author: anthropics
  • Published: 2026-11-19
  • Intake: 2026-11-20 evening (daily-intake-evening, openclaw)
  • Evidence: /Users/gracker/Library/Mobile Documents/iCloud~md~obsidian/Documents/Obsidian/Hermes 定时任务/X-每日简报/2026-11-19-X-Hot-Brief_GeminiMacCU-ToolRetrieval-ClaudeAuto.md

中文摘要

Claude Code 2.1.329:加 hooks 声明位置的信任对话框;托管设置 hooks 加载失败会在非交互宿主给出会话内警告;/tasks 收齐 scheduled tasks、/loop、goal 与 forks。运维补 /mcp 的 Server message 行(MCP 拒连的 JSON-RPC 错误)与 /status 的 Marketplace auto-update 行;Code Mode 可与 OpenTelemetry 共存。修复 ~/.claude.json 重置、Keychain 登出、/terminal-setup 损坏 VS Code 配置。

English Summary

Claude Code v2.1.329 (published Nov 19) adds a trust dialog warning where a folder's hooks are declared, in-conversation warnings in non-interactive hosts when hooks in managed settings fail to load, and consolidates this session's scheduled tasks, /loop wakeups, goal and forks into /tasks. Operations gain a "Server message" row in /mcp showing the JSON-RPC error of a remote HTTP MCP server that refuses connection and a "Marketplace auto-update" row in /status; Code Mode now works with OpenTelemetry events and metrics enabled. Fixes cover ~/.claude.json resets, repeated macOS Keychain sign-outs, and /terminal-setup corrupting VS Code settings.

Release notes (excerpts)

  • - Added a trust dialog warning that says where a folder's hooks are declared
  • - Added a warning in the conversation, in Claude Desktop and other non-interactive hosts, when hooks in managed settings fail to load
  • - Added this session's scheduled tasks, /loop wakeups, the goal and this conversation's forks to /tasks; x stops one after asking
  • - Added a "Server message" row to a server's page in /mcp that shows the JSON-RPC error message of a remote HTTP MCP server that refuses the connection
  • - Added a "Marketplace auto-update" row to /status that names managed marketplaces that get no automatic updates, and why
  • - Added support for turning on Code Mode while OpenTelemetry events and metrics are enabled; each tool call the code makes sends its events; tracing still keeps it off
  • - Fixed an empty, frozen screen after approving managed settings while the --resume picker, the trust dialog or another set-up screen was waiting
  • - Fixed Code Mode hiding a script's finished edits and the stopped command after Esc, and losing them on exit
  • - Fixed a runaway loop in Code Mode filling the machine's memory; it is now stopped at a limit
  • - Fixed Code Mode keeping in memory every large text file that code read, and memory growing each time a background subagent was woken
  • - Fixed Code Mode stopping a script at its ten-minute limit while an MCP form, an MCP link prompt or a prompt that always asks was waiting for an answer
  • - Fixed Code Mode scripts receiving a "moved to the background" message as data from most MCP calls over two minutes: the script now waits up to ten minutes, then gets an error
  • - Fixed mods that list only some tools silently turning Code Mode off; such a mod no longer keeps it off, so use managed settings for that
  • - Fixed Code Mode ignoring an MCP tool's request to end the turn when the tool was called from a script that Claude waits for
  • - Fixed a Code Mode script's let x; keeping the value that an earlier script gave x
  • - Fixed a Code Mode script's call with no argument failing with a missing-parameter error on tools that need none
  • - Fixed Code Mode scripts losing access to tools through tools in sessions with more than 4,096 tools
  • - Improved Code Mode: the terminal freezes for far less time after a script makes thousands of tool calls
  • - Improved Code Mode: after starting a subagent, Claude now gets the same guidance on waiting as outside Code Mode
  • - Changed Code Mode so a PreToolUse hook that errors no longer refuses a script's tool call, as outside Code Mode; set "onFailure": "block" on a command, HTTP or MCP tool hook that must refuse
  • - Changed Code Mode to refuse a script's read of a line range over 256 MiB, which could use gigabytes of memory, and fixed reads of very long lines timing out
  • - Changed Code Mode to also start when telemetry, nonessential traffic or feature flags are turned off; an administrator can keep it off in managed settings
  • - Changed Code Mode to run a script that declares its own log, preview or sleep, which it used to refuse
  • - Changed the /tasks header and the footer's background count to one number covering shells, monitors, MCP calls, agents, workflows and scheduled tasks