最近 12 个版本
修复 Bash 工具的退出码异常问题
亮点
- 修复了 Bash 工具在某些用户环境下每次返回退出码 127 的 Bug,恢复正常命令执行状态判断
展开官方原文 ↓
## 2.1.148 - Fixed the Bash tool returning exit code 127 on every command for some users (a regression introduced in 2.1.147)
重构代码审查,改进后台会话
亮点
- `/code-review` 按难度报告错误,支持 `--comment` 发 PR 评论
- Pinned 后台会话空闲保活、更新重启、内存优先释放
- 自动更新器重试网络故障并报具体 OS 错误码
- 修复 20+ bug:登录限制、Shell 输出、MCP 分页等
破坏性变化
- 重命名 `/simplify` 为 `/code-review`,清理修复行为移除
展开官方原文 ↓
## 2.1.147 - Pinned background sessions (`Ctrl+T` in `claude agents`) now stay alive when idle, are restarted in place to apply Claude Code updates, and are shed under memory pressure only after non-pinned sessions - Renamed `/simplify` to `/code-review`. It now reports correctness bugs at a chosen effort level (e.g., `/code-review high`); pass `--comment` to post findings as inline GitHub PR comments. The old cleanup-and-fix behavior has been removed - Improved auto-updater: retries transient network failures, reports specific error categories and OS error codes on failure, and shows the current version when an update fails - Improved diff rendering performance for large file edits - Prompt history no longer records consecutive duplicate entries — recalling a prompt with arrow-up and submitting it again won't add another copy - Fixed enterprise login restrictions (`forceLoginOrgUUID` and `forceLoginMethod` managed-settings) not being enforced against third-party-provider and API-key sessions - Fixed `&` in `!` command output displaying as `&`, which broke copy-pasting URLs from commands like `gcloud auth login` on headless machines - Fixed unknown slash commands silently doing nothing in headless/SDK mode — they now show an error message - Fixed `/help` rendering a broken tab header and showing only one command per page on small terminals when not in fullscreen mode - Fixed shell snapshot dropping user functions whose names start with a single underscore, which broke aliases referencing them - Fixed plugin agents that declare multiple `Agent(...)` types in `tools:` frontmatter dropping all but the last entry - Fixed hook `if` conditions like `PowerShell(git push*)` never matching — only `PowerShell(*)` worked - Fixed PowerShell tool dropping output for commands that rely on the default formatter - Fixed: on Windows, "Yes, and don't ask again" for a PowerShell script invocation now writes a rule that actually matches on subsequent runs - Fixed PowerShell tool failing on Windows with exit code 1 when `pwsh` is installed via winget or the Microsoft Store - Fixed `/effort` opening with the slider on the wrong level — it now starts at your current effort - Fixed paginating MCP servers dropping resources, templates, and prompts past page 1 - Fixed full-screen strobing in attached background sessions on Windows Terminal while Claude is streaming - Fixed: on Windows, removing a background-job worktree no longer follows NTFS junctions into the main repo - Fixed `/background` refusing sessions whose only typed input was a skill or custom slash command - Fixed auto mode suppressing `AskUserQuestion` when the user or a skill explicitly relies on it; the auto-mode classifier now sees the user's answers as intent signal - Fixed `/theme` "New custom theme" and color editor dialogs not responding to Esc - Fixed an uncaught exception at the end of streaming sessions when running via the Agent SDK - Fixed a rare hang when waiting for scroll to settle on Windows - Fixed stale and doubled rows in the agent view list on Windows when background session results contain wide (CJK) characters - Fixed pasted text being delivered to agents as an unreadable `[Pasted text #N]` placeholder instead of the actual content - Fixed plugin component counts in `claude plugin details` and `/plugin` being doubled when a plugin's manifest listed paths overlapping its default directories - Fixed backgrounded sessions re-prompting for tool permissions you already granted with "don't ask again" - Fixed GNOME Terminal right-click and middle-click paste not inserting text - Fixed `CLAUDE_CODE_SUBAGENT_MODEL` not applying to teammate processes spawned by agent teams - Fixed slash commands followed by a tab or newline being treated as an unknown command - Fixed several spacing and layout glitches in the `/plugin`, `/status`, `/mobile`, `/sandbox`, and `/permissions` menus - Fixed stripped images prompting the model to repeatedly re-read media that was no longer present
增强 Agent 工具和插件发现
亮点
- `claude agents --json` 输出用于脚本和状态栏集成
- `/plugin` 显示插件命令、Agent、Skill、Hook、MCP/LSP 服务
- Slash command 补全在全屏模式支持鼠标悬停点击
- 修复 MCP 分页丢数据、权限提示绕过等 15+ bug
展开官方原文 ↓
## 2.1.145 - Added `claude agents --json` to list live Claude sessions as JSON for scripting (tmux-resurrect, status bars, session pickers) - Added `agent_id` and `parent_agent_id` attributes to `claude_code.tool` OTEL spans, and fixed trace parenting so background subagent spans nest under the dispatching Agent tool span - Status line JSON input now includes GitHub repo and PR information when detected - `/plugin` Discover and Browse screens now show a plugin's commands, agents, skills, hooks, and MCP/LSP servers before installation - `claude agents` terminal tab title now shows the awaiting-input count so an alt-tabbed window tells you when an agent needs attention - Slash command and @-mention suggestion list now supports mouse hover and click in fullscreen mode - Stop and SubagentStop hook input now includes `background_tasks` and `session_crons` fields - Fixed a permission-prompt bypass where bare variable assignments to non-allowlisted environment variables in Bash commands were auto-approved - Fixed MCP prompt slash commands showing raw server validation errors when a required argument is omitted — the error now names the missing argument and shows expected usage - Fixed the spinner and elapsed-time display freezing until a keypress after the terminal was resized or refocused - Fixed the cross-project resume hint failing in default Windows PowerShell 5.1 — Windows now uses `;` as the command separator - Fixed voice push-to-talk not working in the agent view's reply pane - Fixed task lists rendering in random order when several tasks are created at once - Fixed stale "Failed to install Anthropic marketplace" banner showing when the marketplace is already installed - Fixed the PR badge in the footer not updating immediately after `gh pr create` and other PR-state-changing commands run in-session - Fixed Agent Teams teammates with non-ASCII names failing every API call due to invalid header encoding - Fixed `/review` using a deprecated `projectCards` GraphQL query that errored on repos with Classic Projects - Fixed `claude plugin validate` not flagging `skills:` entries that point at a file instead of a directory — the error now suggests the parent directory - Fixed an infinite loop where a skill using `context: fork` could repeatedly re-invoke itself instead of running - Improved the Read tool to return a truncated first page with a "PARTIAL view" notice instead of a hard error when a whole-file read exceeds the token limit
优化后台会话和启动性能
亮点
- `/resume` 支持恢复后台会话
- `/model` 改为仅改当前会话,d 键为新会话设默认
- 启动优化:API 调用超时从 75s 减为 15s
- 修复 macOS FD 保护、Terminal 渲染、MCP 列表等 20+ bug
破坏性变化
- `/model` 现仅改当前会话,新会话需按 d 键单独配置
展开官方原文 ↓
## 2.1.144 - Added `/resume` support for background sessions — sessions started via `claude --bg` or agent view now appear alongside interactive ones, marked with `bg` - Added elapsed duration to background subagent completion notifications (e.g. "Agent completed · 3h 2m 5s") - The `/plugin` browse and discover panes now show when a plugin was last updated - `/model` now changes the model for the current session only; press `d` in the model picker to set a default for new sessions - Renamed "extra usage" to "usage credits" across CLI copy; `/extra-usage` is now `/usage-credits` (old name still works) - Fixed startup hanging up to 75s when `api.anthropic.com` is unreachable (captive portal, firewall, VPN issues) — side-channel API calls now time out after 15s - Fixed garbled terminal output after a missed window-resize event (e.g. dragging a VS Code split-pane divider) — now self-heals on the next frame instead of requiring Ctrl+L - Fixed progressive terminal display corruption (stale/garbled glyphs) that could appear in very long sessions and only cleared on terminal resize or restart - Reduced terminal rendering glitches in VS Code by reducing spinner animation color count - Fixed macOS background sessions crashing with "exit 1 before init" when the project lives under a Full Disk Access-protected folder (regression in 2.1.143) - Fixed an unrecoverable conversation when reading a file whose image extension doesn't match its contents (e.g. HTML saved as .png) — now falls back to text - Fewer spurious tool errors during search: `head`/`tail` file views now satisfy the read-before-edit check, and a "no matches" result (exit code 1) from `egrep`, `fgrep`, `git grep`, or `git diff` is no longer reported as a command failure - Fixed `/branch` failing with "No conversation to branch" after entering a worktree or in some background sessions - Fixed pressing Escape in the AskUserQuestion notes field aborting the turn instead of returning to answer selection - Fixed model selection not applying when changed via the IDE model picker or `applyFlagSettings` after startup - Resumed sessions now keep the model they were using instead of picking up another session's `/model` choice - Fixed Bedrock and Vertex users unable to select "Opus (1M context)" from the `/model` picker (regression in v2.1.129) - Fixed remote-session login failing with "Can't access this organization" for users with `forceLoginMethod` and `forceLoginOrgUUID` set - Fixed MCP servers with paginated `tools/list` responses only returning the first page, silently dropping tools - Fixed MCP images with unsupported MIME types (e.g. SVG) breaking the conversation — now saved to disk and referenced in the tool result - Fixed file descriptor exhaustion when a build runs inside a skill directory — non-`.md` files no longer trigger skill reloads - Fixed session title being generated from plugin monitor output instead of the user's first prompt - Fixed Skill tool failing with permission error in headless mode (regression in v2.1.141) - Fixed plugins enabled in your own settings showing "not cached" errors after first load on a fresh machine; plugins enabled only by a project's `.claude/settings.json` now show an actionable `claude plugin install` hint - Fixed `claude mcp list` silently reporting no servers when `.mcp.json` can't be parsed (e.g. using VS Code's `"servers"` key instead of `"mcpServers"`) — now shows configuration errors - Fixed background side-queries on custom `ANTHROPIC_BASE_URL` setups and Bedrock Mantle not using Haiku — now falls back correctly when a first-party API key is configured or no Haiku model is set - Fixed scrolling in attached background sessions on Windows — PgUp/PgDn, mouse wheel, and Ctrl+O transcript navigation now work - Fixed a crash when closing the terminal while attached to a background session - Fixed on Windows, pressing ← in `claude agents` leaving the list unresponsive to keyboard input - Fixed ghost characters at the left edge when switching panes in Agent View on Windows Terminal with CJK content - `/bg` and `←`-detach now preserve directories added via `/add-dir` - Fixed Edit/Write refusing with "background session hasn't isolated its changes yet" right after detaching a session that was already editing in place - Fixed `claude respawn <id>` on a stopped background session showing "stopped" instead of running - Fixed `/resume` picker not showing sessions forked from a background session - Fixed opening a session from `claude agents` or running `claude logs <id>` hanging when the background service is unresponsive — now times out after 10s with a recovery hint - Fixed background Bash tasks spawned by subagents staying "Running" in SDK task panels after the process exits - Fixed completed or stopped background sessions briefly failing to wake being permanently marked as a startup crash - Fixed markdown links in `claude agents` attached sessions rendering as plain text instead of clickable hyperlinks - Fixed custom `spinnerVerbs` applying to the post-turn duration message — past-tense built-ins like "Worked for 5s" are restored there - `claude agents` / `--bg` rejection messages now name the specific gate (non-TTY, env var, or setting) instead of a generic message - `claude --bg --name <label>` now echoes the name in the post-spawn confirmation - `claude agents`: renaming a background session with Ctrl+R now updates the attached session's banner immediately - Background session worktree isolation guard now applies for non-git VCS users with `WorktreeCreate` hooks configured - Plugin marketplace add/update now respects `CLAUDE_CODE_PLUGIN_PREFER_HTTPS` - `/plugin` now returns to the Installed list after enabling, disabling, or uninstalling a plugin - `/doctor` now shows an exec-form example when a command hook is missing the `command` field - Skill-listing truncation is no longer shown as a startup notification — run `/doctor` for the full breakdown - Improved recovery from rare pre-response stream stalls — now retries streaming once instead of falling back to a slower non-streaming request - Improved SDK/headless MCP startup: pre-wait now overlaps startup instead of blocking before the first turn (up to 2s faster with slow MCP servers) - The post-survey follow-up hint now appears after every non-dismiss survey response with context-aware copy, making it easier to share more detail via /feedback.
增强插件管理和后台会话
亮点
- 插件依赖强制:禁用检查依赖、启用时自动启用传递依赖
- `worktree.bgIsolation: "none"` 让后台会话直接编辑工作副本
- PowerShell 默认 `-ExecutionPolicy Bypass`,可通过环境变量退出
- 修复凭证 JSON 损坏、粘贴失效、hook 循环等 15+ bug
展开官方原文 ↓
## 2.1.143 - Added plugin dependency enforcement: `claude plugin disable` now refuses when another enabled plugin depends on the target (with a copy-pasteable disable-chain hint), and `claude plugin enable` force-enables transitive dependencies - Added projected context cost (per-turn and per-invocation token estimates) to the `/plugin` marketplace browse pane - Added `worktree.bgIsolation: "none"` setting to let background sessions edit the working copy directly without `EnterWorktree`, for repos where worktrees are impractical - PowerShell tool now passes `-ExecutionPolicy Bypass`. Opt out with `CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY=1` - Background sessions now preserve the model and effort level you set after waking from idle - Shift+Tab in attached agent sessions now includes auto mode in the cycle - Fixed a corrupt `.credentials.json` with a non-array `scopes` value hanging the CLI on startup or silently aborting OAuth token refresh - Fixed right-click paste in `claude agents` on Windows Terminal and WSL - Fixed stop hooks that block repeatedly looping forever — the turn now ends with a warning after 8 consecutive blocks (override via `CLAUDE_CODE_STOP_HOOK_BLOCK_CAP`) - Fixed Esc/Ctrl+C not cancelling a pending `/loop` wakeup while Claude is idle between iterations - Fixed `/goal` evaluator firing while background shells or delegated subagents are still running - Fixed `NO_COLOR`/`FORCE_COLOR` in settings.json `env` stripping Claude Code's own UI colors — they now apply to subprocesses only - Fixed agent view spawning repeated PowerShell processes on Windows when listing sessions - Fixed `/bg` without a prompt sending "continue" to the forked session — the fork now waits for input - Fixed `--agent <name>` not finding plugin-contributed agents without the `plugin:` prefix - Fixed deleting a session from agent view not removing its transcript file - Fixed stale-fragment rendering when scrolling in attached background sessions on Windows Terminal - Fixed background agents false-positive worker-stall detection storm after host sleep or macOS App Nap - Fixed 5xx error messages pointing at status.claude.com instead of naming the configured gateway or cloud provider - The PowerShell tool is now enabled by default on Windows for Bedrock, Vertex, and Foundry users. Opt out with `CLAUDE_CODE_USE_POWERSHELL_TOOL=0`. - `claude agents` now accepts `--add-dir`, `--settings`, `--mcp-config`, and `--plugin-dir` and applies them to the dashboard and to background sessions dispatched from it - `claude agents` accepts `--permission-mode`, `--model`, `--effort`, and `--dangerously-skip-permissions` to set defaults for sessions dispatched from the view - `claude --bg --dangerously-skip-permissions` now persists across retire→wake - Fixed background sessions silently capturing IDE file references into the warm spare's input, which caused the reference to be prepended to the next prompt dispatched from `claude agents` - Worktree cleanup no longer falls back to `rm -rf` when `git worktree remove` fails, preventing loss of gitignored or in-progress files - Fixed background-job sessions on macOS getting "Operation not permitted" errors when reading files under `~/Documents`, `~/Desktop`, or `~/Downloads`, even with Full Disk Access granted. - `/bg` now preserves `--mcp-config`, `--settings`, `--add-dir`, `--plugin-dir`, and `--strict-mcp-config`, so backgrounded sessions keep their MCP servers and settings across respawn. - Background sessions launched from `claude agents` now honor `permissions.defaultMode` from settings.json (was previously overridden to auto mode) - Fixed: on Windows, pressing ← in `claude agents` while a response was streaming could leave the agents list unresponsive to all input - `/bg` and `←`-detach now preserve `--fallback-model`, so backgrounded workers degrade to the fallback model on overload instead of hard-failing. - `/bg` and `←`-detach now preserve `--allow-dangerously-skip-permissions`, so the forked worker keeps bypass-permissions available in its Shift+Tab cycle. - Fixed: background daemon spawn now falls back to the running binary when the `~/.local/bin/claude` launcher is missing or non-executable - Fixed `claude agents --allow-dangerously-skip-permissions` defaulting dispatched sessions to bypass mode instead of making it available in the permission cycle
Fast mode 升级至 Opus 4.7
亮点
- Fast mode 默认使用 Opus 4.7(设置 CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE=1 可回滚到 Opus 4.6)
- claude agents 新增 --add-dir、--settings、--mcp-config 等标志配置后台会话
- 修复 MCP 工具超时、worktree 识别、后台会话消失等关键问题
破坏性变化
- Fast mode 默认模型从 Opus 4.6 升级为 Opus 4.7
展开官方原文 ↓
## 2.1.142 - Added new `claude agents` flags: `--add-dir`, `--settings`, `--mcp-config`, `--plugin-dir`, `--permission-mode`, `--model`, `--effort`, and `--dangerously-skip-permissions` to configure dispatched background sessions - Fast mode now uses Opus 4.7 by default (previously Opus 4.6). Set `CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE=1` to pin fast mode to Opus 4.6 - Plugins with a root-level `SKILL.md` and no `skills/` subdirectory are now surfaced as a skill - The `/plugin` details pane and `claude plugin details` now show LSP servers a plugin provides - `/web-setup` warns before replacing an existing GitHub App connection - Fixed `MCP_TOOL_TIMEOUT` not raising the per-request fetch timeout for remote HTTP and SSE MCP servers, which capped tool calls at 60 seconds regardless of the configured value - Fixed background sessions not recognizing pre-existing git worktrees, blocking Edit while EnterWorktree refused to create a duplicate - Fixed background sessions disappearing and daemon reconnect failing after macOS sleep/wake — the daemon now detects clock jumps instead of treating them as elapsed idle time - Fixed daemon not exiting cleanly after the binary is upgraded (e.g. `brew upgrade`), causing dispatched agents to crash-loop on the deleted path - Fixed background agents crash-looping when the Claude-in-Chrome extension is connected without a shared tab - Fixed clicking links in an attached `claude agents` session — the background worker's headless browser shim no longer applies while attached - Fixed `claude agents` "v to open in editor" using the daemon's default editor instead of your shell's `$EDITOR`/`$VISUAL` - Fixed `claude agents` deadlocking on Windows with network-drive working directories; Ctrl+C now works during startup - Fixed background-color bleed when attaching to a `claude agents` session from Apple Terminal or other 256-color-only terminals - Fixed `claude --bg --dangerously-skip-permissions` not persisting across retire/wake - Fixed session titles being derived from the URL when the first message is a link - Fixed redundant `set_model` requests from remote clients injecting duplicate `/model` breadcrumbs into the transcript - Fixed plugins using `skills: ["./"]` showing a false "path escapes plugin directory" error - Fixed plugin cache cleanup deleting the active plugin version directory when no installation metadata is present - Fixed `/plugin` browse pane showing "0 installs" for newly published plugins - Fixed plugin advisories not naming every `plugin.json` key that shadows a default folder - Improved reactive compaction: the first summarize attempt now seeds from the original request's overflow size, avoiding a wasted near-full-context retry - Improved hook configuration error: configuring a prompt- or agent-type hook for `SessionStart`/`Setup`/`SubagentStart` now shows a clear "use a command-type hook instead" error - Removed stale `/model claude-sonnet-4-20250514` suggestion from Usage Policy refusal messages
Hook 增强和后台代理改进
亮点
- Hook 新增 terminalSequence 字段支持发送桌面通知和窗口标题
- /feedback 可包含过去 24 小时或 7 天内的会话便于问题反馈
- 后台代理现在保留当前权限模式而非恢复到默认设置
- 修复了权限提示、MCP 服务器和后台会话的多个问题
展开官方原文 ↓
## 2.1.141
- Added `terminalSequence` field to hook JSON output so hooks can emit desktop notifications, window titles, and bells without a controlling terminal
- Added `CLAUDE_CODE_PLUGIN_PREFER_HTTPS` to clone GitHub plugin sources over HTTPS instead of SSH, for environments without a GitHub SSH key
- Added `ANTHROPIC_WORKSPACE_ID` environment variable for workload identity federation — scopes the minted token to a specific workspace when the federation rule covers more than one
- Added `claude agents --cwd <path>` to scope the session list to a directory
- `/feedback` can now include recent sessions (last 24 hours or 7 days) for issues spanning more than the current session
- Rewind menu: added "Summarize up to here" to compress earlier context while keeping recent turns intact
- Auto mode permission dialog now explains when a `permissions.ask` rule caused the prompt
- Restored the "view diff in your IDE" option on file-edit permission prompts when an IDE is connected
- Background agents launched via `/bg` or `←←` now preserve the current permission mode instead of reverting to default
- `claude agents`: agents that finish work but leave a background shell running now move to Completed instead of staying under Working
- Improved spinner feedback during long thinking periods — the spinner now warms to amber after 10 seconds to signal Claude is still working
- Improved plugin menu navigation: `→`/Tab switch tabs, `↑` moves to the tab strip, and tab headers and search box are clickable in fullscreen mode
- Fixed background side-queries sending an unavailable Haiku model ID on Bedrock/Vertex/Foundry/gateway when no `ANTHROPIC_SMALL_FAST_MODEL` override is set — now falls back to the main-loop model
- Fixed `claude daemon status` and `/doctor` on Windows throwing when the daemon pipe key file is locked or unreadable — now shows the underlying error instead of an opaque failure
- Fixed `claude agents` showing the agent-type list instead of the dashboard when launched through a wrapper that adds flags
- Fixed `claude agents` opening a crashed session firing redundant dispatches when the working directory was deleted
- Fixed background jobs on a custom `ANTHROPIC_BASE_URL` gateway not getting auto-named — the namer now uses the main model when no Haiku model is configured
- Fixed `/model` in one session silently changing the autocompact threshold in other concurrent sessions
- Fixed switching permission mode while a tool-permission prompt is open not auto-dismissing the prompt when the new setting permits the tool
- Fixed pressing Enter while a permission/dialog prompt is open also submitting text in the input box
- Fixed hooks receiving a non-existent `transcript_path` after `EnterWorktree` switches the working directory
- Fixed markdown tables with cell wrapping falling back to the vertical key-value layout instead of rendering as a bordered grid (regression in 2.1.136)
- Fixed cancelled prompts being removed from Up-arrow history when auto-restored into the input box, avoiding duplicate entries
- Fixed prompts cancelled with Ctrl+C/Esc before any response being dropped from Up-arrow history
- Fixed Ctrl+C not interrupting a running turn while in vim INSERT/VISUAL mode
- Fixed alternative `chat:submit` keybindings (e.g. `meta+enter`, `ctrl+enter`) not working when `enter` is rebound to `chat:newline`
- Fixed prompt suggestions being silently disabled when an output style was configured
- Fixed `spinnerVerbs` setting not being honored in turn-completion messages
- Fixed AskUserQuestion popup hiding the last line of preceding chat content
- Fixed Web Search status showing "Did 0 searches" when searches returned errors
- Fixed multi-line statusline output dropping or corrupting rows when any line exceeds terminal width
- Fixed light-ansi theme using invisible white for diff context lines on light backgrounds — now uses black
- Fixed error overlay dumping minified bundle source that hid the original error message
- Fixed pressing Enter after typing a feedback survey rating digit submitting it as a chat message instead of the rating
- Fixed pressing `x` on a selected subagent in the agent panel typing into the prompt instead of stopping the agent
- Fixed session title being derived from plugin monitor notifications before the user's first prompt
- Fixed "Allowed by PermissionRequest hook" repeating once per tool call under a collapsed read/search group
- Fixed `/tui` silently dropping running background shells and subagents — now refuses and asks to wait for them to finish
- Fixed welcome banner showing "API Usage Billing" on Bedrock, Vertex, Foundry, and other third-party providers — now shows the provider name
- Fixed `/mcp` server list not keeping the focused server visible in short terminals in fullscreen mode
- Fixed redaction in `/feedback` bundles producing invalid JSON for quoted values like session IDs
- Fixed desktop and third-party provider sessions incorrectly inheriting `apiKeyHelper`/`ANTHROPIC_AUTH_TOKEN` from host managed-settings
- Fixed early analytics events being silently dropped when fired before logger initialization
- Fixed `claude plugin install` failing for plugins whose marketplace `ref` no longer exists upstream when a `sha` is also pinned
- Fixed plugin details pane showing 0 MCP servers for plugins that declare them via `.mcp.json`
- Fixed plugin MCP servers with unset config variables showing a generic connection failure instead of a "config issue" message with a fix-it hint; malformed `.mcp.json` entries no longer drop other MCP servers
- Fixed MCP server configs using POSIX shell parameter expansions (e.g. `${var%pattern}`) being incorrectly flagged as missing environment variables
- Fixed MCP HTTP/SSE servers returning 403 on connect showing as "failed" instead of "needs auth"
- Fixed remote MCP servers disconnecting unnecessarily when the optional server-events stream failed to reconnect — tool calls continue over POST
- Fixed Remote Control MCP connectors all failing with 401 when the worker session token rotated mid-session
- Fixed Remote Control automatically re-enrolling a trusted device when the server rejects a stale token, instead of looping through `/login`
- Fixed a race where early OTel spans could be silently dropped in SDK/headless mode with beta tracing enabled
- Fixed custom `voice:pushToTalk` keybindings and `"space": null` unbinds being silently ignored
- Fixed Windows Alt+V image paste reporting "no image found" when the clipboard contains a screenshot
- Fixed SDK "Claude Code native binary not found" on Linux when both glibc and musl platform packages are installed
- Bedrock: `awsCredentialExport` now always runs when configured instead of being skipped when ambient AWS credentials resolve, fixing auth for cross-account access
- [VSCode] Fixed in-chat mic showing no feedback when the microphone produced only silence — now shows "No audio detected"
- [VSCode] Voice mode: the WSL error now suggests installing `sox libsox-fmt-pulse` for WSLg users
- `claude agents`: launching a session no longer fails when the pre-warmed background worker is unhealthy — now falls back to a fresh launch
- `claude agents` no longer shows empty placeholder sessions left over from backgrounding a fresh REPL, and shows onboarding text when entered via ← with no other agents
- Empty idle background sessions left over from `←` are now automatically retired by the daemon after 5 minutesAgent 工具和可靠性改进
亮点
- Agent tool subagent_type 现在接受不区分大小写和分隔符的值
- 修复 /goal 命令悬挂导致无法获得反馈的问题
- 改进后台服务启动时的错误处理和恢复机制
展开官方原文 ↓
## 2.1.140 - Improved Agent tool `subagent_type` matching to accept case- and separator-insensitive values (e.g. `"Code Reviewer"` resolves to `code-reviewer`) - Updated agent color palette - Fixed `/goal` silently hanging when `disableAllHooks` or `allowManagedHooksOnly` is set — now shows a clear message instead of an indicator that never resolves - Fixed a regression in settings hot-reload where symlinked settings files caused misattributed change events and spurious `ConfigChange` hooks - Fixed `claude --bg` failing with "connection dropped mid-request" when the background service was about to idle-exit - Fixed background service startup failing on machines with enterprise endpoint security by allowing more time - Fixed remote managed settings not retrying on 401 — now retries once with a force-refreshed token - Fixed managed `extraKnownMarketplaces` auto-update policy not being persisted to `known_marketplaces.json` - Fixed `/loop` scheduling redundant wakeups to poll for background tasks that already notify on completion - Fixed a recurring event-loop stall on Windows when a missing executable (e.g. `gh`) triggered synchronous `where.exe` re-spawns on every check - Fixed `Read` tool calls failing validation when `offset` is passed as a whitespace-padded or `+`-prefixed string - Fixed native terminal cursor not staying at the input caret when the terminal loses focus - Plugins now warn when a default component folder (e.g. `commands/`) is silently ignored because `plugin.json` sets the matching key. Shown in `/doctor`, `claude plugin list`, and `/plugin`.
新增 Agent view 和 /goal 命令
亮点
- 新增 Agent view - 统一查看所有运行中、等待中、已完成的 Claude Code 会话
- /goal 命令 - 设置完成条件后自动跨多个轮次持续工作直到达成
- Hook args 支持 exec 形式直接生成命令无需担心路径引用问题
- MCP stdio 服务器现在接收 CLAUDE_PROJECT_DIR 环境变量
展开官方原文 ↓
## 2.1.139
- Added agent view (Research Preview): a single list of every Claude Code session — running, blocked on you, or done. Run `claude agents` to get started. See https://code.claude.com/docs/en/agent-view
- Added `/goal` command: set a completion condition and Claude keeps working across turns until it's met. Works in interactive, `-p`, and Remote Control. Shows live elapsed/turns/tokens as an overlay panel
- Added `/scroll-speed` command to tune mouse wheel scroll speed with a live preview
- Added `claude plugin details <name>` to show a plugin's component inventory and projected per-session token cost
- Added transcript view navigation: `?` for keyboard shortcuts, `{`/`}` to jump between user prompts, `v` to toggle shortcut panel
- Added hook `args: string[]` field (exec form) that spawns the command directly without a shell, so path placeholders never need quoting
- Added hook `continueOnBlock` config option for `PostToolUse` — set to `true` to feed the hook's rejection reason back to Claude and continue the turn
- MCP stdio servers now receive `CLAUDE_PROJECT_DIR` in their environment, matching hooks. Plugin configs can reference `${CLAUDE_PROJECT_DIR}` in commands
- Compaction prompt now asks the model to preserve sensitive user instructions
- `/mcp` Reconnect now picks up `.mcp.json` edits without a restart, and shows the HTTP status and URL when reconnecting fails
- `/context all` per-skill token estimates now account for the model's tokenizer and show rounded values
- `claude plugin install <name>@<marketplace>` now auto-refreshes the marketplace and retries before reporting a plugin as not found
- `/plugin` installed-plugin details now show hook event names and MCP server names cleanly
- `/context` now shows the providing plugin's name for plugin-sourced skills
- Remote MCP server reconnect retry on transient failures is now enabled for all users
- API requests from subagents now carry `x-claude-code-agent-id` / `x-claude-code-parent-agent-id` headers, and `claude_code.llm_request` OTEL spans include `agent_id` / `parent_agent_id` attributes
- Remote Control, `/schedule`, claude.ai MCP connectors, and notification preferences are now disabled when `ANTHROPIC_API_KEY` / `apiKeyHelper` / `ANTHROPIC_AUTH_TOKEN` is set, even if a Claude.ai login also exists. Unset the API key to use these features
- Fixed a deadlock where expired credentials and the `forceRemoteSettingsRefresh` policy setting blocked `claude auth login`/`logout`/`status` with no way to recover
- Fixed `autoAllowBashIfSandboxed` not auto-approving commands with shell expansions like `$VAR` and `$(cmd)`
- Fixed a bug where a hook writing to the terminal could corrupt an on-screen interactive prompt; hooks now run without terminal access
- Fixed unbounded memory growth when an HTTP/SSE MCP server streams non-protocol data — response bodies now capped at 16 MB per SSE frame
- Fixed `Skill(name *)` permission rules — the wildcard form now works as a prefix match, matching `Bash(ls *)` behavior
- Fixed settings hot-reload not detecting edits to symlinked `~/.claude/settings.json`
- Fixed plugin details failing to load when the marketplace key differs from the manifest name
- Fixed `/model` picker "Default" row not reflecting `ANTHROPIC_DEFAULT_OPUS_MODEL`/`ANTHROPIC_DEFAULT_SONNET_MODEL` overrides
- Fixed spurious "stream idle timeout" 5 minutes after a response completed, caused by the watchdog timer not being cleared on stream cancellation
- Fixed silent `exit 1` when 10+ MCP servers are configured and the cache directory is unwritable — the error message now includes the underlying cause
- Fixed a typing cursor blinking on tab names, list pointers, and select rows in dialogs
- Fixed transcript view letter shortcuts not working after mouse click
- Fixed Bash-mode up-arrow history repeating the first entry and clobbering the in-progress draft
- Fixed pasting or dropping multiple images only inserting the last one
- Fixed hyperlinks using unreadable dark navy on dark themes — they now adapt to the active theme
- Fixed model picker showing a redundant "Current model" row for third-party users whose model is set to the `opus` alias
- Fixed legacy Opus picker entry on PAYG 3P providers resolving to the same model as the default entry
- Fixed mouse wheel scrolling speed in Cursor and VS Code 1.92–1.104; the trackpad now scrolls at a steady rate and the mouse wheel keeps ~3 lines per notch
- Fixed scroll behavior in Windows Terminal and VS Code when attached to background sessions
- Fixed MCP resources from disconnected servers lingering in `@server:` autocomplete
- Fixed two-file diff snippets over-reporting the number of truncated lines by one
- Fixed Grep results not relativizing Windows drive-letter paths and count mode reporting wrong totals for single-file paths
- Fixed border-embedded text overflowing on CJK/emoji due to visual cell width miscalculation
- Fixed fuzzy-match highlighting splitting emoji and astral-plane characters mid-pair
- Fixed skill argument names containing regex metacharacters breaking argument substitution
- Fixed ProgressBar rendering a full block for an almost-full fractional cell
- Fixed task polling and `fs.watch` being resurrected when the last subscriber leaves while a fetch is in flight
- Fixed plugin dependency resolution leaving a stale count when the manifest name differs from the source identifier
- Fixed Insights Time-of-Day chart skewing when a session has an unparseable timestamp
- Fixed keybindings using only the cmd/super/win modifier being flagged as unparseable
- Fixed `claude_code.active_time.total` OpenTelemetry metric not being emitted in `--print` mode
- Fixed `claude plugin update` not preserving cross-plugin symlinks inside a marketplace
- [VSCode] Press Cmd/Ctrl+Shift+T to reopen the most recently closed session tab, configurable via `claudeCode.enableReopenClosedSessionShortcut`内部修复
展开官方原文 ↓
## 2.1.138 - Internal fixes
VSCode Windows 修复
亮点
- 修复 VSCode 扩展在 Windows 上的激活问题
展开官方原文 ↓
## 2.1.137 - [VSCode] Fixed extension failing to activate on Windows
MCP 可靠性和 UI 改进
亮点
- 新增 autoMode.hard_deny 配置进行无条件的权限阻止
- 修复 MCP 服务器在 /clear 后消失的问题
- 修复 MCP OAuth 并发刷新导致的令牌丢失需要重新认证
展开官方原文 ↓
## 2.1.136 - Added `CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL` to re-enable the session quality survey for enterprises capturing responses through OpenTelemetry - Added `settings.autoMode.hard_deny` for auto mode classifier rules that block unconditionally regardless of user intent or allow exceptions - Fixed MCP servers configured in `.mcp.json`, plugins, and claude.ai connectors silently disappearing after `/clear` in the VS Code extension, JetBrains plugin, and Agent SDK - Fixed a rare login loop where a concurrent credential write could overwrite a freshly-rotated OAuth token and force re-login - Fixed MCP OAuth refresh tokens being lost when multiple servers refresh concurrently — users with several remote MCP servers should no longer need daily re-authentication - Fixed an API error (400) when extended thinking emitted a redacted thinking block after a tool call - Fixed `--resume` / `--continue` not finding sessions when the project path contains underscores - Fixed plan mode not blocking file writes when a matching `Edit(...)` allow rule exists - WSL2: image paste from Windows clipboard now works via a PowerShell fallback when xclip/wl-paste cannot read image data - Fixed plugin `Stop`/`UserPromptSubmit` hooks failing when cache cleanup deletes a version still in use by a running session - Improved visual consistency across slash command dialogs: standardized footer hints, dialog spacing, and arrow-key styling, and the dialog frame now appears immediately during loading instead of popping in after - Fixed colors appearing at wrong positions in bash command output and markdown code blocks - Fixed ReasonML diffs rendering corrupted "undefined" text artifacts at word-diff boundaries - Fixed worktree exit dialog warning about uncommitted files in the wrong directory after worktree removal - Fixed `@` file picker not matching files created mid-session in small non-git directories - Fixed `@`-mention file picker not finding files in directories with more than 100 entries - Fixed failed tool calls not being click-to-expand in fullscreen mode when their output was truncated - Fixed Backspace and Ctrl+Backspace getting swapped after using Ctrl+G to open an external editor on terminals with persistent extended-key modes - Fixed `/usage` weekly reset showing time of day instead of the calendar date - Fixed welcome banner ellipsis causing column overflow on CJK terminals - Fixed `/insights` crash when session history contains tool calls with malformed input fields - Fixed a renderer crash when a tool's collapsibility classification changes mid-session - Fixed a `skills` entry in `plugin.json` hiding the plugin's default `skills/` directory, and listing a file path now shows an error instead of failing silently - Fixed IDE shell-integration lock files not respecting `CLAUDE_CONFIG_DIR` - Fixed trailing whitespace in copied terminal output during streaming - Fixed plugin uninstall and enable/disable not matching slugs case-insensitively - Fixed tool error truncation marker showing a negative count for surrogate-pair strings - Fixed env vars from `CLAUDE_ENV_FILE` SessionStart hooks going stale after `/resume` or `/clear` - Fixed `/branch` saving a multi-line session title when given a pasted multi-line name - Fixed a stray leading space on the second line of wrapped text at the column boundary - Fixed Esc not dismissing dialogs in `/install-github-app`, `/desktop`, `/resume`, and `/web-setup` - Fixed `/doctor` MCP schema errors not naming the missing field or showing the source file path - Fixed Bash permission prompts showing an internal parser diagnostic instead of a user-readable explanation - Fixed plugin slash commands with spaces (e.g. `/myplugin review`) not resolving to their namespaced form - Fixed `AskUserQuestion` discarding multi-select answers when supplied as an array - Fixed `/clear <name>` not labeling the cleared session for `/resume` - Fixed `CronList` output missing qualifiers and the scheduled prompt - Fixed "Jump to bottom" overlay leaving color artifacts on CJK characters in fullscreen mode - Fixed wide markdown tables leaving a stale bordered render in terminal scrollback while streaming - Fixed pasted text being silently dropped when a long prompt with a pasted-text placeholder was auto-truncated - Fixed `/release-notes` getting stuck on an old version after a failed changelog refresh - Fixed `/mcp` server list not scrolling when there are more servers than fit in the terminal - Fixed mid-input slash command autocomplete not working after an initial slash command - Fixed scrolling to bottom re-engaging auto-follow with `autoScrollEnabled: false` - Fixed prompt suggestions being auto-submitted by Enter on an empty input instead of requiring Tab or arrow to accept - Fixed keyboard shortcut hints not reflecting rebound keys from `keybindings.json` - Fixed `/settings` language change being reverted on Escape after confirming - Fixed `/terminal-setup` only appearing in autocomplete on exact name match instead of partial prefixes - Fixed "Chat about this" on an `AskUserQuestion` dialog erasing the question text - Fixed MCP tool results being invisible when the server returns content blocks - Improved error message when `--worktree` collides with an existing or stale worktree - Changed plugin marketplace removal key to `d` (matching delete elsewhere) instead of `r` which collided with retry
历史版本(282 个)
v2.1.130-1393 个版本 · 3 已摘要
v2.1.133Worktree 配置和 Hook 增强
- 新增 worktree.baseRef 设置选择分支来源(fresh 或 local HEAD)
- Hook 现在接收 effort level 信息通过 CLAUDE_EFFORT 环境变量
- 修复 MCP OAuth 流程中的代理、mTLS 和刷新令牌问题
破坏性变化
- worktree.baseRef 默认为 fresh 改变了 EnterWorktree 的行为,需设置为 head 以保留未推送提交
## 2.1.133 - Added `worktree.baseRef` setting (`fresh` | `head`) to choose whether `--worktree`, `EnterWorktree`, and agent-isolation worktrees branch from `origin/<default>` or local `HEAD`. **Note:** the default `fresh` changes `EnterWorktree`'s base back to `origin/<default>` (it has been local `HEAD` since 2.1.128) — set `worktree.baseRef: "head"` to keep unpushed commits in new worktrees - Added `sandbox.bwrapPath` and `sandbox.socatPath` managed settings (Linux/WSL) to specify custom bubblewrap and socat binary locations - Added `parentSettingsBehavior` admin-tier key (`'first-wins' | 'merge'`) to let admins opt SDK `managedSettings` (parent tier) into the policy merge - Hooks now receive the active effort level via the `effort.level` JSON input field and the `$CLAUDE_EFFORT` environment variable, and Bash tool commands can read `$CLAUDE_EFFORT` - Improved focus mode behavior - Improved memory usage by releasing warm-spare background workers under memory pressure - Fixed parallel sessions all dead-ending at 401 after a refresh-token race wiped shared credentials - Fixed `Edit`/`Write` allow rules scoped to a drive root (`C:\`) or POSIX `/` matching incorrectly and always prompting - Fixed an unhandled rejection (`ECOMPROMISED`) when a history or session-log file lock is compromised by clock skew or slow disk - Fixed pressing Esc during conversation compaction showing a spurious "Error compacting conversation" notification - Fixed `HTTP(S)_PROXY` / `NO_PROXY` / mTLS not being respected for the full MCP OAuth flow including discovery, dynamic client registration, token exchange, and token refresh - Fixed Read/Write/Edit being denied on mapped network drives passed via `--add-dir` / SDK `additionalDirectories` - Fixed Remote Control stop/interrupt from claude.ai not fully canceling the CLI session the same way local Esc does, causing queued messages to never advance after interrupting a stuck tool or prompt - Fixed `/effort` in one session unexpectedly changing the effort level of other concurrent sessions, and a related issue where an IDE effort change could be silently dropped - Fixed subagents not discovering project, user, or plugin skills via the Skill tool - `claude --help` now lists `--remote-control` alongside `--remote-control-session-name-prefix` - [VSCode] Fixed `claudeCode.claudeProcessWrapper` failing with "Unsupported platform" when the extension build doesn't bundle a Claude binary
v2.1.132修复会话中断、粘贴和全屏等多项问题
- 添加CLAUDE_CODE_SESSION_ID环变和CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN禁用全屏选项
- 修复外部SIGINT无法优雅关闭,终端模式现正确恢复
- 修复全屏模式睡眠唤醒后显示空白,Ctrl+Z恢复后也能正常显示
- 修复粘贴文本开头/被吞掉或触发未知命令,修复粘贴时混入转义序列
## 2.1.132 - Added `CLAUDE_CODE_SESSION_ID` environment variable to the Bash tool subprocess environment, matching the `session_id` passed to hooks - Added `CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1` env var to opt out of the fullscreen alternate-screen renderer and keep the conversation in the terminal's native scrollback - Added a "Pasting…" footer hint while a Ctrl+V image paste is being read from the clipboard - Fixed external SIGINT (e.g. IDE stop button, `kill -INT`) not running graceful shutdown — terminal modes are now restored and the `--resume` hint is printed instead of an abrupt exit - Fixed an uncaught exception when the terminal is closed or SSH disconnects mid-session under the native build - Fixed `--resume` failing with `no low surrogate in string` when a tool error truncation split an emoji; pre-corrupted sessions are sanitized on load - Fixed `--permission-mode` flag being ignored when resuming a plan-mode session with `-p --continue`/`--resume`, and plan mode not being re-applied after `ExitPlanMode` within the same session - Fixed fullscreen mode showing a blank screen after laptop sleep/wake or Ctrl+Z/`fg` until the next keystroke or stream output - Fixed cursor landing mid-grapheme on Ctrl+E/A/K/U/arrow keys when an Indic conjunct or ZWJ emoji wraps across lines - Fixed vim operators corrupting text containing decomposed (NFD) accented characters - Fixed pasting text starting with `/` silently swallowing the input or triggering an unknown-command reply - Fixed pasting dumping stray escape sequences into the prompt when focus events or mouse-tracking reports interleave with the bracketed paste - Fixed mouse wheel scrolling being too fast in Cursor and VS Code 1.92–1.104 due to an upstream xterm.js bug - Fixed scroll-wheel handling in JetBrains IDE 2025.2 terminals (spurious arrow keys, wrong-direction events, runaway acceleration) - Fixed `/usage` Ctrl+S hanging when copying the stats screenshot to the clipboard on Linux/X11 - Fixed `/terminal-setup` showing a contradictory error in Windows Terminal — Shift+Enter is natively supported there - Fixed `/effort` picker not reflecting the `CLAUDE_CODE_EFFORT_LEVEL` env var override - Fixed `/status` showing the wrong default model for some users - Fixed slash command autocomplete popup being capped at ~3–5 visible commands instead of scaling with terminal height - Fixed statusline `context_window` token counts reflecting cumulative session totals instead of current context usage - Fixed Alt+T (thinking toggle) not working on macOS terminals without "Option as Meta" enabled (iTerm2, Terminal.app defaults) - Fixed dead keyboard input on Windows after re-opening a background session from `claude agents` - Fixed unbounded memory growth (10GB+ RSS) when a stdio MCP server writes non-protocol data to stdout - Fixed MCP servers that connect but fail `tools/list` silently showing 0 tools — they now retry once and show "connected · tools fetch failed" in `/mcp` - Fixed unauthorized claude.ai MCP connectors showing as "failed" instead of "needs auth", and headless `-p` mode retrying non-transient 4xx connection failures - Improved visual consistency in slash command dialogs and `/login`, `/upgrade`, `/extra-usage` dialog spacing - Updated the `/tui fullscreen` startup banner to describe additional renderer benefits (lower memory usage, mouse support, auto-copy on select) - Fixed Bedrock and Vertex 400 errors when `ENABLE_PROMPT_CACHING_1H` is set
v2.1.131修复VS Code和Mantle身份验证问题
- 修复VS Code在Windows上扩展无法激活的SDK polyfill bug
- 修复Mantle端点认证缺少x-api-key头导致失败
## 2.1.131 - Fixed VS Code extension failing to activate on Windows due to a hardcoded build path in the bundled SDK (`createRequire` polyfill bug) - Fixed Mantle endpoint authentication failing with missing `x-api-key` header
v2.1.120-1297 个版本 · 7 已摘要
v2.1.129支持插件URL加载和自动升级功能
- 添加--plugin-url从URL获取插件.zip档案
- 添加CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE支持Homebrew/WinGet后台升级
- 修复--permission-mode在恢复plan模式时被忽略的问题
- 修复/effort选择器不反映CLAUDE_CODE_EFFORT_LEVEL环变覆盖
破坏性变化
- 网关/v1/models发现现需要明确设置CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1
## 2.1.129
- Added `--plugin-url <url>` flag to fetch a plugin `.zip` archive from a URL for the current session
- Added `CLAUDE_CODE_FORCE_SYNC_OUTPUT=1` env var to force-enable synchronized output on terminals that auto-detection misses (e.g. Emacs `eat`)
- Added `CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE`: when set on Homebrew or WinGet installations, Claude Code runs the upgrade command in the background and prompts to restart
- Plugin manifests: `themes` and `monitors` should now be declared under `"experimental": { ... }`. Top-level declarations still work but `claude plugin validate` will warn
- Gateway `/v1/models` discovery for the `/model` picker is now opt-in via `CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1` (was automatic in 2.1.126–2.1.128)
- Ctrl+R history picker now defaults to searching all prompts across all projects, matching pre-2.1.124 behavior. Press Ctrl+S to narrow to the current project or session
- Third-party deployments (Bedrock, Vertex, Foundry, or `ANTHROPIC_BASE_URL` gateway) no longer see spinner tips pointing at first-party Anthropic surfaces
- `skillOverrides` setting now works: `off` hides from model and `/`, `user-invocable-only` hides from model only, `name-only` collapses description
- The `claude_code.pull_request.count` OTel metric now counts PRs/MRs created via MCP tools, not just shell commands
- Policy refusal error messages now include the API Request ID for easier support debugging
- Fixed API errors with unrecognized 400 status codes showing raw JSON instead of the underlying error message
- Fixed `/clear` not resetting the terminal tab title after a conversation
- Fixed session title chip from `/rename` disappearing while a permission or other dialog is active
- Fixed agent panel below the prompt being hidden when subagents are running (regression in 2.1.122)
- Fixed external-editor handoff (Ctrl+G) blanking the conversation history above the prompt
- Fixed `/context` dumping its rendered ASCII visualization grid into the conversation, wasting ~1.6k tokens per call
- Fixed `/agents` Library list arrow-key navigation: the highlighted agent now stays visible when the list exceeds the viewport
- Fixed `/branch` success message not including the new branch's session id for `/resume`
- Fixed bold headers with keycap/ZWJ/skin-tone emoji losing trailing characters in fullscreen mode
- Fixed server-managed settings policy not applying for enterprise/team users whose stored OAuth credentials lacked the `user:inference` scope
- Fixed OAuth refresh race after wake-from-sleep that could log out all running sessions
- Fixed 1-hour prompt cache TTL being silently downgraded to 5 minutes
- Fixed cache-miss warning appearing spuriously after `/clear` or compaction when changing `/effort` or `/model`
- Fixed `Bash(mkdir *)`, `Bash(touch *)` and similar allow rules not being honored for in-project paths
- Fixed `deniedMcpServers` patterns with a `*://` scheme wildcard not matching mixed-case hostnames
- Fixed harmless WebSocket warning being logged as an error in `--debug` during voice mode
- [VSCode] Fixed `/clear` not clearing the conversation context and displayed transcriptv2.1.128MCP增强和修复客户端交互问题
- /mcp现显示连接服务器的工具数量和连接失败标记
- --plugin-dir支持.zip插件档案直接加载
- EnterWorktree从本地HEAD创建分支而非origin/default-branch
- 修复vim操作符破坏包含分解(NFD)字符的文本
破坏性变化
- MCP中workspace成为保留服务器名称,现有同名服务器将被跳过
## 2.1.128 - Bare `/color` (no args) now picks a random session color - `/mcp` now shows the tool count for connected servers and flags servers that connected with 0 tools - `--plugin-dir` now accepts `.zip` plugin archives in addition to directories - `--channels` now works with console (API key) authentication — console orgs with managed settings must set `channelsEnabled: true` to enable - Updated `/model` picker: collapsed duplicate Opus 4.7 entries, and current Opus now shows as "Opus" instead of "Opus 4.7" - Subprocesses (Bash, hooks, MCP, LSP) no longer inherit `OTEL_*` environment variables, so OTEL-instrumented apps run via the Bash tool no longer pick up the CLI's own OTLP endpoint - MCP: `workspace` is now a reserved server name — existing servers with that name will be skipped with a warning - Reconnecting MCP servers no longer flood the conversation with full tool-name lists on every reconnect — re-announced tools are summarized by server prefix - SDK hosts now receive a persistent `localSettings` suggestion for Bash permission prompts, so "Always allow" writes to `.claude/settings.local.json` - `EnterWorktree` now creates the new branch from local HEAD as documented, instead of `origin/<default-branch>` — unpushed commits are no longer dropped - Auto mode: when the classifier can't evaluate an action, the error now includes a hint (retry, `/compact`, or run with `--debug`) - Fixed focus mode briefly dimming the previous response when submitting a new prompt - Fixed stray "4;0;" desktop notification on every `/exit` in Kitty and other terminals that interpret OSC 9 as a notification - Fixed Remote Control showing an empty "Opening your options…" message on rate limit instead of actionable upsell options - Fixed drag-and-drop image upload hanging on "Pasting text…" when the image read fails - Fixed crash loop when piping very large input (>10 MB) to `claude -p` via stdin - Fixed long URLs not being individually clickable on every wrapped row in fullscreen mode - Fixed `/plugin` Components panel showing "Marketplace 'inline' not found" for plugins loaded via `--plugin-dir` - Fixed MCP tool results dropping images when the server returns both structured content and content blocks - Fixed fenced code blocks inside list items carrying leading whitespace into the clipboard on copy-paste - Fixed tab navigation in `/config` stranding focus — the tab header now stays focused so arrows and Esc keep working - Fixed markdown link labels being lost on terminals without OSC 8 hyperlink support — links now render as `label (url)` instead of just the URL - Fixed sessions on 1M-context models with a smaller autocompact window being falsely blocked with "Prompt is too long" before reaching the actual API limit - Fixed parallel shell tool calls: a failing read-only command (grep, git diff, ls) no longer cancels sibling calls - Fixed banner showing "with X effort" on models that don't support effort - Fixed `/fast` on 3P providers fuzzy-matching to an unrelated skill instead of showing "not available" - Fixed Bedrock default model resolving to `global.*` instead of the region-appropriate prefix - Fixed vim mode: `Space` in NORMAL mode now moves the cursor right, matching standard vi/vim behavior - Fixed terminal progress indicator (OSC 9;4) flickering off between tool calls — stays visible across the full turn - Fixed `/rename` without args failing on resumed sessions whose last entry is a compact boundary - Fixed stale "remote-control is active" status lines from prior sessions appearing after `--resume`/`--continue` - Fixed stale `installed_plugins.json` entries pointing at deleted cache directories polluting PATH - Fixed MCP stdio servers receiving corrupted arguments when `CLAUDE_CODE_SHELL_PREFIX` is set and an argument contains spaces or shell metacharacters - Fixed sub-agent progress summaries missing the prompt cache (~3× `cache_creation` reduction) - Fixed `/plugin update` never detecting new versions of npm-sourced plugins - Fixed sub-agent summaries firing repeatedly while a sub-agent's transcript is static, capping worst-case token cost on idle sub-agents - Headless `--output-format stream-json`: `init.plugin_errors` now includes `--plugin-dir` load failures in addition to dependency demotions
v2.1.126修复OAuth认证重试循环问题
- 修复设置CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1时OAuth陷入401重试循环
## 2.1.126 - The `/model` picker now lists models from your gateway's `/v1/models` endpoint when `ANTHROPIC_BASE_URL` points at an Anthropic-compatible gateway - - Added `claude project purge [path]` to delete all Claude Code state for a project (transcripts, tasks, file history, config entry) — supports `--dry-run`, `-y/--yes`, `-i/--interactive`, and `--all` - `--dangerously-skip-permissions` now bypasses prompts for writes to `.claude/`, `.git/`, `.vscode/`, shell config files, and other previously-protected paths (catastrophic removal commands still prompt as a safety net) - `claude auth login` now accepts the OAuth code pasted into the terminal when the browser callback can't reach localhost (WSL2, SSH, containers) - `claude_code.skill_activated` OpenTelemetry event now fires for user-typed slash commands and carries a new `invocation_trigger` attribute (`"user-slash"`, `"claude-proactive"`, or `"nested-skill"`) - Auto mode: the spinner now turns red when a permission check stalls, instead of looking like the tool is running - Host-managed deployments (`CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST`) no longer auto-disable analytics on Bedrock/Vertex/Foundry - Windows: PowerShell 7 installed via the Microsoft Store, MSI without PATH, or `.NET global tool` is now detected - Windows: when the PowerShell tool is enabled, Claude now treats PowerShell as the primary shell instead of defaulting to Bash - Read tool: removed the per-file malware-assessment reminder that could cause spurious refusals and "this is not malware" commentary on legacy models - **Security:** Fixed `allowManagedDomainsOnly` / `allowManagedReadPathsOnly` being ignored when a higher-priority managed-settings source lacked a `sandbox` block - Fixed pasting an image larger than 2000px breaking the session — images are now downscaled on paste, and oversized images in history are automatically removed and the request retried - Fixed showing the login screen for "OAuth not allowed for organization" errors — now shows guidance to contact your admin - Fixed OAuth login failing with timeout on slow or proxied connections, in IPv6-only devcontainers, and when the browser callback can't reach localhost - Fixed a rare race where a concurrent credential write could clear a valid OAuth refresh token - Fixed API retry countdown sticking at "0s" instead of counting down between attempts - Fixed "Stream idle timeout" error after waking Mac from sleep mid-request - Fixed background and remote sessions falsely aborting with "Stream idle timeout" during long model thinking pauses - Fixed a hang where the assistant could finish thinking but show no output after a run of empty turns - Fixed overly fast trackpad scrolling in Cursor and VS Code 1.92–1.104 integrated terminals - Fixed claude.ai MCP connectors being suppressed by manual servers stuck in needs-auth state - Fixed Japanese/Korean/Chinese text rendering as garbled characters on Windows in no-flicker mode - Fixed `Ctrl+L` clearing the prompt input — it now only forces a screen redraw, matching readline behavior - Fixed deferred tools (WebSearch, WebFetch, etc.) not being available to skills with `context: fork` and other subagents on their first turn - Fixed plan-mode tools being unavailable in interactive sessions launched with `--channels` - Fixed `/plugin` Uninstall reporting "Enabled" instead of "Uninstalled" - Bounded total size of file-modified reminders when a linter touches many files at once - Fixed `/remote-control` retries appearing stuck on "connecting…" — each retry now shows its result - Fixed Remote Control failure notification not showing the error reason for initial connection failures - Windows: clipboard writes no longer expose copied content in process command-line arguments visible to EDR/SIEM telemetry; also fixes >22KB selections not reaching the clipboard - PowerShell tool: bare `--` (e.g. `git diff -- file`) is no longer mis-flagged as the `--%` stop-parsing token - Fixed Agent SDK hang when the model emits a malformed tool name in a parallel tool call batch
v2.1.123支持Bedrock服务层和PR URL会话搜索
- 添加ANTHROPIC_BEDROCK_SERVICE_TIER环变选择Bedrock服务层(default/flex/priority)
- /resume搜索框支持粘贴PR URL查找创建该PR的会话
- /mcp显示被手动服务器隐藏的claude.ai连接器及去重提示
- 修复/branch产生失败fork的tool_use_ids校验错误
## 2.1.123 - Fixed OAuth authentication failing with a 401 retry loop when `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1` is set
v2.1.122MCP alwaysLoad选项和全屏滚动改进
- MCP server config添加alwaysLoad选项跳过工具搜索延迟使工具始终可用
- 添加claude plugin prune清理孤立的自动安装插件依赖
- 全屏模式:输入提示时不再自动跳回底部,支持向上滚读历史
- 修复处理大量图像时的多GB内存泄漏及会话恢复时的内存溢出
## 2.1.122 - Added `ANTHROPIC_BEDROCK_SERVICE_TIER` environment variable to select a Bedrock service tier (`default`, `flex`, or `priority`), sent as the `X-Amzn-Bedrock-Service-Tier` header - Pasting a PR URL into the `/resume` search box now finds the session that created that PR (GitHub, GitHub Enterprise, GitLab, and Bitbucket) - `/mcp` now shows claude.ai connectors hidden by a manually-added server with the same URL, with a hint to remove the duplicate - Clarified the `/mcp` message shown when an MCP server is still unauthorized after the browser sign-in flow - OpenTelemetry: numeric attributes on `api_request`/`api_error` log events are now emitted as numbers, not strings - OpenTelemetry: added `claude_code.at_mention` log event for `@`-mention resolution - Fixed `/branch` producing forks that fail with "tool_use ids were found without tool_result blocks" when the source session contained entries from rewound timelines - Fixed `/model` not showing the Effort option for Bedrock application inference profile ARNs, and those ARNs not receiving `output_config.effort` - Fixed Vertex AI / Bedrock returning `invalid_request_error: output_config: Extra inputs are not permitted` on session-title generation and other structured-output queries - Fixed Vertex AI `count_tokens` endpoint returning 400 errors for users behind proxy gateways - Fixed `spinnerTipsOverride.excludeDefault` not suppressing the time-based spinner tips - Fixed ToolSearch missing MCP tools that connected after session start in nonblocking mode - Fixed `!exit` / `!quit` in bash mode terminating the CLI instead of running as a shell command - Fixed images sent to newer models being resized to 2576px per side instead of the correct 2000px maximum - Fixed remote control session idle status redrawing twice per second, which could flood `tmux -CC` control pipes and pause the terminal - Fixed assistant messages appearing blank in some sessions due to a stale view preference - Fixed a malformed hooks entry in `settings.json` no longer invalidating the entire file - Voice mode: keybindings bound to Caps Lock now show an error since terminals don't deliver Caps Lock as a key event
v2.1.121多项工具链增强与内存泄漏修复
- MCP servers 新增 alwaysLoad 配置和自动重试机制,提升连接稳定性
- 修复多处内存泄漏问题,优化大文件处理和长会话性能
- 全屏模式交互改进:支持动态滚动、URL 点击、对话框键盘导航
- PostToolUse hooks 扩展为所有工具支持输出替换,提升自定义能力
## 2.1.121 - Added `alwaysLoad` option to MCP server config — when `true`, all tools from that server skip tool-search deferral and are always available - Added `claude plugin prune` to remove orphaned auto-installed plugin dependencies; `plugin uninstall --prune` cascades - Added a type-to-filter search box to `/skills` so you can find a skill in long lists without scrolling - PostToolUse hooks can now replace tool output for all tools via `hookSpecificOutput.updatedToolOutput` (previously MCP-only) - Fullscreen mode: typing into the prompt no longer jumps scroll back to the bottom after you've scrolled up to read earlier output - Dialogs that overflow the terminal are now scrollable with arrow keys, PgUp/PgDn, home/end, and mouse wheel in both fullscreen and non-fullscreen modes - Clicking any line of a long URL that wraps across rows in fullscreen mode now opens the full URL - SDK and `claude -p`: `CLAUDE_CODE_FORK_SUBAGENT=1` now works in non-interactive sessions - `--dangerously-skip-permissions` no longer prompts for writes to `.claude/skills/`, `.claude/agents/`, and `.claude/commands/` - `/terminal-setup` now enables iTerm2's "Applications in terminal may access clipboard" setting so `/copy` works, including from tmux - MCP servers that hit a transient error during startup now auto-retry up to 3 times instead of staying disconnected - The terminal tab session title is now generated in your configured `language` setting - Claude.ai connectors with the same upstream URL are now deduplicated instead of appearing as duplicates - Vertex AI: support X.509 certificate-based Workload Identity Federation (mTLS ADC) - Faster startup after upgrading: removed the Recent Activity panel from the release-notes splash - LSP diagnostic summaries now expand on click/ctrl+o and show the expand hint - SDK: `mcp_authenticate` now supports `redirectUri` for custom scheme completion and claude.ai connectors - OpenTelemetry: added `stop_reason`, `gen_ai.response.finish_reasons`, and `user_system_prompt` (gated behind `OTEL_LOG_USER_PROMPTS`) to LLM request spans - [VSCode] Voice dictation now respects the `accessibility.voice.speechLanguage` setting when no Claude Code language is configured - [VSCode] `/context` now opens a native token usage dialog - Fixed unbounded memory growth (multi-GB RSS) when processing many images in a session - Fixed `/usage` leaking up to ~2GB of memory on machines with large transcript histories - Fixed memory leak when long-running tools fail to emit a clear progress event - Fixed Bash tool becoming permanently unusable when the directory Claude was started in is deleted or moved mid-session - Fixed `--resume` crashing on startup in external builds - Fixed `--resume` failing on large sessions when a transcript line was corrupted by an unclean shutdown — the corrupt line is now skipped - Fixed `thinking.type.enabled is not supported` error when using Bedrock application inference profile ARNs - Fixed Microsoft 365 MCP OAuth failing with duplicate or unsupported `prompt` parameter - Fixed scrollback duplication when pressing Ctrl+L or triggering a redraw in non-fullscreen mode on tmux, GNOME Terminal, Windows Terminal, and Konsole - Fixed claude.ai MCP connectors silently disappearing when the connector-list fetch hits a transient auth error at startup - Fixed "Always allow" rules for built-in tools in remote sessions not surviving worker restarts - Fixed `NO_PROXY` not being respected for all HTTP clients when set via `managed-settings.json` under the native build - Fixed managed settings approval prompt exiting the session even when accepted — now applies settings and continues - Fixed `/usage` returning "rate limited" after a stale OAuth token — now refreshes automatically - Fixed invalid legacy enum values in `settings.json` invalidating the entire settings file - Fixed `/usage` dialog content being clipped when no-flicker mode is off - Fixed `/focus` showing "Unknown command" when the fullscreen renderer is off — now explains how to enable it - Fixed embedded grep/find/rg shell wrappers failing when the running binary is deleted mid-session — now falls back to installed tools - Reduced peak file descriptor usage during `find` in the Bash tool on large directory trees
v2.1.120Windows支持PowerShell、ultrareview子命令、修复
- Windows 上 Git Bash 可选,自动使用 PowerShell 作为 shell 工具
- 新增 `claude ultrareview [target]` 子命令,支持 CI 非交互模式运行,输出到 stdout
- Skills 可使用 ${CLAUDE_EFFORT} 引用当前努力级别
- 修复 Esc 期间 MCP 工具调用导致服务器连接关闭的回归问题
## 2.1.120
- Windows: Git for Windows (Git Bash) is no longer required — when absent, Claude Code uses PowerShell as the shell tool
- Added `claude ultrareview [target]` subcommand to run `/ultrareview` non-interactively from CI or scripts — prints findings to stdout (`--json` for raw output) and exits 0 on completion or 1 on failure
- Skills can now reference the current effort level with `${CLAUDE_EFFORT}` in their content
- Set `AI_AGENT` environment variable for subprocesses so `gh` can attribute traffic to Claude Code
- Spinner tips that recommend installing the desktop app or creating skills/agents are now hidden when you already have them
- Show a "use PgUp/PgDn to scroll" hint when the terminal sends arrow keys instead of scroll events
- Faster session start when you have many claude.ai connectors configured but not authorized
- The auto mode denial message now links to the configuration docs
- `claude plugin validate` now accepts `$schema`, `version`, and `description` at the top level of `marketplace.json` and `$schema` in `plugin.json`
- Auto-compact in auto mode now displays `auto` (lowercase, no token count) instead of a misleading token value
- Fixed pressing Esc during a stdio MCP tool call closing the entire server connection (regression in 2.1.105)
- Fixed `/rewind` and other interactive overlays not responding to keyboard input after launching with `claude --resume`
- Fixed terminal scrollback duplication in non-fullscreen mode (resize, dialog dismiss, long sessions)
- Fixed `DISABLE_TELEMETRY` / `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` not suppressing usage metrics telemetry for API and enterprise users
- Fixed false-positive "Dangerous rm operation" permission prompts in auto mode for multi-line bash commands containing both a pipe and a redirect
- Fixed long selection menus clipping below the terminal in fullscreen mode — the focused option now stays on screen as you scroll
- Fixed Write tool output collapsing instead of expanding when clicking "+N lines" in fullscreen
- Fixed slash command picker jumping while typing, and improved highlight to only match contiguous substrings in blue
- Fixed `/plugin` marketplace failing to load when one entry uses an unrecognized source format — that entry is shown but installing it prompts you to update
- [VSCode] `/usage` now opens the native Account & Usage dialog instead of returning plain-text session cost
- [VSCode] Voice dictation now respects the `language` setting in `~/.claude/settings.json`
- Fixed `find` in the Bash tool exhausting open file descriptors on large directory trees, causing host-wide crashes (macOS/Linux native builds)v2.1.110-1199 个版本 · 9 已摘要
v2.1.119配置持久化、支持多平台 PR URL、性能改进
- /config 设置存储到 ~/.claude/settings.json,支持项目/本地/策略三级覆盖
- --from-pr 现支持 GitLab MR、Bitbucket PR、GitHub Enterprise 链接
- 修复粘贴 CRLF 内容(Windows 剪贴板、Xcode 控制台)插入多余空行的问题
- 修复 MCP HTTP OAuth 发现请求处理非 JSON 响应时失败
## 2.1.119
- `/config` settings (theme, editor mode, verbose, etc.) now persist to `~/.claude/settings.json` and participate in project/local/policy override precedence
- Added `prUrlTemplate` setting to point the footer PR badge at a custom code-review URL instead of github.com
- Added `CLAUDE_CODE_HIDE_CWD` environment variable to hide the working directory in the startup logo
- `--from-pr` now accepts GitLab merge-request, Bitbucket pull-request, and GitHub Enterprise PR URLs
- `--print` mode now honors the agent's `tools:` and `disallowedTools:` frontmatter, matching interactive-mode behavior
- `--agent <name>` now honors the agent definition's `permissionMode` for built-in agents
- PowerShell tool commands can now be auto-approved in permission mode, matching Bash behavior
- Hooks: `PostToolUse` and `PostToolUseFailure` hook inputs now include `duration_ms` (tool execution time, excluding permission prompts and PreToolUse hooks)
- Subagent and SDK MCP server reconfiguration now connects servers in parallel instead of serially
- Plugins pinned by another plugin's version constraint now auto-update to the highest satisfying git tag
- Vim mode: Esc in INSERT no longer pulls a queued message back into the input; press Esc again to interrupt
- Slash command suggestions now highlight the characters that matched your query
- Slash command picker now wraps long descriptions onto a second line instead of truncating
- `owner/repo#N` shorthand links in output now use your git remote's host instead of always pointing at github.com
- Security: `blockedMarketplaces` now correctly enforces `hostPattern` and `pathPattern` entries
- OpenTelemetry: `tool_result` and `tool_decision` events now include `tool_use_id`; `tool_result` also includes `tool_input_size_bytes`
- Status line: stdin JSON now includes `effort.level` and `thinking.enabled`
- Fixed pasting CRLF content (Windows clipboards, Xcode console) inserting an extra blank line between every line
- Fixed multi-line paste losing newlines in terminals using kitty keyboard protocol sequences inside bracketed paste
- Fixed Glob and Grep tools disappearing on native macOS/Linux builds when the Bash tool is denied via permissions
- Fixed scrolling up in fullscreen mode snapping back to the bottom every time a tool finishes
- Fixed MCP HTTP connections failing with "Invalid OAuth error response" when servers returned non-JSON bodies for OAuth discovery requests
- Fixed Rewind overlay showing "(no prompt)" for messages with image attachments
- Fixed auto mode overriding plan mode with conflicting "Execute immediately" instructions
- Fixed async `PostToolUse` hooks that emit no response payload writing empty entries to the session transcript
- Fixed spinner staying on when a subagent task notification is orphaned in the queue
- Tool search is now disabled by default on Vertex AI to avoid an unsupported beta header error (opt in with `ENABLE_TOOL_SEARCH`)
- Fixed `@`-file Tab completion replacing the entire prompt when used inside a slash command with an absolute path
- Fixed a stray `p` character appearing at the prompt on startup in macOS Terminal.app via Docker or SSH
- Fixed `${ENV_VAR}` placeholders in `headers` for HTTP/SSE/WebSocket MCP servers not being substituted before requests
- Fixed MCP OAuth client secret stored via `--client-secret` not being sent during token exchange for servers requiring `client_secret_post`
- Fixed `/skills` Enter key closing the dialog instead of pre-filling `/<skill-name>` in the prompt
- Fixed `/agents` detail view mislabeling built-in tools unavailable to subagents as "Unrecognized"
- Fixed MCP servers from plugins not spawning on Windows when the plugin cache was incomplete
- Fixed `/export` showing the current default model instead of the model the conversation actually used
- Fixed verbose output setting not persisting after restart
- Fixed `/usage` progress bars overlapping with their "Resets …" labels
- Fixed plugin MCP servers failing when `${user_config.*}` references an optional field left blank
- Fixed list items containing a sentence-final number wrapping the number onto its own line
- Fixed `/plan` and `/plan open` not acting on the existing plan when entering plan mode
- Fixed skills invoked before auto-compaction being re-executed against the next user message
- Fixed `/reload-plugins` and `/doctor` reporting load errors for disabled plugins
- Fixed Agent tool with `isolation: "worktree"` reusing stale worktrees from prior sessions
- Fixed disabled MCP servers appearing as "failed" in `/status`
- Fixed `TaskList` returning tasks in arbitrary filesystem order instead of sorted by ID
- Fixed spurious "GitHub API rate limit exceeded" hints when `gh` output contained PR titles mentioning "rate limit"
- Fixed SDK/bridge `read_file` not correctly enforcing size cap on growing files
- Fixed PR not linked to session when working in a git worktree
- Fixed `/doctor` warning about MCP server entries overridden by a higher-precedence scope
- Windows: removed false-positive "Windows requires 'cmd /c' wrapper" MCP config warning
- [VSCode] Fixed voice dictation's first recording producing nothing on macOS while the microphone permission prompt is showingv2.1.118Vim 视觉模式、主题自定义、/usage 命令、Hook 增强
- 新增 Vim 视觉模式(`v` 和 `V`),支持选择、操作符和视觉反馈
- /cost 和 /stats 合并为 /usage,两个快捷方式仍可用
- 支持从 /theme 创建和切换自定义主题,插件可内置主题
- Hook 支持 `type: "mcp_tool"` 直接调用 MCP 工具
## 2.1.118 - Added vim visual mode (`v`) and visual-line mode (`V`) with selection, operators, and visual feedback - Merged `/cost` and `/stats` into `/usage` — both remain as typing shortcuts that open the relevant tab - Create and switch between named custom themes from `/theme`, or hand-edit JSON files in `~/.claude/themes/`; plugins can also ship themes via a `themes/` directory - Hooks can now invoke MCP tools directly via `type: "mcp_tool"` - Added `DISABLE_UPDATES` env var to completely block all update paths including manual `claude update` — stricter than `DISABLE_AUTOUPDATER` - WSL on Windows can now inherit Windows-side managed settings via the `wslInheritsWindowsSettings` policy key - Auto mode: include `"$defaults"` in `autoMode.allow`, `autoMode.soft_deny`, or `autoMode.environment` to add custom rules alongside the built-in list instead of replacing it - Added a "Don't ask again" option to the auto mode opt-in prompt - Added `claude plugin tag` to create release git tags for plugins with version validation - `--continue`/`--resume` now find sessions that added the current directory via `/add-dir` - `/color` now syncs the session accent color to claude.ai/code when Remote Control is connected - The `/model` picker now honors `ANTHROPIC_DEFAULT_*_MODEL_NAME`/`_DESCRIPTION` overrides when using a custom `ANTHROPIC_BASE_URL` gateway - When auto-update skips a plugin due to another plugin's version constraint, the skip now appears in `/doctor` and the `/plugin` Errors tab - Fixed `/mcp` menu hiding OAuth Authenticate/Re-authenticate actions for servers configured with `headersHelper`, and HTTP/SSE MCP servers with custom headers being stuck in "needs authentication" after a transient 401 - Fixed MCP servers whose OAuth token response omits `expires_in` requiring re-authentication every hour - Fixed MCP step-up authorization silently refreshing instead of prompting for re-consent when the server's `insufficient_scope` 403 names a scope the current token already has - Fixed an unhandled promise rejection when an MCP server's OAuth flow times out or is cancelled - Fixed MCP OAuth refresh proceeding without its cross-process lock under contention - Fixed macOS keychain race where a concurrent MCP token refresh could overwrite a freshly-refreshed OAuth token, causing unexpected "Please run /login" prompts - Fixed OAuth token refresh failing when the server revokes a token before its local expiry time - Fixed credential save crash on Linux/Windows corrupting `~/.claude/.credentials.json` - Fixed `/login` having no effect in a session launched with `CLAUDE_CODE_OAUTH_TOKEN` — the env token is now cleared so disk credentials take effect - Fixed unreadable text in the "new messages" scroll pill and `/plugin` badges - Fixed plan acceptance dialog offering "auto mode" instead of "bypass permissions" when running with `--dangerously-skip-permissions` - Fixed agent-type hooks failing with "Messages are required for agent hooks" when configured for events other than `Stop` or `SubagentStop` - Fixed `prompt` hooks re-firing on tool calls made by an agent-hook verifier subagent - Fixed `/fork` writing the full parent conversation to disk per fork — now writes a pointer and hydrates on read - Fixed Alt+K / Alt+X / Alt+^ / Alt+_ freezing keyboard input - Fixed connecting to a remote session overwriting your local `model` setting in `~/.claude/settings.json` - Fixed typeahead showing "No commands match" error when pasting file paths that start with `/` - Fixed `plugin install` on an already-installed plugin not re-resolving a dependency installed at the wrong version - Fixed unhandled errors from file watcher on invalid paths or fd exhaustion - Fixed Remote Control sessions getting archived on transient CCR initialization blips during JWT refresh - Fixed subagents resumed via `SendMessage` not restoring the explicit `cwd` they were spawned with
v2.1.117Forked subagents、Agent MCP 支持、性能优化
- Forked subagents 可设置 `CLAUDE_CODE_FORK_SUBAGENT=1` 在外部构建启用
- Agent 前置 mcpServers 现支持主线程 agent 会话(via `--agent`)
- 启动时加载多个本地/claude.ai MCP 服务器并发执行,速度更快
- 修复 Opus 4.7 /context 百分比膨胀和过早自动压缩的问题
## 2.1.117 - Forked subagents can now be enabled on external builds by setting `CLAUDE_CODE_FORK_SUBAGENT=1` - Agent frontmatter `mcpServers` are now loaded for main-thread agent sessions via `--agent` - Improved `/model`: selections now persist across restarts even when the project pins a different model, and the startup header shows when the active model comes from a project or managed-settings pin - The `/resume` command now offers to summarize stale, large sessions before re-reading them, matching the existing `--resume` behavior - Faster startup when both local and claude.ai MCP servers are configured (concurrent connect now default) - `plugin install` on an already-installed plugin now installs any missing dependencies instead of stopping at "already installed" - Plugin dependency errors now say "not installed" with an install hint, and `claude plugin marketplace add` now auto-resolves missing dependencies from configured marketplaces - Managed-settings `blockedMarketplaces` and `strictKnownMarketplaces` are now enforced on plugin install, update, refresh, and autoupdate - Advisor Tool (experimental): dialog now carries an "experimental" label, learn-more link, and startup notification when enabled; sessions no longer get stuck with "Advisor tool result content could not be processed" errors on every prompt and `/compact` - The `cleanupPeriodDays` retention sweep now also covers `~/.claude/tasks/`, `~/.claude/shell-snapshots/`, and `~/.claude/backups/` - OpenTelemetry: `user_prompt` events now include `command_name` and `command_source` for slash commands; `cost.usage`, `token.usage`, `api_request`, and `api_error` now include an `effort` attribute when the model supports effort levels. Custom/MCP command names are redacted unless `OTEL_LOG_TOOL_DETAILS=1` is set - Native builds on macOS and Linux: the `Glob` and `Grep` tools are replaced by embedded `bfs` and `ugrep` available through the Bash tool — faster searches without a separate tool round-trip (Windows and npm-installed builds unchanged) - Windows: cached `where.exe` executable lookups per process for faster subprocess launches - Default effort for Pro/Max subscribers on Opus 4.6 and Sonnet 4.6 is now `high` (was `medium`) - Fixed Plain-CLI OAuth sessions dying with "Please run /login" when the access token expires mid-session — the token is now refreshed reactively on 401 - Fixed `WebFetch` hanging on very large HTML pages by truncating input before HTML-to-markdown conversion - Fixed a crash when a proxy returns HTTP 204 No Content — now surfaces a clear error instead of a `TypeError` - Fixed `/login` having no effect when launched with `CLAUDE_CODE_OAUTH_TOKEN` env var and that token expires - Fixed prompt-input undo (`Ctrl+_`) doing nothing immediately after typing, and skipping a state on each undo step - Fixed `NO_PROXY` not being respected for remote API requests when running under Bun - Fixed rare spurious escape/return triggers when key names arrive as coalesced text over slow connections - Fixed SDK `reload_plugins` reconnecting all user MCP servers serially - Fixed Bedrock application-inference-profile requests failing with 400 when backed by Opus 4.7 with thinking disabled - Fixed MCP `elicitation/create` requests auto-cancelling in print/SDK mode when the server finishes connecting mid-turn - Fixed subagents running a different model than the main agent incorrectly flagging file reads with a malware warning - Fixed idle re-render loop when background tasks are present, reducing memory growth on Linux - [VSCode] Fixed "Manage Plugins" panel breaking when multiple large marketplaces are configured - Fixed Opus 4.7 sessions showing inflated `/context` percentages and autocompacting too early — Claude Code was computing against a 200K context window instead of Opus 4.7's native 1M
v2.1.116大会话加速、滚动优化、思考进度、多项修复
- /resume 大会话速度提升最高 67%,处理超过 50MB 会话更高效
- VS Code/Cursor/Windsurf 全屏滚动更顺畅,新增滚动敏感度配置
- Thinking spinner 内联显示进度("still thinking"、"thinking more"、"almost done thinking")
- /config 搜索现支持匹配选项值,/doctor 可在响应期间打开
## 2.1.116
- `/resume` on large sessions is significantly faster (up to 67% on 40MB+ sessions) and handles sessions with many dead-fork entries more efficiently
- Faster MCP startup when multiple stdio servers are configured; `resources/templates/list` is now deferred to first `@`-mention
- Smoother fullscreen scrolling in VS Code, Cursor, and Windsurf terminals — `/terminal-setup` now configures the editor's scroll sensitivity
- Thinking spinner now shows progress inline ("still thinking", "thinking more", "almost done thinking"), replacing the separate hint row
- `/config` search now matches option values (e.g. searching "vim" finds the Editor mode setting)
- `/doctor` can now be opened while Claude is responding, without waiting for the current turn to finish
- `/reload-plugins` and background plugin auto-update now auto-install missing plugin dependencies from marketplaces you've already added
- Bash tool now surfaces a hint when `gh` commands hit GitHub's API rate limit, so agents can back off instead of retrying
- The Usage tab in Settings now shows your 5-hour and weekly usage immediately and no longer fails when the usage endpoint is rate-limited
- Agent frontmatter `hooks:` now fire when running as a main-thread agent via `--agent`
- Slash command menu now shows "No commands match" when your filter has zero results, instead of disappearing
- Security: sandbox auto-allow no longer bypasses the dangerous-path safety check for `rm`/`rmdir` targeting `/`, `$HOME`, or other critical system directories
- Claude Code and installer now use `https://downloads.claude.ai/claude-code-releases` instead of `https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases`
- Fixed Devanagari and other Indic scripts rendering with broken column alignment in the terminal UI
- Fixed Ctrl+- not triggering undo in terminals using the Kitty keyboard protocol (iTerm2, Ghostty, kitty, WezTerm, Windows Terminal)
- Fixed Cmd+Left/Right not jumping to line start/end in terminals that use the Kitty keyboard protocol (Warp fullscreen, kitty, Ghostty, WezTerm)
- Fixed Ctrl+Z hanging the terminal when Claude Code is launched via a wrapper process (e.g. `npx`, `bun run`)
- Fixed scrollback duplication in inline mode where resizing the terminal or large output bursts would repeat earlier conversation history
- Fixed modal search dialogs overflowing the screen at short terminal heights, hiding the search box and keyboard hints
- Fixed scattered blank cells and disappearing composer chrome in the VS Code integrated terminal during scrolling
- Fixed an intermittent API 400 error related to cache control TTL ordering that could occur when a parallel request completed during request setup
- Fixed `/branch` rejecting conversations with transcripts larger than 50MB
- Fixed `/resume` silently showing an empty conversation on large session files instead of reporting the load error
- Fixed `/plugin` Installed tab showing the same item twice when it appears under Needs attention or Favorites
- Fixed `/update` and `/tui` not working after entering a worktree mid-sessionv2.1.114权限对话框 agent 请求崩溃修复
- 修复 agent 团队成员请求工具权限时权限对话框崩溃
## 2.1.114 - Fixed a crash in the permission dialog when an agent teams teammate requested tool permission
v2.1.113本地二进制、域名黑名单、键盘快捷键增强
- CLI 改用平台特定本地二进制而非 bundled JavaScript,性能更优
- 支持 `sandbox.network.deniedDomains` 黑名单,可阻止特定域名
- Ctrl+A/E 移到当前逻辑行开始/结束(readline 行为),Windows 新增 Ctrl+Backspace 删除前一词
- 修复 MCP 并发调用超时处理中的消息互扰问题
## 2.1.113
- Changed the CLI to spawn a native Claude Code binary (via a per-platform optional dependency) instead of bundled JavaScript
- Added `sandbox.network.deniedDomains` setting to block specific domains even when a broader `allowedDomains` wildcard would otherwise permit them
- Fullscreen mode: Shift+↑/↓ now scrolls the viewport when extending a selection past the visible edge
- `Ctrl+A` and `Ctrl+E` now move to the start/end of the current logical line in multiline input, matching readline behavior
- Windows: `Ctrl+Backspace` now deletes the previous word
- Long URLs in responses and bash output stay clickable when they wrap across lines (in terminals with OSC 8 hyperlinks)
- Improved `/loop`: pressing Esc now cancels pending wakeups, and wakeups display as "Claude resuming /loop wakeup" for clarity
- `/extra-usage` now works from Remote Control (mobile/web) clients
- Remote Control clients can now query `@`-file autocomplete suggestions
- Improved `/ultrareview`: faster launch with parallelized checks, diffstat in the launch dialog, and animated launching state
- Subagents that stall mid-stream now fail with a clear error after 10 minutes instead of hanging silently
- Bash tool: multi-line commands whose first line is a comment now show the full command in the transcript, closing a UI-spoofing vector
- Running `cd <current-directory> && git …` no longer triggers a permission prompt when the `cd` is a no-op
- Security: on macOS, `/private/{etc,var,tmp,home}` paths are now treated as dangerous removal targets under `Bash(rm:*)` allow rules
- Security: Bash deny rules now match commands wrapped in `env`/`sudo`/`watch`/`ionice`/`setsid` and similar exec wrappers
- Security: `Bash(find:*)` allow rules no longer auto-approve `find -exec`/`-delete`
- Fixed MCP concurrent-call timeout handling where a message for one tool call could silently disarm another call's watchdog
- Fixed Cmd-backspace / `Ctrl+U` to once again delete from the cursor to the start of the line
- Fixed markdown tables breaking when a cell contains an inline code span with a pipe character
- Fixed session recap auto-firing while composing unsent text in the prompt
- Fixed `/copy` "Full response" not aligning markdown table columns for pasting into GitHub, Notion, or Slack
- Fixed messages typed while viewing a running subagent being hidden from its transcript and misattributed to the parent AI
- Fixed Bash `dangerouslyDisableSandbox` running commands outside the sandbox without a permission prompt
- Fixed `/effort auto` confirmation — now says "Effort level set to max" to match the status bar label
- Fixed the "copied N chars" toast overcounting emoji and other multi-code-unit characters
- Fixed `/insights` crashing with `EBUSY` on Windows
- Fixed exit confirmation dialog mislabeling one-shot scheduled tasks as recurring — now shows a countdown
- Fixed slash/@ completion menu not sitting flush against the prompt border in fullscreen mode
- Fixed `CLAUDE_CODE_EXTRA_BODY` `output_config.effort` causing 400 errors on subagent calls to models that don't support effort and on Vertex AI
- Fixed prompt cursor disappearing when `NO_COLOR` is set
- Fixed `ToolSearch` ranking so pasted MCP tool names surface the actual tool instead of description-matching siblings
- Fixed compacting a resumed long-context session failing with "Extra usage is required for long context requests"
- Fixed `plugin install` succeeding when a dependency version conflicts with an already-installed plugin — now reports `range-conflict`
- Fixed "Refine with Ultraplan" not showing the remote session URL in the transcript
- Fixed SDK image content blocks that fail to process crashing the session — now degrade to a text placeholder
- Fixed Remote Control sessions not streaming subagent transcripts
- Fixed Remote Control sessions not being archived when Claude Code exits
- Fixed `thinking.type.enabled is not supported` 400 error when using Opus 4.7 via a Bedrock Application Inference Profile ARNv2.1.112修复 auto 模式 Opus 可用性问题
- 修复 auto 模式下 Opus 4.7 暂时不可用的错误
## 2.1.112 - Fixed "claude-opus-4-7 is temporarily unavailable" for auto mode
v2.1.111Opus 4.7新智能级
- Opus 4.7引入xhigh智能级,通过/effort动态调整速度与能力
- 新增/ultrareview多智能体并行代码审查
- 权限提示优化,glob模式和cd命令无需频繁确认
- 计划文件采用提示词命名更易识别会话
## 2.1.111 - Claude Opus 4.7 xhigh is now available! Use /effort to tune speed vs. intelligence - Auto mode is now available for Max subscribers when using Opus 4.7 - Added `xhigh` effort level for Opus 4.7, sitting between `high` and `max`. Available via `/effort`, `--effort`, and the model picker; other models fall back to `high` - `/effort` now opens an interactive slider when called without arguments, with arrow-key navigation between levels and Enter to confirm - Added "Auto (match terminal)" theme option that matches your terminal's dark/light mode — select it from `/theme` - Added `/less-permission-prompts` skill — scans transcripts for common read-only Bash and MCP tool calls and proposes a prioritized allowlist for `.claude/settings.json` - Added `/ultrareview` for running comprehensive code review in the cloud using parallel multi-agent analysis and critique — invoke with no arguments to review your current branch, or `/ultrareview <PR#>` to fetch and review a specific GitHub PR - Auto mode no longer requires `--enable-auto-mode` - Windows: PowerShell tool is progressively rolling out. Opt in or out with `CLAUDE_CODE_USE_POWERSHELL_TOOL`. On Linux and macOS, enable with `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` (requires `pwsh` on PATH) - Read-only bash commands with glob patterns (e.g. `ls *.ts`) and commands starting with `cd <project-dir> &&` no longer trigger a permission prompt - Suggest the closest matching subcommand when `claude <word>` is invoked with a near-miss typo (e.g. `claude udpate` → "Did you mean `claude update`?") - Plan files are now named after your prompt (e.g. `fix-auth-race-snug-otter.md`) instead of purely random words - Improved `/setup-vertex` and `/setup-bedrock` to show the actual `settings.json` path when `CLAUDE_CONFIG_DIR` is set, seed model candidates from existing pins on re-run, and offer a "with 1M context" option for supported models - `/skills` menu now supports sorting by estimated token count — press `t` to toggle - `Ctrl+U` now clears the entire input buffer (previously: delete to start of line); press `Ctrl+Y` to restore - `Ctrl+L` now forces a full screen redraw in addition to clearing the prompt input - Transcript view footer now shows `[` (dump to scrollback) and `v` (open in editor) shortcuts - The "+N lines" marker for truncated long pastes is now a full-width rule for easier scanning - Headless `--output-format stream-json` now includes `plugin_errors` on the init event when plugins are demoted for unsatisfied dependencies - Added `OTEL_LOG_RAW_API_BODIES` environment variable to emit full API request and response bodies as OpenTelemetry log events for debugging - Suppressed spurious decompression, network, and transient error messages that could appear in the TUI during normal operation - Reverted the v2.1.110 cap on non-streaming fallback retries — it traded long waits for more outright failures during API overload - Fixed terminal display tearing (random characters, drifting input) in iTerm2 + tmux setups when terminal notifications are sent - Fixed `@` file suggestions re-scanning the entire project on every turn in non-git working directories, and showing only config files in freshly-initialized git repos with no tracked files - Fixed LSP diagnostics from before an edit appearing after it, causing the model to re-read files it just edited - Fixed tab-completing `/resume` immediately resuming an arbitrary titled session instead of showing the session picker - Fixed `/context` grid rendering with extra blank lines between rows - Fixed `/clear` dropping the session name set by `/rename`, causing statusline output to lose `session_name` - Improved plugin error handling: dependency errors now distinguish conflicting, invalid, and overly complex version requirements; fixed stale resolved versions after `plugin update`; `plugin install` now recovers from interrupted prior installs - Fixed Claude calling a non-existent `commit` skill and showing "Unknown skill: commit" for users without a custom `/commit` command - Fixed 429 rate-limit errors on Bedrock/Vertex/Foundry referencing status.claude.com (it only covers Anthropic-operated providers) - Fixed feedback surveys appearing back-to-back after dismissing one - Fixed bare URLs in bash/PowerShell/MCP tool output being unclickable when the terminal wraps them across lines - Windows: `CLAUDE_ENV_FILE` and SessionStart hook environment files now apply (previously a no-op) - Windows: permission rules with drive-letter paths are now correctly root-anchored, and paths differing only by drive-letter case are recognized as the same path
v2.1.110TUI全屏模式和推送
- /tui全屏模式提供无闪烁高效渲染
- Claude可发送移动推送通知(需Remote Control)
- 会话recap自动总结离线期间内容
- /plugin和/doctor界面大幅改进
破坏性变化
- Ctrl+O改为仅切换冗长模式,focus切换需改用/focus命令
## 2.1.110 - Added `/tui` command and `tui` setting — run `/tui fullscreen` to switch to flicker-free rendering in the same conversation - Added push notification tool — Claude can send mobile push notifications when Remote Control and "Push when Claude decides" config are enabled - Changed `Ctrl+O` to toggle between normal and verbose transcript only; focus view is now toggled separately with the new `/focus` command - Added `autoScrollEnabled` config to disable conversation auto-scroll in fullscreen mode - Added option to show Claude's last response as commented context in the `Ctrl+G` external editor (enable via `/config`) - Improved `/plugin` Installed tab — items needing attention and favorites appear at the top, disabled items are hidden behind a fold, and `f` favorites the selected item - Improved `/doctor` to warn when an MCP server is defined in multiple config scopes with different endpoints - `--resume`/`--continue` now resurrects unexpired scheduled tasks - `/context`, `/exit`, and `/reload-plugins` now work from Remote Control (mobile/web) clients - Write tool now informs the model when you edit the proposed content in the IDE diff before accepting - Bash tool now enforces the documented maximum timeout instead of accepting arbitrarily large values - SDK/headless sessions now read `TRACEPARENT`/`TRACESTATE` from the environment for distributed trace linking - Session recap is now enabled for users with telemetry disabled (Bedrock, Vertex, Foundry, `DISABLE_TELEMETRY`). Opt out via `/config` or `CLAUDE_CODE_ENABLE_AWAY_SUMMARY=0`. - Fixed MCP tool calls hanging indefinitely when the server connection drops mid-response on SSE/HTTP transports - Fixed non-streaming fallback retries causing multi-minute hangs when the API is unreachable - Fixed session recap, local slash-command output, and other system status lines not appearing in focus mode - Fixed high CPU usage in fullscreen when text is selected while a tool is running - Fixed plugin install not honoring dependencies declared in `plugin.json` when the marketplace entry omits them; `/plugin` install now lists auto-installed dependencies - Fixed skills with `disable-model-invocation: true` failing when invoked via `/<skill>` mid-message - Fixed `--resume` sometimes showing the first prompt instead of the `/rename` name for sessions still running or exited uncleanly - Fixed queued messages briefly appearing twice during multi-tool-call turns - Fixed session cleanup not removing the full session directory including subagent transcripts - Fixed dropped keystrokes after the CLI relaunches (e.g. `/tui`, provider setup wizards) - Fixed garbled startup rendering in macOS Terminal.app and other terminals that don't support synchronized output - Hardened "Open in editor" actions against command injection from untrusted filenames - Fixed `PermissionRequest` hooks returning `updatedInput` not being re-checked against `permissions.deny` rules; `setMode:'bypassPermissions'` updates now respect `disableBypassPermissionsMode` - Fixed `PreToolUse` hook `additionalContext` being dropped when the tool call fails - Fixed stdio MCP servers that print stray non-JSON lines to stdout being disconnected on the first stray line (regression in 2.1.105) - Fixed headless/SDK session auto-title firing an extra Haiku request when `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` or `CLAUDE_CODE_DISABLE_TERMINAL_TITLE` is set - Fixed potential excessive memory allocation when piped (non-TTY) Ink output contains a single very wide line - Fixed `/skills` menu not scrolling when the list overflows the modal in fullscreen mode - Fixed Remote Control sessions showing a generic error instead of prompting for re-login when the session is too old - Fixed Remote Control session renames from claude.ai not persisting the title to the local CLI session
v2.1.100-1095 个版本 · 5 已摘要
v2.1.109思维显示优化
- 思维过程指示器显示更清晰的进度提示
## 2.1.109 - Improved the extended-thinking indicator with a rotating progress hint
v2.1.108缓存和回顾功能
- 新增1小时提示缓存TTL选项提升持久化上下文
- Recap功能自动总结离线期间重要内容
- 模型可通过Skill发现和调用斜杠命令
- 优化内存占用语法高亮按需加载
## 2.1.108 - Added `ENABLE_PROMPT_CACHING_1H` env var to opt into 1-hour prompt cache TTL on API key, Bedrock, Vertex, and Foundry (`ENABLE_PROMPT_CACHING_1H_BEDROCK` is deprecated but still honored), and `FORCE_PROMPT_CACHING_5M` to force 5-minute TTL - Added recap feature to provide context when returning to a session, configurable in `/config` and manually invocable with `/recap`; force with `CLAUDE_CODE_ENABLE_AWAY_SUMMARY` if telemetry disabled. - The model can now discover and invoke built-in slash commands like `/init`, `/review`, and `/security-review` via the Skill tool - `/undo` is now an alias for `/rewind` - Improved `/model` to warn before switching models mid-conversation, since the next response re-reads the full history uncached - Improved `/resume` picker to default to sessions from the current directory; press `Ctrl+A` to show all projects - Improved error messages: server rate limits are now distinguished from plan usage limits; 5xx/529 errors show a link to status.claude.com; unknown slash commands suggest the closest match - Reduced memory footprint for file reads, edits, and syntax highlighting by loading language grammars on demand - Added "verbose" indicator when viewing the detailed transcript (`Ctrl+O`) - Added a warning at startup when prompt caching is disabled via `DISABLE_PROMPT_CACHING*` environment variables - Fixed paste not working in the `/login` code prompt (regression in 2.1.105) - Fixed subscribers who set `DISABLE_TELEMETRY` falling back to 5-minute prompt cache TTL instead of 1 hour - Fixed Agent tool prompting for permission in auto mode when the safety classifier's transcript exceeded its context window - Fixed Bash tool producing no output when `CLAUDE_ENV_FILE` (e.g. `~/.zprofile`) ends with a `#` comment line - Fixed `claude --resume <session-id>` losing the session's custom name and color set via `/rename` - Fixed session titles showing placeholder example text when the first message is a short greeting - Fixed terminal escape codes appearing as garbage text in the prompt input after `--teleport` - Fixed `/feedback` retry: pressing Enter to resubmit after a failure now works without first editing the description - Fixed `--teleport` and `--resume <id>` precondition errors (e.g. dirty git tree, session not found) exiting silently instead of showing the error message - Fixed Remote Control session titles set in the web UI being overwritten by auto-generated titles after the third message - Fixed `--resume` truncating sessions when the transcript contained a self-referencing message - Fixed transcript write failures (e.g., disk full) being silently dropped instead of being logged - Fixed diacritical marks (accents, umlauts, cedillas) being dropped from responses when the `language` setting is configured - Fixed policy-managed plugins never auto-updating when running from a different project than where they were first installed
v2.1.107思维提示优化
- 长操作时更快显示思维过程进度提示
## 2.1.107 - Show thinking hints sooner during long operations
v2.1.105Worktree功能扩展
- EnterWorktree支持path参数切换已存在worktree
- 新增PreCompact Hook允许阻止对话压缩
- 新增background monitor支持插件自动启动监视
- 改进API流式超时和文件写入显示
## 2.1.105
- Added `path` parameter to the `EnterWorktree` tool to switch into an existing worktree of the current repository
- Added PreCompact hook support: hooks can now block compaction by exiting with code 2 or returning `{"decision":"block"}`
- Added background monitor support for plugins via a top-level `monitors` manifest key that auto-arms at session start or on skill invoke
- `/proactive` is now an alias for `/loop`
- Improved stalled API stream handling: streams now abort after 5 minutes of no data and retry non-streaming instead of hanging indefinitely
- Improved network error messages: connection errors now show a retry message immediately instead of a silent spinner
- Improved file write display: long single-line writes (e.g. minified JSON) are now truncated in the UI instead of paginating across many screens
- Improved `/doctor` layout with status icons; press `f` to have Claude fix reported issues
- Improved `/config` labels and descriptions for clarity
- Improved skill description handling: raised the listing cap from 250 to 1,536 characters and added a startup warning when descriptions are truncated
- Improved `WebFetch` to strip `<style>` and `<script>` contents from fetched pages so CSS-heavy pages no longer exhaust the content budget before reaching actual text
- Improved stale agent worktree cleanup to remove worktrees whose PR was squash-merged instead of keeping them indefinitely
- Improved MCP large-output truncation prompt to give format-specific recipes (e.g. `jq` for JSON, computed Read chunk sizes for text)
- Fixed images attached to queued messages (sent while Claude is working) being dropped
- Fixed screen going blank when the prompt input wraps to a second line in long conversations
- Fixed leading whitespace getting copied when selecting multi-line assistant responses in fullscreen mode
- Fixed leading whitespace being trimmed from assistant messages, breaking ASCII art and indented diagrams
- Fixed garbled bash output when commands print clickable file links (e.g. Python `rich`/`loguru` logging)
- Fixed alt+enter not inserting a newline in terminals using ESC-prefix alt encoding, and Ctrl+J not inserting a newline (regression in 2.1.100)
- Fixed duplicate "Creating worktree" text in EnterWorktree/ExitWorktree tool display
- Fixed queued user prompts disappearing from focus mode
- Fixed one-shot scheduled tasks re-firing repeatedly when the file watcher missed the post-fire cleanup
- Fixed inbound channel notifications being silently dropped after the first message for Team/Enterprise users
- Fixed marketplace plugins with `package.json` and lockfile not having dependencies installed automatically after install/update
- Fixed marketplace auto-update leaving the official marketplace in a broken state when a plugin process holds files open during the update
- Fixed "Resume this session with..." hint not printing on exit after `/resume`, `--worktree`, or `/branch`
- Fixed feedback survey shortcut keys firing when typed at the end of a longer prompt
- Fixed stdio MCP server emitting malformed (non-JSON) output hanging the session instead of failing fast with "Connection closed"
- Fixed MCP tools missing on the first turn of headless/remote-trigger sessions when MCP servers connect asynchronously
- Fixed `/model` picker on AWS Bedrock in non-US regions persisting invalid `us.*` model IDs to `settings.json` when inference profile discovery is still in-flight
- Fixed 429 rate-limit errors showing a raw JSON dump instead of a clean message for API-key, Bedrock, and Vertex users
- Fixed crash on resume when session contains malformed text blocks
- Fixed `/help` dropping the tab bar, Shortcuts heading, and footer at short terminal heights
- Fixed malformed keybinding entry values in `keybindings.json` being silently loaded instead of rejected with a clear error
- Fixed `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` in one project's settings permanently disabling usage metrics for all projects on the machine
- Fixed washed-out 16-color palette when using Ghostty, Kitty, Alacritty, WezTerm, foot, rio, or Contour over SSH/mosh
- Fixed Bash tool suggesting `acceptEdits` permission mode when exiting plan mode would downgrade from a higher permission levelv2.1.101团队指南与安全修复
- /team-onboarding自动生成团队成员入门指南
- Google Vertex AI登录向导简化GCP认证
- 修复Bash权限检查安全漏洞增强防护
- 默认信任系统CA证书企业代理无需额外配置
## 2.1.101 - Added `/team-onboarding` command to generate a teammate ramp-up guide from your local Claude Code usage - Added OS CA certificate store trust by default, so enterprise TLS proxies work without extra setup (set `CLAUDE_CODE_CERT_STORE=bundled` to use only bundled CAs) - `/ultraplan` and other remote-session features now auto-create a default cloud environment instead of requiring web setup first - Improved brief mode to retry once when Claude responds with plain text instead of a structured message - Improved focus mode: Claude now writes more self-contained summaries since it knows you only see its final message - Improved tool-not-available errors to explain why and how to proceed when the model calls a tool that exists but isn't available in the current context - Improved rate-limit retry messages to show which limit was hit and when it resets instead of an opaque seconds countdown - Improved refusal error messages to include the API-provided explanation when available - Improved `claude -p --resume <name>` to accept session titles set via `/rename` or `--name` - Improved settings resilience: an unrecognized hook event name in `settings.json` no longer causes the entire file to be ignored - Improved plugin hooks from plugins force-enabled by managed settings to run when `allowManagedHooksOnly` is set - Improved `/plugin` and `claude plugin update` to show a warning when the marketplace could not be refreshed, instead of silently reporting a stale version - Improved plan mode to hide the "Refine with Ultraplan" option when the user's org or auth setup can't reach Claude Code on the web - Improved beta tracing to honor `OTEL_LOG_USER_PROMPTS`, `OTEL_LOG_TOOL_DETAILS`, and `OTEL_LOG_TOOL_CONTENT`; sensitive span attributes are no longer emitted unless opted in - Improved SDK `query()` to clean up subprocess and temp files when consumers `break` from `for await` or use `await using` - Fixed a command injection vulnerability in the POSIX `which` fallback used by LSP binary detection - Fixed a memory leak where long sessions retained dozens of historical copies of the message list in the virtual scroller - Fixed `--resume`/`--continue` losing conversation context on large sessions when the loader anchored on a dead-end branch instead of the live conversation - Fixed `--resume` chain recovery bridging into an unrelated subagent conversation when a subagent message landed near a main-chain write gap - Fixed a crash on `--resume` when a persisted Edit/Write tool result was missing its `file_path` - Fixed a hardcoded 5-minute request timeout that aborted slow backends (local LLMs, extended thinking, slow gateways) regardless of `API_TIMEOUT_MS` - Fixed `permissions.deny` rules not overriding a PreToolUse hook's `permissionDecision: "ask"` — previously the hook could downgrade a deny into a prompt - Fixed `--setting-sources` without `user` causing background cleanup to ignore `cleanupPeriodDays` and delete conversation history older than 30 days - Fixed Bedrock SigV4 authentication failing with 403 when `ANTHROPIC_AUTH_TOKEN`, `apiKeyHelper`, or `ANTHROPIC_CUSTOM_HEADERS` set an Authorization header - Fixed `claude -w <name>` failing with "already exists" after a previous session's worktree cleanup left a stale directory - Fixed subagents not inheriting MCP tools from dynamically-injected servers - Fixed sub-agents running in isolated worktrees being denied Read/Edit access to files inside their own worktree - Fixed sandboxed Bash commands failing with `mktemp: No such file or directory` after a fresh boot - Fixed `claude mcp serve` tool calls failing with "Tool execution failed" in MCP clients that validate `outputSchema` - Fixed `RemoteTrigger` tool's `run` action sending an empty body and being rejected by the server - Fixed several `/resume` picker issues: narrow default view hiding sessions from other projects, unreachable preview on Windows Terminal, incorrect cwd in worktrees, session-not-found errors not surfacing in stderr, terminal title not being set, and resume hint overlapping the prompt input - Fixed Grep tool ENOENT when the embedded ripgrep binary path becomes stale (VS Code extension auto-update, macOS App Translocation); now falls back to system `rg` and self-heals mid-session - Fixed `/btw` writing a copy of the entire conversation to disk on every use - Fixed `/context` Free space and Messages breakdown disagreeing with the header percentage - Fixed several plugin issues: slash commands resolving to the wrong plugin with duplicate `name:` frontmatter, `/plugin update` failing with `ENAMETOOLONG`, Discover showing already-installed plugins, directory-source plugins loading from a stale version cache, and skills not honoring `context: fork` and `agent` frontmatter fields - Fixed the `/mcp` menu offering OAuth-specific actions for MCP servers configured with `headersHelper`; Reconnect is now offered instead to re-invoke the helper script - Fixed `ctrl+]`, `ctrl+\`, and `ctrl+^` keybindings not firing in terminals that send raw C0 control bytes (Terminal.app, default iTerm2, xterm) - Fixed `/login` OAuth URL rendering with padding that prevented clean mouse selection - Fixed rendering issues: flicker in non-fullscreen mode when content above the visible area changed, terminal scrollback being wiped during long sessions in non-fullscreen mode, and mouse-scroll escape sequences occasionally leaking into the prompt as text - Fixed crash when `settings.json` env values are numbers instead of strings - Fixed in-app settings writes (e.g. `/add-dir --remember`, `/config`) not refreshing the in-memory snapshot, preventing removed directories from being revoked mid-session - Fixed custom keybindings (`~/.claude/keybindings.json`) not loading on Bedrock, Vertex, and other third-party providers - Fixed `claude --continue -p` not correctly continuing sessions created by `-p` or the SDK - Fixed several Remote Control issues: worktrees removed on session crash, connection failures not persisting in the transcript, spurious "Disconnected" indicator in brief mode for local sessions, and `/remote-control` failing over SSH when only `CLAUDE_CODE_ORGANIZATION_UUID` is set - Fixed `/insights` sometimes omitting the report file link from its response - [VSCode] Fixed the file attachment below the chat input not clearing when the last editor tab is closed
v2.1.90-997 个版本 · 7 已摘要
v2.1.98Vertex向导工具集
- Vertex AI向导支持GCP认证、项目配置和模型锁定
- 新增Monitor工具用于后台脚本事件流监听
- 新增进程沙箱隔离和Perforce模式支持
- 修复大量Bash权限规则漏洞增强安全检查
## 2.1.98
- Added interactive Google Vertex AI setup wizard accessible from the login screen when selecting "3rd-party platform", guiding you through GCP authentication, project and region configuration, credential verification, and model pinning
- Added `CLAUDE_CODE_PERFORCE_MODE` env var: when set, Edit/Write/NotebookEdit fail on read-only files with a `p4 edit` hint instead of silently overwriting them
- Added Monitor tool for streaming events from background scripts
- Added subprocess sandboxing with PID namespace isolation on Linux when `CLAUDE_CODE_SUBPROCESS_ENV_SCRUB` is set, and `CLAUDE_CODE_SCRIPT_CAPS` env var to limit per-session script invocations
- Added `--exclude-dynamic-system-prompt-sections` flag to print mode for improved cross-user prompt caching
- Added `workspace.git_worktree` to the status line JSON input, set whenever the current directory is inside a linked git worktree
- Added W3C `TRACEPARENT` env var to Bash tool subprocesses when OTEL tracing is enabled, so child-process spans correctly parent to Claude Code's trace tree
- LSP: Claude Code now identifies itself to language servers via `clientInfo` in the initialize request
- Fixed a Bash tool permission bypass where a backslash-escaped flag could be auto-allowed as read-only and lead to arbitrary code execution
- Fixed compound Bash commands bypassing forced permission prompts for safety checks and explicit ask rules in auto and bypass-permissions modes
- Fixed read-only commands with env-var prefixes not prompting unless the var is known-safe (`LANG`, `TZ`, `NO_COLOR`, etc.)
- Fixed redirects to `/dev/tcp/...` or `/dev/udp/...` not prompting instead of auto-allowing
- Fixed stalled streaming responses timing out instead of falling back to non-streaming mode
- Fixed 429 retries burning all attempts in ~13s when the server returns a small `Retry-After` — exponential backoff now applies as a minimum
- Fixed MCP OAuth `oauth.authServerMetadataUrl` config override not being honored on token refresh after restart, affecting ADFS and similar IdPs
- Fixed capital letters being dropped to lowercase on xterm and VS Code integrated terminal when the kitty keyboard protocol is active
- Fixed macOS text replacements deleting the trigger word instead of inserting the substitution
- Fixed `--dangerously-skip-permissions` being silently downgraded to accept-edits mode after approving a write to a protected path via Bash
- Fixed managed-settings allow rules remaining active after an admin removed them, until process restart
- Fixed `permissions.additionalDirectories` changes not applying mid-session — removed directories lose access immediately and added ones work without restart
- Fixed removing a directory from `additionalDirectories` revoking access to the same directory passed via `--add-dir`
- Fixed `Bash(cmd:*)` and `Bash(git commit *)` wildcard permission rules failing to match commands with extra spaces or tabs
- Fixed `Bash(...)` deny rules being downgraded to a prompt for piped commands that mix `cd` with other segments
- Fixed false Bash permission prompts for `cut -d /`, `paste -d /`, `column -s /`, `awk '{print $1}' file`, and filenames containing `%`
- Fixed permission rules with names matching JavaScript prototype properties (e.g. `toString`) causing `settings.json` to be silently ignored
- Fixed agent team members not inheriting the leader's permission mode when using `--dangerously-skip-permissions`
- Fixed a crash in fullscreen mode when hovering over MCP tool results
- Fixed copying wrapped URLs in fullscreen mode inserting spaces at line breaks
- Fixed file-edit diffs disappearing from the UI on `--resume` when the edited file was larger than 10KB
- Fixed several `/resume` picker issues: `--resume <name>` opening uneditable, filter reload wiping search state, empty list swallowing arrow keys, cross-project staleness, and transient task-status text replacing conversation summaries
- Fixed `/export` not honoring absolute paths and `~`, and silently rewriting user-supplied extensions to `.txt`
- Fixed `/effort max` being denied for unknown or future model IDs
- Fixed slash command picker breaking when a plugin's frontmatter `name` is a YAML boolean keyword
- Fixed rate-limit upsell text being hidden after message remounts
- Fixed MCP tools with `_meta["anthropic/maxResultSizeChars"]` not bypassing the token-based persist layer
- Fixed voice mode leaking dozens of space characters into the input when re-holding the push-to-talk key while the previous transcript is still processing
- Fixed `DISABLE_AUTOUPDATER` not fully suppressing the npm registry version check and symlink modification on npm-based installs
- Fixed a memory leak where Remote Control permission handler entries were retained for the lifetime of the session
- Fixed background subagents that fail with an error not reporting partial progress to the parent agent
- Fixed prompt-type Stop/SubagentStop hooks failing on long sessions, and hook evaluator API errors showing "JSON validation failed" instead of the real message
- Fixed feedback survey rendering when dismissed
- Fixed Bash `grep -f FILE` / `rg -f FILE` not prompting when reading a pattern file outside the working directory
- Fixed stale subagent worktree cleanup removing worktrees that contain untracked files
- Fixed `sandbox.network.allowMachLookup` not taking effect on macOS
- Improved `/resume` filter hint labels and added project/worktree/branch names in the filter indicator
- Improved footer indicators (Focus, notifications) to stay on the mode-indicator row instead of wrapping at narrow terminal widths
- Improved `/agents` with a tabbed layout: a Running tab shows live subagents, and the Library tab adds Run agent and View running instance actions
- Improved `/reload-plugins` to pick up plugin-provided skills without requiring a restart
- Improved Accept Edits mode to auto-approve filesystem commands prefixed with safe env vars or process wrappers
- Improved Vim mode: `j`/`k` in NORMAL mode now navigate history and select the footer pill at the input boundary
- Improved hook errors in the transcript to include the first line of stderr for self-diagnosis without `--debug`
- Improved OTEL tracing: interaction spans now correctly wrap full turns under concurrent SDK calls, and headless turns end spans per-turn
- Improved transcript entries to carry final token usage instead of streaming placeholders
- Updated the `/claude-api` skill to cover Managed Agents alongside Claude API
- [VSCode] Fixed false-positive "requires git-bash" error on Windows when `CLAUDE_CODE_GIT_BASH_PATH` is set or Git is installed at a default location
- Fixed `CLAUDE_CODE_MAX_CONTEXT_TOKENS` to honor `DISABLE_COMPACT` when it is set.
- Dropped `/compact` hints when `DISABLE_COMPACT` is set.v2.1.97焦点视图与大量bug修复
- NO_FLICKER 模式新增焦点视图切换 (Ctrl+O),简化显示提示词和响应摘要
- 修复 MCP 连接缓冲泄漏和 OAuth Token 刷新问题
- 修复 --resume 选择器失效和文件编辑 diff 丢失的多个问题
- 改进 CJK 文本处理,支持中日文输入后的命令补全
## 2.1.97 - Added focus view toggle (`Ctrl+O`) in `NO_FLICKER` mode showing prompt, one-line tool summary with edit diffstats, and final response - Added `refreshInterval` status line setting to re-run the status line command every N seconds - Added `workspace.git_worktree` to the status line JSON input, set when the current directory is inside a linked git worktree - Added `● N running` indicator in `/agents` next to agent types with live subagent instances - Added syntax highlighting for Cedar policy files (`.cedar`, `.cedarpolicy`) - Fixed `--dangerously-skip-permissions` being silently downgraded to accept-edits mode after approving a write to a protected path - Fixed and hardened Bash tool permissions, tightening checks around env-var prefixes and network redirects, and reducing false prompts on common commands - Fixed permission rules with names matching JavaScript prototype properties (e.g. `toString`) causing `settings.json` to be silently ignored - Fixed managed-settings allow rules remaining active after an admin removed them until process restart - Fixed `permissions.additionalDirectories` changes in settings not applying mid-session - Fixed removing a directory from `settings.permissions.additionalDirectories` revoking access to the same directory passed via `--add-dir` - Fixed MCP HTTP/SSE connections accumulating ~50 MB/hr of unreleased buffers when servers reconnect - Fixed MCP OAuth `oauth.authServerMetadataUrl` not being honored on token refresh after restart, fixing ADFS and similar IdPs - Fixed 429 retries burning all attempts in ~13 seconds when the server returns a small `Retry-After` — exponential backoff now applies as a minimum - Fixed rate-limit upgrade options disappearing after context compaction - Fixed several `/resume` picker issues: `--resume <name>` opening uneditable, Ctrl+A reload wiping search, empty list swallowing navigation, task-status text replacing conversation summary, and cross-project staleness - Fixed file-edit diffs disappearing on `--resume` when the edited file was larger than 10KB - Fixed `--resume` cache misses and lost mid-turn input from attachment messages not being saved to the transcript - Fixed messages typed while Claude is working not being persisted to the transcript - Fixed prompt-type `Stop`/`SubagentStop` hooks failing on long sessions, and hook evaluator API errors displaying "JSON validation failed" instead of the actual message - Fixed subagents with worktree isolation or `cwd:` override leaking their working directory back to the parent session's Bash tool - Fixed compaction writing duplicate multi-MB subagent transcript files on prompt-too-long retries - Fixed `claude plugin update` reporting "already at the latest version" for git-based marketplace plugins when the remote had newer commits - Fixed slash command picker breaking when a plugin's frontmatter `name` is a YAML boolean keyword - Fixed copying wrapped URLs in `NO_FLICKER` mode inserting spaces at line breaks - Fixed scroll rendering artifacts in `NO_FLICKER` mode when running inside zellij - Fixed a crash in `NO_FLICKER` mode when hovering over MCP tool results - Fixed a `NO_FLICKER` mode memory leak where API retries left stale streaming state - Fixed slow mouse-wheel scrolling in `NO_FLICKER` mode on Windows Terminal - Fixed custom status line not displaying in `NO_FLICKER` mode on terminals shorter than 24 rows - Fixed Shift+Enter and Alt/Cmd+arrow shortcuts not working in Warp with `NO_FLICKER` mode - Fixed Korean/Japanese/Unicode text becoming garbled when copied in no-flicker mode on Windows - Fixed Bedrock SigV4 authentication failing when `AWS_BEARER_TOKEN_BEDROCK` or `ANTHROPIC_BEDROCK_BASE_URL` are set to empty strings (as GitHub Actions does for unset inputs) - Improved Accept Edits mode to auto-approve filesystem commands prefixed with safe env vars or process wrappers (e.g. `LANG=C rm foo`, `timeout 5 mkdir out`) - Improved auto mode and bypass-permissions mode to auto-approve sandbox network access prompts - Improved sandbox: `sandbox.network.allowMachLookup` now takes effect on macOS - Improved image handling: pasted and attached images are now compressed to the same token budget as images read via the Read tool - Improved slash command and `@`-mention completion to trigger after CJK sentence punctuation, so Japanese/Chinese input no longer requires a space before `/` or `@` - Improved Bridge sessions to show the local git repo, branch, and working directory on the claude.ai session card - Improved footer layout: indicators (Focus, notifications) now stay on the mode-indicator row instead of wrapping below - Improved context-low warning to show as a transient footer notification instead of a persistent row - Improved markdown blockquotes to show a continuous left bar across wrapped lines - Improved session transcript size by skipping empty hook entries and capping stored pre-edit file copies - Improved transcript accuracy: per-block entries now carry the final token usage instead of the streaming placeholder - Improved Bash tool OTEL tracing: subprocesses now inherit a W3C `TRACEPARENT` env var when tracing is enabled - Updated `/claude-api` skill to cover Managed Agents alongside the Claude API
v2.1.96Bedrock认证修复
- 修复使用 AWS_BEARER_TOKEN_BEDROCK 时的 403 授权失败
## 2.1.96 - Fixed Bedrock requests failing with `403 "Authorization header is missing"` when using `AWS_BEARER_TOKEN_BEDROCK` or `CLAUDE_CODE_SKIP_BEDROCK_AUTH` (regression in 2.1.94)
v2.1.94新增Bedrock和effort调整
- 新增 Amazon Bedrock via Mantle 支持,设置 CLAUDE_CODE_USE_MANTLE=1 启用
- API/Bedrock/Vertex 用户的默认 effort 从 medium 改为 high
- Plugin skill 使用 frontmatter name 作为稳定的调用名称
- 新增 Slack channel 消息的紧凑链接头信息
破坏性变化
- 默认 effort 级别从 medium 改为 high (可通过 /effort 调整)
## 2.1.94
- Added support for Amazon Bedrock powered by Mantle, set `CLAUDE_CODE_USE_MANTLE=1`
- Changed default effort level from medium to high for API-key, Bedrock/Vertex/Foundry, Team, and Enterprise users (control this with `/effort`)
- Added compact `Slacked #channel` header with a clickable channel link for Slack MCP send-message tool calls
- Added `keep-coding-instructions` frontmatter field support for plugin output styles
- Added `hookSpecificOutput.sessionTitle` to `UserPromptSubmit` hooks for setting the session title
- Plugin skills declared via `"skills": ["./"]` now use the skill's frontmatter `name` for the invocation name instead of the directory basename, giving a stable name across install methods
- Fixed agents appearing stuck after a 429 rate-limit response with a long Retry-After header — the error now surfaces immediately instead of silently waiting
- Fixed Console login on macOS silently failing with "Not logged in" when the login keychain is locked or its password is out of sync — the error is now surfaced and `claude doctor` diagnoses the fix
- Fixed plugin skill hooks defined in YAML frontmatter being silently ignored
- Fixed plugin hooks failing with "No such file or directory" when `CLAUDE_PLUGIN_ROOT` was not set
- Fixed `${CLAUDE_PLUGIN_ROOT}` resolving to the marketplace source directory instead of the installed cache for local-marketplace plugins on startup
- Fixed scrollback showing the same diff repeated and blank pages in long-running sessions
- Fixed multiline user prompts in the transcript indenting wrapped lines under the `❯` caret instead of under the text
- Fixed Shift+Space inserting the literal word "space" instead of a space character in search inputs
- Fixed hyperlinks opening two browser tabs when clicked inside tmux running in an xterm.js-based terminal (VS Code, Hyper, Tabby)
- Fixed an alt-screen rendering bug where content height changes mid-scroll could leave compounding ghost lines
- Fixed `FORCE_HYPERLINK` environment variable being ignored when set via `settings.json` `env`
- Fixed native terminal cursor not tracking the selected tab in dialogs, so screen readers and magnifiers can follow tab navigation
- Fixed Bedrock invocation of Sonnet 3.5 v2 by using the `us.` inference profile ID
- Fixed SDK/print mode not preserving the partial assistant response in conversation history when interrupted mid-stream
- Improved `--resume` to resume sessions from other worktrees of the same repo directly instead of printing a `cd` command
- Fixed CJK and other multibyte text being corrupted with U+FFFD in stream-json input/output when chunk boundaries split a UTF-8 sequence
- [VSCode] Reduced cold-open subprocess work on starting a session
- [VSCode] Fixed dropdown menus selecting the wrong item when the mouse was over the list while typing or using arrow keys
- [VSCode] Added a warning banner when `settings.json` files fail to parse, so users know their permission rules are not being appliedv2.1.92Bedrock向导与托管设置
- Bedrock 登录页新增交互式配置向导,引导 AWS 认证和模型选择
- 新增 forceRemoteSettingsRefresh 策略强制刷新托管设置
- /cost 新增按模型和缓存命中率的详细成本分析
- /release-notes 改为交互式版本选择器
## 2.1.92 - Added `forceRemoteSettingsRefresh` policy setting: when set, the CLI blocks startup until remote managed settings are freshly fetched, and exits if the fetch fails (fail-closed) - Added interactive Bedrock setup wizard accessible from the login screen when selecting "3rd-party platform" — guides you through AWS authentication, region configuration, credential verification, and model pinning - Added per-model and cache-hit breakdown to `/cost` for subscription users - `/release-notes` is now an interactive version picker - Remote Control session names now use your hostname as the default prefix (e.g. `myhost-graceful-unicorn`), overridable with `--remote-control-session-name-prefix` - Pro users now see a footer hint when returning to a session after the prompt cache has expired, showing roughly how many tokens the next turn will send uncached - Fixed subagent spawning permanently failing with "Could not determine pane count" after tmux windows are killed or renumbered during a long-running session - Fixed prompt-type Stop hooks incorrectly failing when the small fast model returns `ok:false`, and restored `preventContinuation:true` semantics for non-Stop prompt-type hooks - Fixed tool input validation failures when streaming emits array/object fields as JSON-encoded strings - Fixed an API 400 error that could occur when extended thinking produced a whitespace-only text block alongside real content - Fixed accidental feedback survey submissions from auto-pilot keypresses and consecutive-prompt digit collisions - Fixed misleading "esc to interrupt" hint appearing alongside "esc to clear" when a text selection exists in fullscreen mode during processing - Fixed Homebrew install update prompts to use the cask's release channel (`claude-code` → stable, `claude-code@latest` → latest) - Fixed `ctrl+e` jumping to the end of the next line when already at end of line in multiline prompts - Fixed an issue where the same message could appear at two positions when scrolling up in fullscreen mode (iTerm2, Ghostty, and other terminals with DEC 2026 support) - Fixed idle-return "/clear to save X tokens" hint showing cumulative session tokens instead of current context size - Fixed plugin MCP servers stuck "connecting" on session start when they duplicate a claude.ai connector that is unauthenticated - Improved Write tool diff computation speed for large files (60% faster on files with tabs/`&`/`$`) - Removed `/tag` command - Removed `/vim` command (toggle vim mode via `/config` → Editor mode) - Linux sandbox now ships the `apply-seccomp` helper in both npm and native builds, restoring unix-socket blocking for sandboxed commands
v2.1.91MCP结果持久化和Plugin执行
- MCP Tool 结果通过 _meta 注解支持最大 500K 字符的超限持久化
- 新增 disableSkillShellExecution 设置禁用 Skill 的 shell 执行
- Plugin 可在 bin/ 目录下放置可执行文件并直接调用
- 修复 --resume 导致的会话链断裂和远程 plan 文件丢失
## 2.1.91 - Added MCP tool result persistence override via `_meta["anthropic/maxResultSizeChars"]` annotation (up to 500K), allowing larger results like DB schemas to pass through without truncation - Added `disableSkillShellExecution` setting to disable inline shell execution in skills, custom slash commands, and plugin commands - Added support for multi-line prompts in `claude-cli://open?q=` deep links (encoded newlines `%0A` no longer rejected) - Plugins can now ship executables under `bin/` and invoke them as bare commands from the Bash tool - Fixed transcript chain breaks on `--resume` that could lose conversation history when async transcript writes fail silently - Fixed `cmd+delete` not deleting to start of line on iTerm2, kitty, WezTerm, Ghostty, and Windows Terminal - Fixed plan mode in remote sessions losing track of the plan file after a container restart, which caused permission prompts on plan edits and an empty plan-approval modal - Fixed JSON schema validation for `permissions.defaultMode: "auto"` in settings.json - Fixed Windows version cleanup not protecting the active version's rollback copy - `/feedback` now explains why it's unavailable instead of disappearing from the slash menu - Improved `/claude-api` skill guidance for agent design patterns including tool surface decisions, context management, and caching strategy - Improved performance: faster `stripAnsi` on Bun by routing through `Bun.stripANSI` - Edit tool now uses shorter `old_string` anchors, reducing output tokens
v2.1.90交互教程与性能优化
- 新增 /powerup 命令提供交互式特性教程和动画演示
- 修复 rate-limit 超限后无限重复弹窗导致的奔溃
- 修复 --resume 因 deferred tool 导致的缓存全量失效
- 优化性能:SSE 传输、JSON 序列化、转录写入等
破坏性变化
- 移除 /tag 命令
- 移除 /vim 命令 (改为通过 /config 的编辑器模式切换)
## 2.1.90
- Added `/powerup` — interactive lessons teaching Claude Code features with animated demos
- Added `CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE` env var to keep the existing marketplace cache when `git pull` fails, useful in offline environments
- Added `.husky` to protected directories (acceptEdits mode)
- Fixed an infinite loop where the rate-limit options dialog would repeatedly auto-open after hitting your usage limit, eventually crashing the session
- Fixed `--resume` causing a full prompt-cache miss on the first request for users with deferred tools, MCP servers, or custom agents (regression since v2.1.69)
- Fixed `Edit`/`Write` failing with "File content has changed" when a PostToolUse format-on-save hook rewrites the file between consecutive edits
- Fixed `PreToolUse` hooks that emit JSON to stdout and exit with code 2 not correctly blocking the tool call
- Fixed collapsed search/read summary badge appearing multiple times in fullscreen scrollback when a CLAUDE.md file auto-loads during a tool call
- Fixed auto mode not respecting explicit user boundaries ("don't push", "wait for X before Y") even when the action would otherwise be allowed
- Fixed click-to-expand hover text being nearly invisible on light terminal themes
- Fixed UI crash when malformed tool input reached the permission dialog
- Fixed headers disappearing when scrolling `/model`, `/config`, and other selection screens
- Hardened PowerShell tool permission checks: fixed trailing `&` background job bypass, `-ErrorAction Break` debugger hang, archive-extraction TOCTOU, and parse-fail fallback deny-rule degradation
- Improved performance: eliminated per-turn JSON.stringify of MCP tool schemas on cache-key lookup
- Improved performance: SSE transport now handles large streamed frames in linear time (was quadratic)
- Improved performance: SDK sessions with long conversations no longer slow down quadratically on transcript writes
- Improved `/resume` all-projects view to load project sessions in parallel, improving load times for users with many projects
- Changed `--resume` picker to no longer show sessions created by `claude -p` or SDK invocations
- Removed `Get-DnsClientCache` and `ipconfig /displaydns` from auto-allow (DNS cache privacy)v2.1.80-898 个版本 · 8 已摘要
v2.1.89权限defer决策支持
- PreToolUse Hook 新增 "defer" 决策,无头会话可暂停后通过 -p --resume 继续
- 新增 CLAUDE_CODE_NO_FLICKER=1 环境变量启用无闪烁呈现
- 新增 PermissionDenied Hook 允许 auto 模式在被拒后重试
- 修复 Edit/Write 的 CRLF 加倍和 Markdown 换行符丢失问题
破坏性变化
- 思考总结默认不再生成,设置 showThinkingSummaries: true 启用
## 2.1.89
- Added `"defer"` permission decision to `PreToolUse` hooks — headless sessions can pause at a tool call and resume with `-p --resume` to have the hook re-evaluate
- Added `CLAUDE_CODE_NO_FLICKER=1` environment variable to opt into flicker-free alt-screen rendering with virtualized scrollback
- Added `PermissionDenied` hook that fires after auto mode classifier denials — return `{retry: true}` to tell the model it can retry
- Added named subagents to `@` mention typeahead suggestions
- Added `MCP_CONNECTION_NONBLOCKING=true` for `-p` mode to skip the MCP connection wait entirely, and bounded `--mcp-config` server connections at 5s instead of blocking on the slowest server
- Auto mode: denied commands now show a notification and appear in `/permissions` → Recent tab where you can retry with `r`
- Fixed `Edit(//path/**)` and `Read(//path/**)` allow rules to check the resolved symlink target, not just the requested path
- Fixed voice push-to-talk not activating for some modifier-combo bindings, and voice mode on Windows failing with "WebSocket upgrade rejected with HTTP 101"
- Fixed Edit/Write tools doubling CRLF on Windows and stripping Markdown hard line breaks (two trailing spaces)
- Fixed `StructuredOutput` schema cache bug causing ~50% failure rate when using multiple schemas
- Fixed memory leak where large JSON inputs were retained as LRU cache keys in long-running sessions
- Fixed a crash when removing a message from very large session files (over 50MB)
- Fixed LSP server zombie state after crash — server now restarts on next request instead of failing until session restart
- Fixed prompt history entries containing CJK or emoji being silently dropped when they fall on a 4KB boundary in `~/.claude/history.jsonl`
- Fixed `/stats` undercounting tokens by excluding subagent usage, and losing historical data beyond 30 days when the stats cache format changes
- Fixed `-p --resume` hangs when the deferred tool input exceeds 64KB or no deferred marker exists, and `-p --continue` not resuming deferred tools
- Fixed `claude-cli://` deep links not opening on macOS
- Fixed MCP tool errors truncating to only the first content block when the server returns multi-element error content
- Fixed skill reminders and other system context being dropped when sending messages with images via the SDK
- Fixed PreToolUse/PostToolUse hooks to receive `file_path` as an absolute path for Write/Edit/Read tools, matching the documented behavior
- Fixed autocompact thrash loop — now detects when context refills to the limit immediately after compacting three times in a row and stops with an actionable error instead of burning API calls
- Fixed prompt cache misses in long sessions caused by tool schema bytes changing mid-session
- Fixed nested CLAUDE.md files being re-injected dozens of times in long sessions that read many files
- Fixed `--resume` crash when transcript contains a tool result from an older CLI version or interrupted write
- Fixed misleading "Rate limit reached" message when the API returned an entitlement error — now shows the actual error with actionable hints
- Fixed hooks `if` condition filtering not matching compound commands (`ls && git push`) or commands with env-var prefixes (`FOO=bar git push`)
- Fixed collapsed search/read group badges duplicating in terminal scrollback during heavy parallel tool use
- Fixed notification `invalidates` not clearing the currently-displayed notification immediately
- Fixed prompt briefly disappearing after submit when background messages arrived during processing
- Fixed Devanagari and other combining-mark text being truncated in assistant output
- Fixed rendering artifacts on main-screen terminals after layout shifts
- Fixed voice mode failing to request microphone permission on macOS Apple Silicon
- Fixed Shift+Enter submitting instead of inserting a newline on Windows Terminal Preview 1.25
- Fixed periodic UI jitter during streaming in iTerm2 when running inside tmux
- Fixed PowerShell tool incorrectly reporting failures when commands like `git push` wrote progress to stderr on Windows PowerShell 5.1
- Fixed a potential out-of-memory crash when the Edit tool was used on very large files (>1 GiB)
- Improved collapsed tool summary to show "Listed N directories" for `ls`/`tree`/`du` instead of "Read N files"
- Improved Bash tool to warn when a formatter/linter command modifies files you have previously read, preventing stale-edit errors
- Improved `@`-mention typeahead to rank source files above MCP resources with similar names
- Improved PowerShell tool prompt with version-appropriate syntax guidance (5.1 vs 7+)
- Changed `Edit` to work on files viewed via `Bash` with `sed -n` or `cat`, without requiring a separate `Read` call first
- Changed hook output over 50K characters to be saved to disk with a file path + preview instead of being injected directly into context
- Changed `cleanupPeriodDays: 0` in settings.json to be rejected with a validation error — it previously silently disabled transcript persistence
- Changed thinking summaries to no longer be generated by default in interactive sessions — set `showThinkingSummaries: true` in settings.json to restore
- Documented `TaskCreated` hook event and its blocking behavior
- Preserved task notifications when backgrounding a running command with Ctrl+B
- PowerShell tool on Windows: external-command arguments containing both a double-quote and whitespace now prompt instead of auto-allowing (PS 5.1 argument-splitting hardening)
- `/env` now applies to PowerShell tool commands (previously only affected Bash)
- `/usage` now hides redundant "Current week (Sonnet only)" bar for Pro and Enterprise plans
- Image paste no longer inserts a trailing space
- Pasting `!command` into an empty prompt now enters bash mode, matching typed `!` behavior
- `/buddy` is here for April 1st — hatch a small creature that watches you codev2.1.87Cowork消息投递修复
- 修复 Cowork Dispatch 中消息未被投递的问题
## 2.1.87 - Fixed messages in Cowork Dispatch not getting delivered
v2.1.86会话追踪和 MCP 工具问题修复
- 添加 X-Claude-Code-Session-Id 头用于代理请求聚合
- 修复 --bare 模式丢弃 MCP 工具的问题
- 修复配置写入导致 Windows 损坏的问题
- 优化内存缓存和令牌开销
## 2.1.86 - Added `X-Claude-Code-Session-Id` header to API requests so proxies can aggregate requests by session without parsing the body - Added `.jj` and `.sl` to VCS directory exclusion lists so Grep and file autocomplete don't descend into Jujutsu or Sapling metadata - Fixed `--resume` failing with "tool_use ids were found without tool_result blocks" on sessions created before v2.1.85 - Fixed Write/Edit/Read failing on files outside the project root (e.g., `~/.claude/CLAUDE.md`) when conditional skills or rules are configured - Fixed unnecessary config disk writes on every skill invocation that could cause performance issues and config corruption on Windows - Fixed potential out-of-memory crash when using `/feedback` on very long sessions with large transcript files - Fixed `--bare` mode dropping MCP tools in interactive sessions and silently discarding messages enqueued mid-turn - Fixed the `c` shortcut copying only ~20 characters of the OAuth login URL instead of the full URL - Fixed masked input (e.g., OAuth code paste) leaking the start of the token when wrapping across multiple lines on narrow terminals - Fixed official marketplace plugin scripts failing with "Permission denied" on macOS/Linux since v2.1.83 - Fixed statusline showing another session's model when running multiple Claude Code instances and using `/model` in one of them - Fixed scroll not following new messages after wheel scroll or click-to-select at the bottom of a long conversation - Fixed `/plugin` uninstall dialog: pressing `n` now correctly uninstalls the plugin while preserving its data directory - Fixed a regression where pressing Enter after clicking could leave the transcript blank until the response arrived - Fixed `ultrathink` hint lingering after deleting the keyword - Fixed memory growth in long sessions from markdown/highlight render caches retaining full content strings - Reduced startup event-loop stalls when many claude.ai MCP connectors are configured (macOS keychain cache extended from 5s to 30s) - Reduced token overhead when mentioning files with `@` — raw string content no longer JSON-escaped - Improved prompt cache hit rate for Bedrock, Vertex, and Foundry users by removing dynamic content from tool descriptions - Memory filenames in the "Saved N memories" notice now highlight on hover and open on click - Skill descriptions in the `/skills` listing are now capped at 250 characters to reduce context usage - Changed `/skills` menu to sort alphabetically for easier scanning - Auto mode now shows "unavailable for your plan" when disabled by plan restrictions (was "temporarily unavailable") - [VSCode] Fixed extension incorrectly showing "Not responding" during long-running operations - [VSCode] Fixed extension defaulting Max plan users to Sonnet after the OAuth token refreshes (8 hours after login) - Read tool now uses compact line-number format and deduplicates unchanged re-reads, reducing token usage
v2.1.85MCP 授权和条件 Hook 支持
- Hook 添加条件语句减少不必要进程开销
- 修复 MCP 步进授权在刷新令牌存在时失败
- 优化 @-mention 文件自动完成大型仓库性能
## 2.1.85 - Added `CLAUDE_CODE_MCP_SERVER_NAME` and `CLAUDE_CODE_MCP_SERVER_URL` environment variables to MCP `headersHelper` scripts, allowing one helper to serve multiple servers - Added conditional `if` field for hooks using permission rule syntax (e.g., `Bash(git *)`) to filter when they run, reducing process spawning overhead - Added timestamp markers in transcripts when scheduled tasks (`/loop`, `CronCreate`) fire - Added trailing space after `[Image #N]` placeholder when pasting images - Deep link queries (`claude-cli://open?q=…`) now support up to 5,000 characters, with a "scroll to review" warning for long pre-filled prompts - MCP OAuth now follows RFC 9728 Protected Resource Metadata discovery to find the authorization server - Plugins blocked by organization policy (`managed-settings.json`) can no longer be installed or enabled, and are hidden from marketplace views - PreToolUse hooks can now satisfy `AskUserQuestion` by returning `updatedInput` alongside `permissionDecision: "allow"`, enabling headless integrations that collect answers via their own UI - `tool_parameters` in OpenTelemetry tool_result events are now gated behind `OTEL_LOG_TOOL_DETAILS=1` - Fixed `/compact` failing with "context exceeded" when the conversation has grown too large for the compact request itself to fit - Fixed `/plugin enable` and `/plugin disable` failing when a plugin's install location differs from where it's declared in settings - Fixed `--worktree` exiting with an error in non-git repositories before the `WorktreeCreate` hook could run - Fixed `deniedMcpServers` setting not blocking claude.ai MCP servers - Fixed `switch_display` in the computer-use tool returning "not available in this session" on multi-monitor setups - Fixed crash when `OTEL_LOGS_EXPORTER`, `OTEL_METRICS_EXPORTER`, or `OTEL_TRACES_EXPORTER` is set to `none` - Fixed diff syntax highlighting not working in non-native builds - Fixed MCP step-up authorization failing when a refresh token exists — servers requesting elevated scopes via `403 insufficient_scope` now correctly trigger the re-authorization flow - Fixed memory leak in remote sessions when a streaming response is interrupted - Fixed persistent ECONNRESET errors during edge connection churn by using a fresh TCP connection on retry - Fixed prompts getting stuck in the queue after running certain slash commands, with up-arrow unable to retrieve them - Fixed Python Agent SDK: `type:'sdk'` MCP servers passed via `--mcp-config` are no longer dropped during startup - Fixed raw key sequences appearing in the prompt when running over SSH or in the VS Code integrated terminal - Fixed Remote Control session status staying stuck on "Requires Action" after a permission is resolved - Fixed shift+enter and meta+enter being intercepted by typeahead suggestions instead of inserting newlines - Fixed stale content bleeding through when scrolling up during streaming - Fixed terminal left in enhanced keyboard mode after exit in Ghostty, Kitty, WezTerm, and other terminals supporting the Kitty keyboard protocol — Ctrl+C and Ctrl+D now work correctly after quitting - Improved @-mention file autocomplete performance on large repositories - Improved PowerShell dangerous command detection - Improved scroll performance with large transcripts by replacing WASM yoga-layout with a pure TypeScript implementation - Reduced UI stutter when compaction triggers on large sessions
v2.1.84Windows PowerShell 工具预览发布
- Windows 预览发布 PowerShell 工具(opt-in)
- 修复 voice 按住说话时泄露字符的问题
- 改进启动速度和 Bedrock 冷启动延迟
## 2.1.84
- Added PowerShell tool for Windows as an opt-in preview. Learn more at https://code.claude.com/docs/en/tools-reference#powershell-tool
- Added `ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU}_MODEL_SUPPORTS` env vars to override effort/thinking capability detection for pinned default models for 3p (Bedrock, Vertex, Foundry), and `_MODEL_NAME`/`_DESCRIPTION` to customize the `/model` picker label
- Added `CLAUDE_STREAM_IDLE_TIMEOUT_MS` env var to configure the streaming idle watchdog threshold (default 90s)
- Added `TaskCreated` hook that fires when a task is created via `TaskCreate`
- Added `WorktreeCreate` hook support for `type: "http"` — return the created worktree path via `hookSpecificOutput.worktreePath` in the response JSON
- Added `allowedChannelPlugins` managed setting for team/enterprise admins to define a channel plugin allowlist
- Added `x-client-request-id` header to API requests for debugging timeouts
- Added idle-return prompt that nudges users returning after 75+ minutes to `/clear`, reducing unnecessary token re-caching on stale sessions
- Deep links (`claude-cli://`) now open in your preferred terminal instead of whichever terminal happens to be first in the detection list
- Rules and skills `paths:` frontmatter now accepts a YAML list of globs
- MCP tool descriptions and server instructions are now capped at 2KB to prevent OpenAPI-generated servers from bloating context
- MCP servers configured both locally and via claude.ai connectors are now deduplicated — the local config wins
- Background bash tasks that appear stuck on an interactive prompt now surface a notification after ~45 seconds
- Token counts ≥1M now display as "1.5m" instead of "1512.6k"
- Global system-prompt caching now works when `ToolSearch` is enabled, including for users with MCP tools configured
- Fixed voice push-to-talk: holding the voice key no longer leaks characters into the text input, and transcripts now insert at the correct position
- Fixed up/down arrow keys being unresponsive when a footer item is focused
- Fixed `Ctrl+U` (kill-to-line-start) being a no-op at line boundaries in multiline input, so repeated `Ctrl+U` now clears across lines
- Fixed null-unbinding a default chord binding (e.g. `"ctrl+x ctrl+k": null`) still entering chord-wait mode instead of freeing the prefix key
- Fixed mouse events inserting literal "mouse" text into transcript search input
- Fixed workflow subagents failing with API 400 when the outer session uses `--json-schema` and the subagent also specifies a schema
- Fixed missing background color behind certain emoji in user message bubbles on some terminals
- Fixed the "allow Claude to edit its own settings for this session" permission option not sticking for users with `Edit(.claude)` allow rules
- Fixed a hang when generating attachment snippets for large edited files
- Fixed MCP tool/resource cache leak on server reconnect
- Fixed a startup performance issue where partial clone repositories (Scalar/GVFS) triggered mass blob downloads
- Fixed native terminal cursor not tracking the text input caret, so IME composition (CJK input) now renders inline and screen readers can follow the input position
- Fixed spurious "Not logged in" errors on macOS caused by transient keychain read failures
- Fixed cold-start race where core tools could be deferred without their bypass active, causing Edit/Write to fail with InputValidationError on typed parameters
- Improved detection for dangerous removals of Windows drive roots (`C:\`, `C:\Windows`, etc.)
- Improved interactive startup by ~30ms by running `setup()` in parallel with slash command and agent loading
- Improved startup for `claude "prompt"` with MCP servers — the REPL now renders immediately instead of blocking until all servers connect
- Improved Remote Control to show a specific reason when blocked instead of a generic "not yet enabled" message
- Improved p90 prompt cache rate
- Reduced scroll-to-top resets in long sessions by making the message window immune to compaction and grouping changes
- Reduced terminal flickering when animated tool progress scrolls above the viewport
- Changed issue/PR references to only become clickable links when written as `owner/repo#123` — bare `#123` is no longer auto-linked
- Slash commands unavailable for the current auth setup (`/voice`, `/mobile`, `/chrome`, `/upgrade`, etc.) are now hidden instead of shown
- [VSCode] Added rate limit warning banner with usage percentage and reset time
- Stats screenshot (Ctrl+S in /stats) now works in all builds and is 16× fasterv2.1.83转录搜索和反应式环境管理
- 添加转录搜索功能(Ctrl+O 后按 /)
- Hook 支持反应式环境管理(CwdChanged/FileChanged 事件)
- 修复多个 UI 冻结和屏幕闪烁问题
## 2.1.83 - Added `managed-settings.d/` drop-in directory alongside `managed-settings.json`, letting separate teams deploy independent policy fragments that merge alphabetically - Added `CwdChanged` and `FileChanged` hook events for reactive environment management (e.g., direnv) - Added `sandbox.failIfUnavailable` setting to exit with an error when sandbox is enabled but cannot start, instead of running unsandboxed - Added `disableDeepLinkRegistration` setting to prevent `claude-cli://` protocol handler registration - Added `CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1` to strip Anthropic and cloud provider credentials from subprocess environments (Bash tool, hooks, MCP stdio servers) - Added transcript search — press `/` in transcript mode (`Ctrl+O`) to search, `n`/`N` to step through matches - Added `Ctrl+X Ctrl+E` as an alias for opening the external editor (readline-native binding; `Ctrl+G` still works) - Pasted images now insert an `[Image #N]` chip at the cursor so you can reference them positionally in your prompt - Agents can now declare `initialPrompt` in frontmatter to auto-submit a first turn - `chat:killAgents` and `chat:fastMode` are now rebindable via `~/.claude/keybindings.json` - Fixed mouse tracking escape sequences leaking to shell prompt after exit - Fixed Claude Code hanging on exit on macOS - Fixed screen flashing blank after being idle for a few seconds - Fixed a hang when diffing very large files with few common lines — diffs now time out after 5 seconds and fall back gracefully - Fixed a 1–8 second UI freeze on startup when voice input was enabled, caused by eagerly loading the native audio module - Fixed a startup regression where Claude Code would wait ~3s for claude.ai MCP config fetch before proceeding - Fixed `--mcp-config` CLI flag bypassing `allowedMcpServers`/`deniedMcpServers` managed policy enforcement - Fixed claude.ai MCP connectors (Slack, Gmail, etc.) not being available in single-turn `--print` mode - Fixed `caffeinate` process not properly terminating when Claude Code exits, preventing Mac from sleeping - Fixed bash mode not activating when tab-accepting `!`-prefixed command suggestions - Fixed stale slash command selection showing wrong highlighted command after navigating suggestions - Fixed `/config` menu showing both the search cursor and list selection at the same time - Fixed background subagents becoming invisible after context compaction, which could cause duplicate agents to be spawned - Fixed background agent tasks staying stuck in "running" state when git or API calls hang during cleanup - Fixed `--channels` showing "Channels are not currently available" on first launch after upgrade - Fixed uninstalled plugin hooks continuing to fire until the next session - Fixed queued commands flickering during streaming responses - Fixed slash commands being sent to the model as text when submitted while a message is processing - Fixed scrollback jumping when collapsed read/search groups finish after scrolling offscreen - Fixed scrollback jumping to top when the model starts or stops thinking - Fixed SDK session history loss on resume caused by hook progress/attachment messages forking the parentUuid chain - Fixed copy-on-select not firing when you release the mouse outside the terminal window - Fixed ghost characters appearing in height-constrained lists when items overflow - Fixed `Ctrl+B` interfering with readline backward-char at an idle prompt — it now only fires when a foreground task can be backgrounded - Fixed tool result files never being cleaned up, ignoring the `cleanupPeriodDays` setting - Fixed space key being swallowed for up to 3 seconds after releasing voice hold-to-talk - Fixed ALSA library errors corrupting the terminal UI when using voice mode on Linux without audio hardware (Docker, headless, WSL1) - Fixed voice mode SoX detection on Termux/Android where spawning `which` is kernel-restricted - Fixed Remote Control sessions showing as Idle in the web session list while actively running - Fixed footer navigation selecting an invisible Remote Control pill in config-driven mode - Fixed memory leak in remote sessions where tool use IDs accumulate indefinitely - Improved Bedrock SDK cold-start latency by overlapping profile fetch with other boot work - Improved `--resume` memory usage and startup latency on large sessions - Improved plugin startup — commands, skills, and agents now load from disk cache without re-fetching - Improved Remote Control session titles: AI-generated titles now appear within seconds of the first message - Improved `WebFetch` to identify as `Claude-User` so site operators can recognize and allowlist Claude Code traffic via `robots.txt` - Reduced `WebFetch` peak memory usage for large pages - Reduced scrollback resets in long sessions from once per turn to once per ~50 messages - Faster `claude -p` startup with unauthenticated HTTP/SSE MCP servers (~600ms saved) - Bash ghost-text suggestions now include just-submitted commands immediately - Increased non-streaming fallback token cap (21k → 64k) and timeout (120s → 300s local) so fallback requests are less likely to be truncated - Interrupting a prompt before any response now automatically restores your input so you can edit and resubmit - `/status` now works while Claude is responding, instead of being queued until the turn finishes - Plugin MCP servers that duplicate an org-managed connector are now suppressed instead of running a second connection - Linux: respect `XDG_DATA_HOME` when registering the `claude-cli://` protocol handler - Changed "stop all background agents" keybinding from `Ctrl+F` to `Ctrl+X Ctrl+K` to stop shadowing readline forward-char - Deprecated `TaskOutput` tool in favor of using `Read` on the background task's output file path - Added `CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK` env var to disable the non-streaming fallback when streaming fails - Plugin options (`manifest.userConfig`) now available externally — plugins can prompt for configuration at enable time, with `sensitive: true` values stored in keychain (macOS) or protected credentials file (other platforms) - Claude can now reference the on-disk path of clipboard-pasted images for file operations - `Ctrl+L` now clears the screen and forces a full redraw — use this to recover when Cmd+K leaves the UI partially blank. Use `Ctrl+U` or double-Esc to clear prompt input. - `--bare -p` (SDK pattern) is ~14% faster to the API request - Memory: `MEMORY.md` index now truncates at 25KB as well as 200 lines - Disabled `AskUserQuestion` and plan-mode tools when `--channels` is active - Fixed API 400 error when a pasted image was queued during a failing tool call - Fixed MCP tool calls hanging indefinitely when an SSE connection drops mid-call and exhausts its reconnection attempts - Fixed Remote Control session titles showing raw XML when a background agent completed before the first user message - Fixed remote sessions forgetting conversation history after a container restart due to progress-message gaps in the resumed transcript chain - Fixed remote sessions requiring re-login on transient auth errors instead of retrying automatically - Fixed `rg ... | wc -l` and similar piped commands hanging and returning `0` in sandbox mode on Linux - Fixed voice input hold-to-talk not activating when a CJK IME inserts a full-width space - Fixed `--worktree` hanging silently when the worktree name contained a forward slash - [VSCode] Spinner now turns red with "Not responding" when the backend hasn't responded for 60 seconds - [VSCode] Fixed session history not loading correctly when reopening a session via URL or after restart - [VSCode] Added Esc-twice (or `/rewind`) to open a keyboard-navigable rewind picker - [VSCode] Fixed "Fork conversation from here" and rewind actions failing silently after the session cache goes stale
v2.1.81脚本化调用和渠道权限中继
- --bare 标志支持脚本化 -p 调用跳过 Hook
- --channels 权限中继推送工具批准到手机
- 修复多会话 OAuth 刷新时重复认证问题
## 2.1.81
- Added `--bare` flag for scripted `-p` calls — skips hooks, LSP, plugin sync, and skill directory walks; requires `ANTHROPIC_API_KEY` or an `apiKeyHelper` via `--settings` (OAuth and keychain auth disabled); auto-memory fully disabled
- Added `--channels` permission relay — channel servers that declare the permission capability can forward tool approval prompts to your phone
- Fixed multiple concurrent Claude Code sessions requiring repeated re-authentication when one session refreshes its OAuth token
- Fixed voice mode silently swallowing retry failures and showing a misleading "check your network" message instead of the actual error
- Fixed voice mode audio not recovering when the server silently drops the WebSocket connection
- Fixed `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS` not suppressing the structured-outputs beta header, causing 400 errors on proxy gateways forwarding to Vertex/Bedrock
- Fixed `--channels` bypass for Team/Enterprise orgs with no other managed settings configured
- Fixed a crash on Node.js 18
- Fixed unnecessary permission prompts for Bash commands containing dashes in strings
- Fixed plugin hooks blocking prompt submission when the plugin directory is deleted mid-session
- Fixed a race condition where background agent task output could hang indefinitely when the task completed between polling intervals
- Resuming a session that was in a worktree now switches back to that worktree
- Fixed `/btw` not including pasted text when used during an active response
- Fixed a race where fast Cmd+Tab followed by paste could beat the clipboard copy under tmux
- Fixed terminal tab title not updating with an auto-generated session description
- Fixed invisible hook attachments inflating the message count in transcript mode
- Fixed Remote Control sessions showing a generic title instead of deriving from the first prompt
- Fixed `/rename` not syncing the title for Remote Control sessions
- Fixed Remote Control `/exit` not reliably archiving the session
- Improved MCP read/search tool calls to collapse into a single "Queried {server}" line (expand with Ctrl+O)
- Improved `!` bash mode discoverability — Claude now suggests it when you need to run an interactive command
- Improved plugin freshness — ref-tracked plugins now re-clone on every load to pick up upstream changes
- Improved Remote Control session titles to refresh after your third message
- Updated MCP OAuth to support Client ID Metadata Document (CIMD / SEP-991) for servers without Dynamic Client Registration
- Changed plan mode to hide the "clear context" option by default (restore with `"showClearContextOnPlanAccept": true`)
- Disabled line-by-line response streaming on Windows (including WSL in Windows Terminal) due to rendering issues
- [VSCode] Fixed Windows PATH inheritance for Bash tool when using Git Bash (regression in v2.1.78)v2.1.80速率限制显示和内联插件配置
- 状态栏显示 Claude.ai 速率限制使用情况
- 插件支持 source: 'settings' 内联配置方式
- 修复 --resume 丢弃并行工具调用结果
## 2.1.80 - Added `rate_limits` field to statusline scripts for displaying Claude.ai rate limit usage (5-hour and 7-day windows with `used_percentage` and `resets_at`) - Added `source: 'settings'` plugin marketplace source — declare plugin entries inline in settings.json - Added CLI tool usage detection to plugin tips, in addition to file pattern matching - Added `effort` frontmatter support for skills and slash commands to override the model effort level when invoked - Added `--channels` (research preview) — allow MCP servers to push messages into your session - Fixed `--resume` dropping parallel tool results — sessions with parallel tool calls now restore all tool_use/tool_result pairs instead of showing `[Tool result missing]` placeholders - Fixed voice mode WebSocket failures caused by Cloudflare bot detection on non-browser TLS fingerprints - Fixed 400 errors when using fine-grained tool streaming through API proxies, Bedrock, or Vertex - Fixed `/remote-control` appearing for gateway and third-party provider deployments where it cannot function - Fixed `/sandbox` tab switching not responding to Tab or arrow keys - Improved responsiveness of `@` file autocomplete in large git repositories - Improved `/effort` to show what auto currently resolves to, matching the status bar indicator - Improved `/permissions` — Tab and arrow keys now switch tabs from within a list - Improved background tasks panel — left arrow now closes from the list view - Simplified plugin install tips to use a single `/plugin install` command instead of a two-step flow - Reduced memory usage on startup in large repositories (~80 MB saved on 250k-file repos) - Fixed managed settings (`enabledPlugins`, `permissions.defaultMode`, policy-set env vars) not being applied at startup when `remote-settings.json` was cached from a prior session
v2.1.70-7910 个版本 · 10 已摘要
v2.1.79Console 认证和远程控制桥接
- claude auth login 添加 --console 标志用于 API 计费
- VSCode: /remote-control 桥接会话到浏览器/手机
- 改进非流式 API 降级方案超时管理
## 2.1.79 - Added `--console` flag to `claude auth login` for Anthropic Console (API billing) authentication - Added "Show turn duration" toggle to the `/config` menu - Fixed `claude -p` hanging when spawned as a subprocess without explicit stdin (e.g. Python `subprocess.run`) - Fixed Ctrl+C not working in `-p` (print) mode - Fixed `/btw` returning the main agent's output instead of answering the side question when triggered during streaming - Fixed voice mode not activating correctly on startup when `voiceEnabled: true` is set - Fixed left/right arrow tab navigation in `/permissions` - Fixed `CLAUDE_CODE_DISABLE_TERMINAL_TITLE` not preventing terminal title from being set on startup - Fixed custom status line showing nothing when workspace trust is blocking it - Fixed enterprise users being unable to retry on rate limit (429) errors - Fixed `SessionEnd` hooks not firing when using interactive `/resume` to switch sessions - Improved startup memory usage by ~18MB across all scenarios - Improved non-streaming API fallback with a 2-minute per-attempt timeout, preventing sessions from hanging indefinitely - `CLAUDE_CODE_PLUGIN_SEED_DIR` now supports multiple seed directories separated by the platform path delimiter (`:` on Unix, `;` on Windows) - [VSCode] Added `/remote-control` — bridge your session to claude.ai/code to continue from a browser or phone - [VSCode] Session tabs now get AI-generated titles based on your first message - [VSCode] Fixed the thinking pill showing "Thinking" instead of "Thought for Ns" after a response completes - [VSCode] Fixed missing session diff button when opening sessions from the left sidebar
v2.1.78响应逐行流式和 Hook 事件扩展
- 响应文本现在逐行流式传输提升用户体验
- 添加 StopFailure Hook 捕获 API 错误事件
- 修复沙箱依赖缺失时无声禁用的安全问题
## 2.1.78
- Added `StopFailure` hook event that fires when the turn ends due to an API error (rate limit, auth failure, etc.)
- Added `${CLAUDE_PLUGIN_DATA}` variable for plugin persistent state that survives plugin updates; `/plugin uninstall` prompts before deleting it
- Added `effort`, `maxTurns`, and `disallowedTools` frontmatter support for plugin-shipped agents
- Terminal notifications (iTerm2/Kitty/Ghostty popups, progress bar) now reach the outer terminal when running inside tmux with `set -g allow-passthrough on`
- Response text now streams line-by-line as it's generated
- Fixed `git log HEAD` failing with "ambiguous argument" inside sandboxed Bash on Linux, and stub files polluting `git status` in the working directory
- Fixed `cc log` and `--resume` silently truncating conversation history on large sessions (>5 MB) that used subagents
- Fixed infinite loop when API errors triggered stop hooks that re-fed blocking errors to the model
- Fixed `deny: ["mcp__servername"]` permission rules not removing MCP server tools before sending to the model, allowing it to see and attempt blocked tools
- Fixed `sandbox.filesystem.allowWrite` not working with absolute paths (previously required `//` prefix)
- Fixed `/sandbox` Dependencies tab showing Linux prerequisites on macOS instead of macOS-specific info
- **Security:** Fixed silent sandbox disable when `sandbox.enabled: true` is set but dependencies are missing — now shows a visible startup warning
- Fixed `.git`, `.claude`, and other protected directories being writable without a prompt in `bypassPermissions` mode
- Fixed ctrl+u in normal mode scrolling instead of readline kill-line (ctrl+u/ctrl+d half-page scroll moved to transcript mode only)
- Fixed voice mode modifier-combo push-to-talk keybindings (e.g. ctrl+k) requiring a hold instead of activating immediately
- Fixed voice mode not working on WSL2 with WSLg (Windows 11); WSL1/Win10 users now get a clear error
- Fixed `--worktree` flag not loading skills and hooks from the worktree directory
- Fixed `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` and `includeGitInstructions` setting not suppressing the git status section in the system prompt
- Fixed Bash tool not finding Homebrew and other PATH-dependent binaries when VS Code is launched from Dock/Spotlight
- Fixed washed-out Claude orange color in VS Code/Cursor/code-server terminals that don't advertise truecolor support
- Added `ANTHROPIC_CUSTOM_MODEL_OPTION` env var to add a custom entry to the `/model` picker, with optional `_NAME` and `_DESCRIPTION` suffixed vars for display
- Fixed `ANTHROPIC_BETAS` environment variable being silently ignored when using Haiku models
- Fixed queued prompts being concatenated without a newline separator
- Improved memory usage and startup time when resuming large sessions
- [VSCode] Fixed a brief flash of the login screen when opening the sidebar while already authenticated
- [VSCode] Fixed "API Error: Rate limit reached" when selecting Opus — model dropdown no longer offers 1M context variant to subscribers whose plan tier is unknownv2.1.77增强令牌与修复多项bug
- Opus 4.6 最大输出令牌提升至 64k,上限 128k
- 新增 `/copy` 索引参数支持,可复制指定助手响应
- 修复 bash 权限规则、会话历史截断、内存泄漏等 bug
- 改进 vim 按键、tmux 剪贴板、CJK 字符渲染、启动速度
## 2.1.77
- Increased default maximum output token limits for Claude Opus 4.6 to 64k tokens, and the upper bound for Opus 4.6 and Sonnet 4.6 models to 128k tokens
- Added `allowRead` sandbox filesystem setting to re-allow read access within `denyRead` regions
- `/copy` now accepts an optional index: `/copy N` copies the Nth-latest assistant response
- Fixed "Always Allow" on compound bash commands (e.g. `cd src && npm test`) saving a single rule for the full string instead of per-subcommand, leading to dead rules and repeated permission prompts
- Fixed auto-updater starting overlapping binary downloads when the slash-command overlay repeatedly opened and closed, accumulating tens of gigabytes of memory
- Fixed `--resume` silently truncating recent conversation history due to a race between memory-extraction writes and the main transcript
- Fixed PreToolUse hooks returning `"allow"` bypassing `deny` permission rules, including enterprise managed settings
- Fixed Write tool silently converting line endings when overwriting CRLF files or creating files in CRLF directories
- Fixed memory growth in long-running sessions from progress messages surviving compaction
- Fixed cost and token usage not being tracked when the API falls back to non-streaming mode
- Fixed `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS` not stripping beta tool-schema fields, causing proxy gateways to reject requests
- Fixed Bash tool reporting errors for successful commands when the system temp directory path contains spaces
- Fixed paste being lost when typing immediately after pasting
- Fixed Ctrl+D in `/feedback` text input deleting forward instead of the second press exiting the session
- Fixed API error when dragging a 0-byte image file into the prompt
- Fixed Claude Desktop sessions incorrectly using the terminal CLI's configured API key instead of OAuth
- Fixed `git-subdir` plugins at different subdirectories of the same monorepo commit colliding in the plugin cache
- Fixed ordered list numbers not rendering in terminal UI
- Fixed a race condition where stale-worktree cleanup could delete an agent worktree just resumed from a previous crash
- Fixed input deadlock when opening `/mcp` or similar dialogs while the agent is running
- Fixed Backspace and Delete keys not working in vim NORMAL mode
- Fixed status line not updating when vim mode is toggled on or off
- Fixed hyperlinks opening twice on Cmd+click in VS Code, Cursor, and other xterm.js-based terminals
- Fixed background colors rendering as terminal-default inside tmux with default configuration
- Fixed iTerm2 session crash when selecting text inside tmux over SSH
- Fixed clipboard copy silently failing in tmux sessions; copy toast now indicates whether to paste with `⌘V` or tmux `prefix+]`
- Fixed `←`/`→` accidentally switching tabs in settings, permissions, and sandbox dialogs while navigating lists
- Fixed IDE integration not auto-connecting when Claude Code is launched inside tmux or screen
- Fixed CJK characters visually bleeding into adjacent UI elements when clipped at the right edge
- Fixed teammate panes not closing when the leader exits
- Fixed iTerm2 auto mode not detecting iTerm2 for native split-pane teammates
- Faster startup on macOS (~60ms) by reading keychain credentials in parallel with module loading
- Faster `--resume` on fork-heavy and very large sessions — up to 45% faster loading and ~100-150MB less peak memory
- Improved Esc to abort in-flight non-streaming API requests
- Improved `claude plugin validate` to check skill, agent, and command frontmatter plus `hooks/hooks.json`, catching YAML parse errors and schema violations
- Background bash tasks are now killed if output exceeds 5GB, preventing runaway processes from filling disk
- Sessions are now auto-named from plan content when you accept a plan
- Improved headless mode plugin installation to compose correctly with `CLAUDE_CODE_PLUGIN_SEED_DIR`
- Show a notice when `apiKeyHelper` takes longer than 10s, preventing it from blocking the main loop
- The Agent tool no longer accepts a `resume` parameter — use `SendMessage({to: agentId})` to continue a previously spawned agent
- `SendMessage` now auto-resumes stopped agents in the background instead of returning an error
- Renamed `/fork` to `/branch` (`/fork` still works as an alias)
- [VSCode] Improved plan preview tab titles to use the plan's heading instead of "Claude's Plan"
- [VSCode] When option+click doesn't trigger native selection on macOS, the footer now points to the `macOptionClickForcesSelection` settingv2.1.76MCP 增强与多项修复
- MCP 服务器支持通过交互对话请求结构化输入
- 新增 `/effort` 命令、Sparse Checkout 支持、PostCompact Hook
- 修复 tool 输入 schema、slash 命令识别、voice 激活问题
- 改进权限规则、LSP 插件、MCP OAuth 处理、compaction 可靠性
## 2.1.76 - Added MCP elicitation support — MCP servers can now request structured input mid-task via an interactive dialog (form fields or browser URL) - Added new `Elicitation` and `ElicitationResult` hooks to intercept and override responses before they're sent back - Added `-n` / `--name <name>` CLI flag to set a display name for the session at startup - Added `worktree.sparsePaths` setting for `claude --worktree` in large monorepos to check out only the directories you need via git sparse-checkout - Added `PostCompact` hook that fires after compaction completes - Added `/effort` slash command to set model effort level - Added session quality survey — enterprise admins can configure the sample rate via the `feedbackSurveyRate` setting - Fixed deferred tools (loaded via `ToolSearch`) losing their input schemas after conversation compaction, causing array and number parameters to be rejected with type errors - Fixed slash commands showing "Unknown skill" - Fixed plan mode asking for re-approval after the plan was already accepted - Fixed voice mode swallowing keypresses while a permission dialog or plan editor was open - Fixed `/voice` not working on Windows when installed via npm - Fixed spurious "Context limit reached" when invoking a skill with `model:` frontmatter on a 1M-context session - Fixed "adaptive thinking is not supported on this model" error when using non-standard model strings - Fixed `Bash(cmd:*)` permission rules not matching when a quoted argument contains `#` - Fixed "don't ask again" in the Bash permission dialog showing the full raw command for pipes and compound commands - Fixed auto-compaction retrying indefinitely after consecutive failures — a circuit breaker now stops after 3 attempts - Fixed MCP reconnect spinner persisting after successful reconnection - Fixed LSP plugins not registering servers when the LSP Manager initialized before marketplaces were reconciled - Fixed clipboard copying in tmux over SSH — now attempts both direct terminal write and tmux clipboard integration - Fixed `/export` showing only the filename instead of the full file path in the success message - Fixed transcript not auto-scrolling to new messages after selecting text - Fixed Escape key not working to exit the login method selection screen - Fixed several Remote Control issues: sessions silently dying when the server reaps an idle environment, rapid messages being queued one-at-a-time instead of batched, and stale work items causing redelivery after JWT refresh - Fixed bridge sessions failing to recover after extended WebSocket disconnects - Fixed slash commands not found when typing the exact name of a soft-hidden command - Improved `--worktree` startup performance by reading git refs directly and skipping redundant `git fetch` when the remote branch is already available locally - Improved background agent behavior — killing a background agent now preserves its partial results in the conversation context - Improved model fallback notifications — now always visible instead of hidden behind verbose mode, with human-friendly model names - Improved blockquote readability on dark terminal themes — text is now italic with a left bar instead of dim - Improved stale worktree cleanup — worktrees left behind after an interrupted parallel run are now automatically cleaned up - Improved Remote Control session titles — now derived from your first prompt instead of showing "Interactive session" - Improved `/voice` to show your dictation language on enable and warn when your `language` setting isn't supported for voice input - Updated `--plugin-dir` to only accept one path to support subcommands — use repeated `--plugin-dir` for multiple directories - [VSCode] Fixed gitignore patterns containing commas silently excluding entire filetypes from the @-mention file picker
v2.1.751M 上下文与完善管理
- Opus 4.6 支持 1M context window(Max/Team/Enterprise 计划)
- 新增 `/color` 命令、会话名称显示、内存文件时间戳
- 改进 voice 模式激活、hook 源码显示、Config 交互体验
- 修复权限提示、模型切换、attachment 计算等多个问题
破坏性变化
- 移除 Windows 弃用的 managed settings 备用路径
## 2.1.75 - Added 1M context window for Opus 4.6 by default for Max, Team, and Enterprise plans (previously required extra usage) - Added `/color` command for all users to set a prompt-bar color for your session - Added session name display on the prompt bar when using `/rename` - Added last-modified timestamps to memory files, helping Claude reason about which memories are fresh vs. stale - Added hook source display (settings/plugin/skill) in permission prompts when a hook requires confirmation - Fixed voice mode not activating correctly on fresh installs without toggling `/voice` twice - Fixed the Claude Code header not updating the displayed model name after switching models with `/model` or Option+P - Fixed session crash when an attachment message computation returns undefined values - Fixed Bash tool mangling `!` in piped commands (e.g., `jq 'select(.x != .y)'` now works correctly) - Fixed managed-disabled plugins showing up in the `/plugin` Installed tab — plugins force-disabled by your organization are now hidden - Fixed token estimation over-counting for thinking and `tool_use` blocks, preventing premature context compaction - Fixed corrupted marketplace config path handling - Fixed `/resume` losing session names after resuming a forked or continued session - Fixed Esc not closing the `/status` dialog after visiting the Config tab - Fixed input handling when accepting or rejecting a plan - Fixed footer hint in agent teams showing "↓ to expand" instead of the correct "shift + ↓ to expand" - Improved startup performance on macOS non-MDM machines by skipping unnecessary subprocess spawns - Suppressed async hook completion messages by default (visible with `--verbose` or transcript mode) - Breaking change: Removed deprecated Windows managed settings fallback at `C:\ProgramData\ClaudeCode\managed-settings.json` — use `C:\Program Files\ClaudeCode\managed-settings.json`
v2.1.74完善管理与修复权限
- 为 `/context` 添加可操作建议,识别瓶颈和优化方案
- 新增 `autoMemoryDirectory` 配置自定义内存存储目录
- 修复内存泄漏、权限规则绕过、MCP OAuth 挂起问题
- 改进 Bedrock 模型支持、LSP 文件 URI、plugin 管理可靠性
## 2.1.74 - Added actionable suggestions to `/context` command — identifies context-heavy tools, memory bloat, and capacity warnings with specific optimization tips - Added `autoMemoryDirectory` setting to configure a custom directory for auto-memory storage - Fixed memory leak where streaming API response buffers were not released when the generator was terminated early, causing unbounded RSS growth on the Node.js/npm code path - Fixed managed policy `ask` rules being bypassed by user `allow` rules or skill `allowed-tools` - Fixed full model IDs (e.g., `claude-opus-4-5`) being silently ignored in agent frontmatter `model:` field and `--agents` JSON config — agents now accept the same model values as `--model` - Fixed MCP OAuth authentication hanging when the callback port is already in use - Fixed MCP OAuth refresh never prompting for re-auth after the refresh token expires, for OAuth servers that return errors with HTTP 200 (e.g. Slack) - Fixed voice mode silently failing on the macOS native binary for users whose terminal had never been granted microphone permission — the binary now includes the `audio-input` entitlement so macOS prompts correctly - Fixed `SessionEnd` hooks being killed after 1.5 s on exit regardless of `hook.timeout` — now configurable via `CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS` - Fixed `/plugin install` failing inside the REPL for marketplace plugins with local sources - Fixed marketplace update not syncing git submodules — plugin sources in submodules no longer break after update - Fixed unknown slash commands with arguments silently dropping input — now shows your input as a warning - Fixed Hebrew, Arabic, and other RTL text not rendering correctly in Windows Terminal, conhost, and VS Code integrated terminal - Fixed LSP servers not working on Windows due to malformed file URIs - Changed `--plugin-dir` so local dev copies now override installed marketplace plugins with the same name (unless that plugin is force-enabled by managed settings) - [VSCode] Fixed delete button not working for Untitled sessions - [VSCode] Improved scroll wheel responsiveness in the integrated terminal with terminal-aware acceleration
v2.1.73修复性能与改进诊断
- 新增 `modelOverrides` 配置自定义模型 ID 映射
- OAuth 和 SSL 证书错误时提供可操作指导信息
- 修复权限提示冻结、bash 输出丢失、model 降级问题
- 改进 IDE 启动性能、voice 连接恢复、Linux 兼容性
## 2.1.73 - Added `modelOverrides` setting to map model picker entries to custom provider model IDs (e.g. Bedrock inference profile ARNs) - Added actionable guidance when OAuth login or connectivity checks fail due to SSL certificate errors (corporate proxies, `NODE_EXTRA_CA_CERTS`) - Fixed freezes and 100% CPU loops triggered by permission prompts for complex bash commands - Fixed a deadlock that could freeze Claude Code when many skill files changed at once (e.g. during `git pull` in a repo with a large `.claude/skills/` directory) - Fixed Bash tool output being lost when running multiple Claude Code sessions in the same project directory - Fixed subagents with `model: opus`/`sonnet`/`haiku` being silently downgraded to older model versions on Bedrock, Vertex, and Microsoft Foundry - Fixed background bash processes spawned by subagents not being cleaned up when the agent exits - Fixed `/resume` showing the current session in the picker - Fixed `/ide` crashing with `onInstall is not defined` when auto-installing the extension - Fixed `/loop` not being available on Bedrock/Vertex/Foundry and when telemetry was disabled - Fixed SessionStart hooks firing twice when resuming a session via `--resume` or `--continue` - Fixed JSON-output hooks injecting no-op system-reminder messages into the model's context on every turn - Fixed voice mode session corruption when a slow connection overlaps a new recording - Fixed Linux sandbox failing to start with "ripgrep (rg) not found" on native builds - Fixed Linux native modules not loading on Amazon Linux 2 and other glibc 2.26 systems - Fixed "media_type: Field required" API error when receiving images via Remote Control - Fixed `/heapdump` failing on Windows with `EEXIST` error when the Desktop folder already exists - Improved Up arrow after interrupting Claude — now restores the interrupted prompt and rewinds the conversation in one step - Improved IDE detection speed at startup - Improved clipboard image pasting performance on macOS - Improved `/effort` to work while Claude is responding, matching `/model` behavior - Improved voice mode to automatically retry transient connection failures during rapid push-to-talk re-press - Improved the Remote Control spawn mode selection prompt with better context - Changed default Opus model on Bedrock, Vertex, and Microsoft Foundry to Opus 4.6 (was Opus 4.1) - Deprecated `/output-style` command — use `/config` instead. Output style is now fixed at session start for better prompt caching - VSCode: Fixed HTTP 400 errors for users behind proxies or on Bedrock/Vertex with Claude 4.5 models
v2.1.72新增工具与简化配置
- 新增 `/copy` 的 `w` 键直接写入文件、`ExitWorktree` 工具
- 为 `/plan` 增加可选描述参数、Cron 环境变量禁用选项
- 提供可配置 `voice:pushToTalk` 快捷键、简化 effort 级别配置
- 修复内存泄漏、fork 计划冲突、插件安装丢失、权限规则匹配
破坏性变化
- Agent Tool 不再接受 `resume` 参数,改用 `SendMessage()` 继续
## 2.1.72 - Fixed tool search to activate even with `ANTHROPIC_BASE_URL` as long as `ENABLE_TOOL_SEARCH` is set. - Added `w` key in `/copy` to write the focused selection directly to a file, bypassing the clipboard (useful over SSH) - Added optional description argument to `/plan` (e.g., `/plan fix the auth bug`) that enters plan mode and immediately starts - Added `ExitWorktree` tool to leave an `EnterWorktree` session - Added `CLAUDE_CODE_DISABLE_CRON` environment variable to immediately stop scheduled cron jobs mid-session - Added `lsof`, `pgrep`, `tput`, `ss`, `fd`, and `fdfind` to the bash auto-approval allowlist, reducing permission prompts for common read-only operations - Restored the `model` parameter on the Agent tool for per-invocation model overrides - Simplified effort levels to low/medium/high (removed max) with new symbols (○ ◐ ●) and a brief notification instead of a persistent icon. Use `/effort auto` to reset to default - Improved `/config` — Escape now cancels changes, Enter saves and closes, Space toggles settings - Improved up-arrow history to show current session's messages first when running multiple concurrent sessions - Improved voice input transcription accuracy for repo names and common dev terms (regex, OAuth, JSON) - Improved bash command parsing by switching to a native module — faster initialization and no memory leak - Reduced bundle size by ~510 KB - Changed CLAUDE.md HTML comments (`<!-- ... -->`) to be hidden from Claude when auto-injected. Comments remain visible when read with the Read tool - Fixed slow exits when background tasks or hooks were slow to respond - Fixed agent task progress stuck on "Initializing…" - Fixed skill hooks firing twice per event when a hooks-enabled skill is invoked by the model - Fixed several voice mode issues: occasional input lag, false "No speech detected" errors after releasing push-to-talk, and stale transcripts re-filling the prompt after submission - Fixed `--continue` not resuming from the most recent point after `--compact` - Fixed bash security parsing edge cases - Added support for marketplace git URLs without `.git` suffix (Azure DevOps, AWS CodeCommit) - Improved marketplace clone failure messages to show diagnostic info even when git produces no stderr - Fixed several plugin issues: installation failing on Windows with `EEXIST` error in OneDrive folders, marketplace blocking user-scope installs when a project-scope install exists, `CLAUDE_CODE_PLUGIN_CACHE_DIR` creating literal `~` directories, and `plugin.json` with marketplace-only fields failing to load - Fixed feedback survey appearing too frequently in long sessions - Fixed `--effort` CLI flag being reset by unrelated settings writes on startup - Fixed backgrounded Ctrl+B queries losing their transcript or corrupting the new conversation after `/clear` - Fixed `/clear` killing background agent/bash tasks — only foreground tasks are now cleared - Fixed worktree isolation issues: Task tool resume not restoring cwd, and background task notifications missing `worktreePath` and `worktreeBranch` - Fixed `/model` not displaying results when run while Claude is working - Fixed digit keys selecting menu options instead of typing in plan mode permission prompt's text input - Fixed sandbox permission issues: certain file write operations incorrectly allowed without prompting, and output redirections to allowlisted directories (like `/tmp/claude/`) prompting unnecessarily - Improved CPU utilization in long sessions - Fixed prompt cache invalidation in SDK `query()` calls, reducing input token costs up to 12x - Fixed Escape key becoming unresponsive after cancelling a query - Fixed double Ctrl+C not exiting when background agents or tasks are running - Fixed team agents to inherit the leader's model - Fixed "Always Allow" saving permission rules that never match again - Fixed several hooks issues: `transcript_path` pointing to the wrong directory for resumed/forked sessions, agent `prompt` being silently deleted from settings.json on every settings write, PostToolUse block reason displaying twice, async hooks not receiving stdin with bash `read -r`, and validation error message showing an example that fails validation - Fixed session crashes in Desktop/SDK when Read returned files containing U+2028/U+2029 characters - Fixed terminal title being cleared on exit even when `CLAUDE_CODE_DISABLE_TERMINAL_TITLE` was set - Fixed several permission rule matching issues: wildcard rules not matching commands with heredocs, embedded newlines, or no arguments; `sandbox.excludedCommands` failing with env var prefixes; "always allow" suggesting overly broad prefixes for nested CLI tools; and deny rules not applying to all command forms - Fixed oversized and truncated images from Bash data-URL output - Fixed a crash when resuming sessions that contained Bedrock API errors - Fixed intermittent "expected boolean, received string" validation errors on Edit, Bash, and Grep tool inputs - Fixed multi-line session titles when forking from a conversation whose first message contained newlines - Fixed queued messages not showing attached images, and images being lost when pressing ↑ to edit a queued message - Fixed parallel tool calls where a failed Read/WebFetch/Glob would cancel its siblings — only Bash errors now cascade - VSCode: Fixed scroll speed in integrated terminals not matching native terminals - VSCode: Fixed Shift+Enter submitting input instead of inserting a newline for users with older keybindings - VSCode: Added effort level indicator on the input border - VSCode: Added `vscode://anthropic.claude-code/open` URI handler to open a new Claude Code tab programmatically, with optional `prompt` and `session` query parameters
v2.1.71/loop 与 Cron 调度
- 新增 `/loop` 命令支持定期间隔执行提示或命令
- 新增 Cron 调度工具和可配置 `voice:pushToTalk` 快捷键
- 改进 bash 命令解析为原生模块、上箭头历史显示、voice 准确度
- 修复 stdin 冻结、voice 模式启动延迟、会话恢复问题
## 2.1.71 - Added `/loop` command to run a prompt or slash command on a recurring interval (e.g. `/loop 5m check the deploy`) - Added cron scheduling tools for recurring prompts within a session - Added `voice:pushToTalk` keybinding to make the voice activation key rebindable in `keybindings.json` (default: space) — modifier+letter combos like `meta+k` have zero typing interference - Added `fmt`, `comm`, `cmp`, `numfmt`, `expr`, `test`, `printf`, `getconf`, `seq`, `tsort`, and `pr` to the bash auto-approval allowlist - Fixed stdin freeze in long-running sessions where keystrokes stop being processed but the process stays alive - Fixed a 5–8 second startup freeze for users with voice mode enabled, caused by CoreAudio initialization blocking the main thread after system wake - Fixed startup UI freeze when many claude.ai proxy connectors refresh an expired OAuth token simultaneously - Fixed forked conversations (`/fork`) sharing the same plan file, which caused plan edits in one fork to overwrite the other - Fixed the Read tool putting oversized images into context when image processing failed, breaking subsequent turns in long image-heavy sessions - Fixed false-positive permission prompts for compound bash commands containing heredoc commit messages - Fixed plugin installations being lost when running multiple Claude Code instances - Fixed claude.ai connectors failing to reconnect after OAuth token refresh - Fixed claude.ai MCP connector startup notifications appearing for every org-configured connector instead of only previously connected ones - Fixed background agent completion notifications missing the output file path, which made it difficult for parent agents to recover agent results after context compaction - Fixed duplicate output in Bash tool error messages when commands exit with non-zero status - Fixed Chrome extension auto-detection getting permanently stuck on "not installed" after running on a machine without local Chrome - Fixed `/plugin marketplace update` failing with merge conflicts when the marketplace is pinned to a branch/tag ref - Fixed `/plugin marketplace add owner/repo@ref` incorrectly parsing `@` — previously only `#` worked as a ref separator, causing undiagnosable errors with `strictKnownMarketplaces` - Fixed duplicate entries in `/permissions` Workspace tab when the same directory is added with and without a trailing slash - Fixed `--print` hanging forever when team agents are configured — the exit loop no longer waits on long-lived `in_process_teammate` tasks - Fixed "❯ Tool loaded." appearing in the REPL after every `ToolSearch` call - Fixed prompting for `cd <cwd> && git ...` on Windows when the model uses a mingw-style path - Improved startup time by deferring native image processor loading to first use - Improved bridge session reconnection to complete within seconds after laptop wake from sleep, instead of waiting up to 10 minutes - Improved `/plugin uninstall` to disable project-scoped plugins in `.claude/settings.local.json` instead of modifying `.claude/settings.json`, so changes don't affect teammates - Improved plugin-provided MCP server deduplication — servers that duplicate a manually-configured server (same command/URL) are now skipped, preventing duplicate connections and tool sets. Suppressions are shown in the `/plugin` menu. - Updated `/debug` to toggle debug logging on mid-session, since debug logs are no longer written by default - Removed startup notification noise for unauthenticated org-registered claude.ai connectors
v2.1.70修复兼容与改进输入
- 修复第三方网关 API 400 错误、Bedrock 模型识别问题
- 修复 ToolSearch 导致空响应、prompt cache 失效问题
- 修复 voice 模式、Windows 剪贴板 CJK、VS Code 启动等问题
- 改进 Enter 输入延迟、错误消息、图像处理、性能优化
## 2.1.70 - Fixed API 400 errors when using `ANTHROPIC_BASE_URL` with a third-party gateway — tool search now correctly detects proxy endpoints and disables `tool_reference` blocks - Fixed `API Error: 400 This model does not support the effort parameter` when using custom Bedrock inference profiles or other model identifiers not matching standard Claude naming patterns - Fixed empty model responses immediately after `ToolSearch` — the server renders tool schemas with system-prompt-style tags at the prompt tail, which could confuse models into stopping early - Fixed prompt-cache bust when an MCP server with `instructions` connects after the first turn - Fixed Enter inserting a newline instead of submitting when typing over a slow SSH connection - Fixed clipboard corrupting non-ASCII text (CJK, emoji) on Windows/WSL by using PowerShell `Set-Clipboard` - Fixed extra VS Code windows opening at startup on Windows when running from the VS Code integrated terminal - Fixed voice mode failing on Windows native binary with "native audio module could not be loaded" - Fixed push-to-talk not activating on session start when `voiceEnabled: true` was set in settings - Fixed markdown links containing `#NNN` references incorrectly pointing to the current repository instead of the linked URL - Fixed repeated "Model updated to Opus 4.6" notification when a project's `.claude/settings.json` has a legacy Opus model string pinned - Fixed plugins showing as inaccurately installed in `/plugin` - Fixed plugins showing "not found in marketplace" errors on fresh startup by auto-refreshing after marketplace installation - Fixed `/security-review` command failing with `unknown option merge-base` on older git versions - Fixed `/color` command having no way to reset back to the default color — `/color default`, `/color gray`, `/color reset`, and `/color none` now restore the default - Fixed a performance regression in the `AskUserQuestion` preview dialog that re-ran markdown rendering on every keystroke in the notes input - Fixed feature flags read during early startup never refreshing their disk cache, causing stale values to persist across sessions - Fixed `permissions.defaultMode` settings values other than `acceptEdits` or `plan` being applied in Claude Code Remote environments — they are now ignored - Fixed skill listing being re-injected on every `--resume` (~600 tokens saved per resume) - Fixed teleport marker not rendering in VS Code teleported sessions - Improved error message when microphone captures silence to distinguish from "no speech detected" - Improved compaction to preserve images in the summarizer request, allowing prompt cache reuse for faster and cheaper compaction - Improved `/rename` to work while Claude is processing, instead of being silently queued - Reduced prompt input re-renders during turns by ~74% - Reduced startup memory by ~426KB for users without custom CA certificates - Reduced Remote Control `/poll` rate to once per 10 minutes while connected (was 1–2s), cutting server load ~300×. Reconnection is unaffected — transport loss immediately wakes fast polling. - [VSCode] Added spark icon in VS Code activity bar that lists all Claude Code sessions, with sessions opening as full editors - [VSCode] Added full markdown document view for plans in VS Code, with support for adding comments to provide feedback - [VSCode] Added native MCP server management dialog — use `/mcp` in the chat panel to enable/disable servers, reconnect, and manage OAuth authentication without switching to the terminal
v2.1.60-696 个版本 · 6 已摘要
v2.1.69新增 Claude API Skill 与多项改进
- 新增 /claude-api Skill 用于构建 Claude API 和 Anthropic SDK 应用
- Voice STT 新增 10 种语言支持(俄语、波兰语、土耳其语等)
- 修复多项安全问题,包括 OAuth Keychain 损坏和嵌套 Skill 发现
- 新增 /reload-plugins 命令和 InstructionsLoaded Hook 事件
## 2.1.69
- Added the `/claude-api` skill for building applications with the Claude API and Anthropic SDK
- Added Ctrl+U on an empty bash prompt (`!`) to exit bash mode, matching `escape` and `backspace`
- Added numeric keypad support for selecting options in Claude's interview questions (previously only the number row above QWERTY worked)
- Added optional name argument to `/remote-control` and `claude remote-control` (`/remote-control My Project` or `--name "My Project"`) to set a custom session title visible in claude.ai/code
- Added Voice STT support for 10 new languages (20 total) — Russian, Polish, Turkish, Dutch, Ukrainian, Greek, Czech, Danish, Swedish, Norwegian
- Added effort level display (e.g., "with low effort") to the logo and spinner, making it easier to see which effort setting is active
- Added agent name display in terminal title when using `claude --agent`
- Added `sandbox.enableWeakerNetworkIsolation` setting (macOS only) to allow Go programs like `gh`, `gcloud`, and `terraform` to verify TLS certificates when using a custom MITM proxy with `httpProxyPort`
- Added `includeGitInstructions` setting (and `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` env var) to remove built-in commit and PR workflow instructions from Claude's system prompt
- Added `/reload-plugins` command to activate pending plugin changes without restarting
- Added a one-time startup prompt suggesting Claude Code Desktop on macOS and Windows (max 3 showings, dismissible)
- Added `${CLAUDE_SKILL_DIR}` variable for skills to reference their own directory in SKILL.md content
- Added `InstructionsLoaded` hook event that fires when CLAUDE.md or `.claude/rules/*.md` files are loaded into context
- Added `agent_id` (for subagents) and `agent_type` (for subagents and `--agent`) to hook events
- Added `worktree` field to status line hook commands with name, path, branch, and original repo directory when running in a `--worktree` session
- Added `pluginTrustMessage` in managed settings to append organization-specific context to the plugin trust warning shown before installation
- Added policy limit fetching (e.g., remote control restrictions) for Team plan OAuth users, not just Enterprise
- Added `pathPattern` to `strictKnownMarketplaces` for regex-matching file/directory marketplace sources alongside `hostPattern` restrictions
- Added plugin source type `git-subdir` to point to a subdirectory within a git repo
- Added `oauth.authServerMetadataUrl` config option for MCP servers to specify a custom OAuth metadata discovery URL when standard discovery fails
- Fixed a security issue where nested skill discovery could load skills from gitignored directories like `node_modules`
- Fixed trust dialog silently enabling all `.mcp.json` servers on first run. You'll now see the per-server approval dialog as expected
- Fixed `claude remote-control` crashing immediately on npm installs with "bad option: --sdk-url" (anthropics/claude-code#28334)
- Fixed `--model claude-opus-4-0` and `--model claude-opus-4-1` resolving to deprecated Opus versions instead of current
- Fixed macOS keychain corruption when using multiple OAuth MCP servers. Large OAuth metadata blobs could overflow the `security -i` stdin buffer, silently leaving stale credentials behind and causing repeated `/login` prompts.
- Fixed `.credentials.json` losing `subscriptionType` (showing "Claude API" instead of "Claude Pro"/"Claude Max") when the profile endpoint transiently fails during token refresh (anthropics/claude-code#30185)
- Fixed ghost dotfiles (`.bashrc`, `HEAD`, etc.) appearing as untracked files in the working directory after sandboxed Bash commands on Linux
- Fixed Shift+Enter printing `[27;2;13~` instead of inserting a newline in Ghostty over SSH
- Fixed stash (Ctrl+S) being cleared when submitting a message while Claude is working
- Fixed ctrl+o (transcript toggle) freezing for many seconds in long sessions with lots of file edits
- Fixed plan mode feedback input not supporting multi-line text entry (backslash+Enter and Shift+Enter now insert newlines)
- Fixed cursor not moving down into blank lines at the top of the input box
- Fixed `/stats` crash when transcript files contain entries with missing or malformed timestamps
- Fixed a brief hang after a streaming error on long sessions (the transcript was being fully rewritten to drop one line; it is now truncated in place)
- Fixed `--setting-sources user` not blocking dynamically discovered project skills
- Fixed duplicate CLAUDE.md, slash commands, agents, and rules when running from a worktree nested inside its main repo (e.g. `claude -w`)
- Fixed plugin Stop/SessionEnd/etc hooks not firing after any `/plugin` operation
- Fixed plugin hooks being silently dropped when two plugins use the same `${CLAUDE_PLUGIN_ROOT}/...` command template
- Fixed memory leak in long-running SDK/CCR sessions where conversation messages were retained unnecessarily
- Fixed API 400 errors in forked agents (autocompact, summarization) when resuming sessions that were interrupted mid-tool-batch
- Fixed "unexpected tool_use_id found in tool_result blocks" error when resuming conversations that start with an orphaned tool result
- Fixed teammates accidentally spawning nested teammates via the Agent tool's `name` parameter
- Fixed `CLAUDE_CODE_MAX_OUTPUT_TOKENS` being ignored during conversation compaction
- Fixed `/compact` summary rendering as a user bubble in SDK consumers (Claude Code Remote web UI, VSCode extension)
- Fixed voice space bar getting stuck after a failed voice activation (module loading race, cold GrowthBook)
- Fixed worktree file copy on Windows
- Fixed global `.claude` folder detection on Windows
- Fixed symlink bypass where writing new files through a symlinked parent directory could escape the working directory in `acceptEdits` mode
- Fixed sandbox prompting users to approve non-allowed domains when `allowManagedDomainsOnly` is enabled in managed settings — non-allowed domains are now blocked automatically with no bypass
- Fixed interactive tools (e.g., `AskUserQuestion`) being silently auto-allowed when listed in a skill's allowed-tools, bypassing the permission prompt and running with empty answers
- Fixed multi-GB memory spike when committing with large untracked binary files in the working tree
- Fixed Escape not interrupting a running turn when the input box has draft text. Use Up arrow to pull queued messages back for editing, or Ctrl+U to clear the input line.
- Fixed Android app crash when running local slash commands (`/voice`, `/cost`) in Remote Control sessions
- Fixed a memory leak where old message array versions accumulated in React Compiler `memoCache` over long sessions
- Fixed a memory leak where REPL render scopes accumulated over long sessions (~35MB over 1000 turns)
- Fixed memory retention in in-process teammates where the parent's full conversation history was pinned for the teammate's lifetime, preventing GC after `/clear` or auto-compact
- Fixed a memory leak in interactive mode where hook events could accumulate unboundedly during long sessions
- Fixed hang when `--mcp-config` points to a corrupted file
- Fixed slow startup when many skills/plugins are installed
- Fixed `cd <outside-dir> && <cmd>` permission prompt to surface the chained command instead of only showing "Yes, allow reading from <dir>/"
- Fixed conditional `.claude/rules/*.md` files (with `paths:` frontmatter) and nested CLAUDE.md files not loading in print mode (`claude -p`)
- Fixed `/clear` not fully clearing all session caches, reducing memory retention in long sessions
- Fixed terminal flicker caused by animated elements at the scrollback boundary
- Fixed UI frame drops on macOS when using MCP servers with OAuth (regression from 2.1.x)
- Fixed occasional frame stalls during typing caused by synchronous debug log flushes
- Fixed `TeammateIdle` and `TaskCompleted` hooks to support `{"continue": false, "stopReason": "..."}` to stop the teammate, matching `Stop` hook behavior
- Fixed `WorktreeCreate` and `WorktreeRemove` plugin hooks being silently ignored
- Fixed skill descriptions with colons (e.g., "Triggers include: X, Y, Z") failing to load from SKILL.md frontmatter
- Fixed project skills without a `description:` frontmatter field not appearing in Claude's available skills list
- Fixed `/context` showing identical token counts for all MCP tools from a server
- Fixed literal `nul` file creation on Windows when the model uses CMD-style `2>nul` redirection in Git Bash
- Fixed extra blank lines appearing below each tool call in the expanded subagent transcript view (Ctrl+O)
- Fixed Tab/arrow keys not cycling Settings tabs when `/config` search box is focused but empty
- Fixed service key OAuth sessions (CCR containers) spamming `[ERROR]` logs with 403s from profile-scoped endpoints
- Fixed inconsistent color for "Remote Control active" status indicator
- Fixed Voice waveform cursor covering the first suffix letter when dictating mid-input
- Fixed Voice input showing all 5 spaces during warmup instead of capping at ~2 (aligning with the "keep holding…" hint)
- Improved spinner performance by isolating the 50ms animation loop from the surrounding shell, reducing render and CPU overhead during turns
- Improved UI rendering performance in native binaries with React Compiler
- Improved `--worktree` startup by eliminating a git subprocess on the startup path
- Improved macOS startup by eliminating redundant settings-file reloads when managed settings resolve
- Improved macOS startup for Claude.ai enterprise/team users by skipping an unnecessary keychain lookup
- Improved MCP `-p` startup by pipelining claude.ai config fetch with local connections and using a concurrency pool instead of sequential batching
- Improved voice startup by removing imperceptible warmup pulse animations that were causing re-render stutter
- Improved MCP binary content handling: tools returning PDFs, Office documents, or audio now save decoded bytes to disk with the correct file extension instead of dumping raw base64 into the conversation context. WebFetch also saves binary responses alongside its summary.
- Improved memory usage in long sessions by stabilizing `onSubmit` across message updates
- Improved LSP tool rendering and memory context building to no longer read entire files
- Improved session upload and memory sync to avoid reading large files into memory before size/binary checks
- Improved file operation performance by avoiding reading file contents for existence checks (6 sites)
- Improved documentation to clarify that `--append-system-prompt-file` and `--system-prompt-file` work in interactive mode (the docs previously said print mode only)
- Reduced baseline memory by ~16MB by deferring Yoga WASM preloading
- Reduced memory footprint for SDK and CCR sessions using stream-json output
- Reduced memory usage when resuming large sessions (including compacted history)
- Reduced token usage on multi-agent tasks with more concise subagent final reports
- Changed Sonnet 4.5 users on Pro/Max/Team Premium to be automatically migrated to Sonnet 4.6
- Changed the `/resume` picker to show your most recent prompt instead of the first one. This also resolves some titles appearing as `(session)`.
- Changed claude.ai MCP connector failures to show a notification instead of silently disappearing from the tool list
- Changed example command suggestions to be generated deterministically instead of calling Haiku
- Changed resuming after compaction to no longer produce a preamble recap before continuing
- [SDK] Changed task creation to no longer require the `activeForm` field — the spinner falls back to the task subject
- [VSCode] Added compaction display as a collapsible "Compacted chat" card with the summary inside
- [VSCode] The permission mode picker now respects `permissions.disableBypassPermissionsMode` from your effective Claude Code settings (including managed/policy settings) — when set to `disable`, bypass permissions mode is hidden from the picker
- [VSCode] Fixed RTL text (Arabic, Hebrew, Persian) rendering reversed in the chat panel (regression in v2.1.63)v2.1.68Opus 默认 medium,恢复 ultrathink
- Opus 4.6 对 Max/Team 用户默认改为 medium effort(平衡速度与质量)
- 重新引入 "ultrathink" 关键字启用高级推理能力
- Opus 4/4.1 用户自动迁移至 Opus 4.6
破坏性变化
- Opus 4 和 4.1 从第一方 API 移除
## 2.1.68 - Opus 4.6 now defaults to medium effort for Max and Team subscribers. Medium effort works well for most tasks — it's the sweet spot between speed and thoroughness. You can change this anytime with `/model` - Re-introduced the "ultrathink" keyword to enable high effort for the next turn - Removed Opus 4 and 4.1 from Claude Code on the first-party API — users with these models pinned are automatically moved to Opus 4.6
v2.1.66修复错误日志虚假告警
- 减少虚假错误日志输出
## 2.1.66 - Reduced spurious error logging
v2.1.63新增 /simplify /batch,内存优化
- 新增 /simplify 和 /batch 内置 slash 命令
- 项目配置和 auto-memory 现在在同一仓库的 git worktree 间共享
- 添加 HTTP Hooks 支持,可 POST JSON 到 URL
- 修复 20+ 项内存泄漏问题和 MCP OAuth 竞态条件
## 2.1.63 - Added `/simplify` and `/batch` bundled slash commands - Fixed local slash command output like /cost appearing as user-sent messages instead of system messages in the UI - Project configs & auto memory now shared across git worktrees of the same repository - Added `ENABLE_CLAUDEAI_MCP_SERVERS=false` env var to opt out from making claude.ai MCP servers available - Improved `/model` command to show the currently active model in the slash command menu - Added HTTP hooks, which can POST JSON to a URL and receive JSON instead of running a shell command - Fixed listener leak in bridge polling loop - Fixed listener leak in MCP OAuth flow cleanup - Added manual URL paste fallback during MCP OAuth authentication. If the automatic localhost redirect doesn't work, you can paste the callback URL to complete authentication. - Fixed memory leak when navigating hooks configuration menu - Fixed listener leak in interactive permission handler during auto-approvals - Fixed file count cache ignoring glob ignore patterns - Fixed memory leak in bash command prefix cache - Fixed MCP tool/resource cache leak on server reconnect - Fixed IDE host IP detection cache incorrectly sharing results across ports - Fixed WebSocket listener leak on transport reconnect - Fixed memory leak in git root detection cache that could cause unbounded growth in long-running sessions - Fixed memory leak in JSON parsing cache that grew unbounded over long sessions - VSCode: Fixed remote sessions not appearing in conversation history - Fixed a race condition in the REPL bridge where new messages could arrive at the server interleaved with historical messages during the initial connection flush, causing message ordering issues. - Fixed memory leak where long-running teammates retained all messages in AppState even after conversation compaction - Fixed a memory leak where MCP server fetch caches were not cleared on disconnect, causing growing memory usage with servers that reconnect frequently - Improved memory usage in long sessions with subagents by stripping heavy progress message payloads during context compaction - Added "Always copy full response" option to the `/copy` picker. When selected, future `/copy` commands will skip the code block picker and copy the full response directly. - VSCode: Added session rename and remove actions to the sessions list - Fixed `/clear` not resetting cached skills, which could cause stale skill content to persist in the new conversation
v2.1.62修复缓存命中率回归
- 修复提示建议缓存回归导致的命中率下降
## 2.1.62 - Fixed prompt suggestion cache regression that reduced cache hit rates
v2.1.61修复 Windows 配置文件损坏
- 修复 Windows 上多个 Claude Code 实例并发写入导致配置文件损坏
## 2.1.61 - Fixed concurrent writes corrupting config file on Windows
v2.1.50-598 个版本 · 8 已摘要
v2.1.59自动 auto-memory,新增 /copy
- Claude 自动保存有用的上下文到 auto-memory(通过 /memory 管理)
- 新增 /copy 命令,可交互式选择代码块或全文响应
- 改进 bash 命令前缀建议,支持复杂命令链
- 修复 MCP OAuth 竞态条件和配置文件损坏问题
## 2.1.59 - Claude automatically saves useful context to auto-memory. Manage with /memory - Added `/copy` command to show an interactive picker when code blocks are present, allowing selection of individual code blocks or the full response. - Improved "always allow" prefix suggestions for compound bash commands (e.g. `cd /tmp && git fetch && git push`) to compute smarter per-subcommand prefixes instead of treating the whole command as one - Improved ordering of short task lists - Improved memory usage in multi-agent sessions by releasing completed subagent task state - Fixed MCP OAuth token refresh race condition when running multiple Claude Code instances simultaneously - Fixed shell commands not showing a clear error message when the working directory has been deleted - Fixed config file corruption that could wipe authentication when multiple Claude Code instances ran simultaneously
v2.1.58扩展 Remote Control 用户范围
- 向更多用户扩展 Remote Control 功能
## 2.1.58 - Expand Remote Control to more users
v2.1.56修复 VS Code 崩溃问题
- 修复 VS Code 中 command 'claude-vscode.editor.openLast' 缺失导致的崩溃
## 2.1.56 - VS Code: Fixed another cause of "command 'claude-vscode.editor.openLast' not found" crashes
v2.1.55修复 Windows Bash Tool 错误
- 修复 BashTool 在 Windows 上的 EINVAL 错误
## 2.1.55 - Fixed BashTool failing on Windows with EINVAL error
v2.1.53多项崩溃和界面修复
- 修复用户输入在提交后闪烁消失的 UI 问题
- 修复 Ctrl+F 批量杀死 Agent,优化通知聚合
- 修复 Remote Control 优雅关闭导致的死会话
- 修复 Windows 崩溃和 WebAssembly 解释器问题
## 2.1.53
- Fixed a UI flicker where user input would briefly disappear after submission before the message rendered
- Fixed bulk agent kill (ctrl+f) to send a single aggregate notification instead of one per agent, and to properly clear the command queue
- Fixed graceful shutdown sometimes leaving stale sessions when using Remote Control by parallelizing teardown network calls
- Fixed `--worktree` sometimes being ignored on first launch
- Fixed a panic ("switch on corrupted value") on Windows
- Fixed a crash that could occur when spawning many processes on Windows
- Fixed a crash in the WebAssembly interpreter on Linux x64 & Windows x64
- Fixed a crash that sometimes occurred after 2 minutes on Windows ARM64v2.1.52修复 VS Code Windows 扩展崩溃
- 修复 VS Code 在 Windows 上 command 缺失导致的 extension 崩溃
## 2.1.52
- VS Code: Fixed extension crash on Windows ("command 'claude-vscode.editor.openLast' not found")v2.1.51Remote Control 和性能优化
- 添加 claude remote-control 命令支持外部构建本地环境服务
- BashTool 默认跳过登录 shell,显著提升命令执行性能
- 支持自定义 npm 注册表和版本精确指定
- 修复 statusLine/fileSuggestion Hook 的权限安全问题
破坏性变化
- BashTool 默认跳过登录 shell,不再需要 CLAUDE_BASH_NO_LOGIN=true 设置
## 2.1.51 - Added `claude remote-control` subcommand for external builds, enabling local environment serving for all users. - Updated plugin marketplace default git timeout from 30s to 120s and added `CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS` to configure. - Added support for custom npm registries and specific version pinning when installing plugins from npm sources - BashTool now skips login shell (`-l` flag) by default when a shell snapshot is available, improving command execution performance. Previously this required setting `CLAUDE_BASH_NO_LOGIN=true`. - Fixed a security issue where `statusLine` and `fileSuggestion` hook commands could execute without workspace trust acceptance in interactive mode. - Tool results larger than 50K characters are now persisted to disk (previously 100K). This reduces context window usage and improves conversation longevity. - Fixed a bug where duplicate `control_response` messages (e.g. from WebSocket reconnects) could cause API 400 errors by pushing duplicate assistant messages into the conversation. - Added `CLAUDE_CODE_ACCOUNT_UUID`, `CLAUDE_CODE_USER_EMAIL`, and `CLAUDE_CODE_ORGANIZATION_UUID` environment variables for SDK callers to provide account info synchronously, eliminating a race condition where early telemetry events lacked account metadata. - Fixed slash command autocomplete crashing when a plugin's SKILL.md description is a YAML array or other non-string type - The `/model` picker now shows human-readable labels (e.g., "Sonnet 4.5") instead of raw model IDs for pinned model versions, with an upgrade hint when a newer version is available. - Managed settings can now be set via macOS plist or Windows Registry. Learn more at https://code.claude.com/docs/en/settings#settings-files
v2.1.50内存优化和 worktree 隔离
- 支持 Agent worktree 隔离:isolation: 'worktree' 声明式配置
- 修复多个内存泄漏:诊断数据、任务输出、WASM 内存等
- Opus 4.6 fast mode 扩展支持 1M context 窗口
- 启动性能优化:defer SessionStart Hook 减少 500ms 延迟
破坏性变化
- CLAUDE_CODE_SIMPLE 模式禁用 MCP 工具、Hook 和 CLAUDE.md 加载
## 2.1.50 - Added support for `startupTimeout` configuration for LSP servers - Added `WorktreeCreate` and `WorktreeRemove` hook events, enabling custom VCS setup and teardown when agent worktree isolation creates or removes worktrees. - Fixed a bug where resumed sessions could be invisible when the working directory involved symlinks, because the session storage path was resolved at different times during startup. Also fixed session data loss on SSH disconnect by flushing session data before hooks and analytics in the graceful shutdown sequence. - Linux: Fixed native modules not loading on systems with glibc older than 2.30 (e.g., RHEL 8) - Fixed memory leak in agent teams where completed teammate tasks were never garbage collected from session state - Fixed `CLAUDE_CODE_SIMPLE` to fully strip down skills, session memory, custom agents, and CLAUDE.md token counting - Fixed `/mcp reconnect` freezing the CLI when given a server name that doesn't exist - Fixed memory leak where completed task state objects were never removed from AppState - Added support for `isolation: worktree` in agent definitions, allowing agents to declaratively run in isolated git worktrees. - `CLAUDE_CODE_SIMPLE` mode now also disables MCP tools, attachments, hooks, and CLAUDE.md file loading for a fully minimal experience. - Fixed bug where MCP tools were not discovered when tool search is enabled and a prompt is passed in as a launch argument - Improved memory usage during long sessions by clearing internal caches after compaction - Added `claude agents` CLI command to list all configured agents - Improved memory usage during long sessions by clearing large tool results after they have been processed - Fixed a memory leak where LSP diagnostic data was never cleaned up after delivery, causing unbounded memory growth in long sessions - Fixed a memory leak where completed task output was not freed from memory, reducing memory usage in long sessions with many tasks - Improved startup performance for headless mode (`-p` flag) by deferring Yoga WASM and UI component imports - Fixed prompt suggestion cache regression that reduced cache hit rates - Fixed unbounded memory growth in long sessions by capping file history snapshots - Added `CLAUDE_CODE_DISABLE_1M_CONTEXT` environment variable to disable 1M context window support - Opus 4.6 (fast mode) now includes the full 1M context window - VSCode: Added `/extra-usage` command support in VS Code sessions - Fixed memory leak where TaskOutput retained recent lines after cleanup - Fixed memory leak in CircularBuffer where cleared items were retained in the backing array - Fixed memory leak in shell command execution where ChildProcess and AbortController references were retained after cleanup
v2.1.40-498 个版本 · 8 已摘要
v2.1.49MCP OAuth 改进和隔离支持
- MCP OAuth 身份验证改进:支持跳转认证和发现缓存
- --worktree 标志启动隔离 git 环境,Subagent 支持隔离
- Ctrl+F 快捷键杀死所有后台 Agent(双键确认)
- 插件支持 settings.json 默认配置和 background: true 字段
破坏性变化
- Sonnet 4.5 with 1M context 从 Max 计划移除,改用 Sonnet 4.6
## 2.1.49 - Improved MCP OAuth authentication with step-up auth support and discovery caching, reducing redundant network requests during server connections - Added `--worktree` (`-w`) flag to start Claude in an isolated git worktree - Subagents support `isolation: "worktree"` for working in a temporary git worktree - Added Ctrl+F keybinding to kill background agents (two-press confirmation) - Agent definitions support `background: true` to always run as a background task - Plugins can ship `settings.json` for default configuration - Fixed file-not-found errors to suggest corrected paths when the model drops the repo folder - Fixed Ctrl+C and ESC being silently ignored when background agents are running and the main thread is idle. Pressing twice within 3 seconds now kills all background agents. - Fixed prompt suggestion cache regression that reduced cache hit rates. - Fixed `plugin enable` and `plugin disable` to auto-detect the correct scope when `--scope` is not specified, instead of always defaulting to user scope - Simple mode (`CLAUDE_CODE_SIMPLE`) now includes the file edit tool in addition to the Bash tool, allowing direct file editing in simple mode. - Permission suggestions are now populated when safety checks trigger an ask response, enabling SDK consumers to display permission options - Sonnet 4.5 with 1M context is being removed from the Max plan in favor of our frontier Sonnet 4.6 model, which now has 1M context. Please switch in /model. - Fixed verbose mode not updating thinking block display when toggled via `/config` — memo comparators now correctly detect verbose changes - Fixed unbounded WASM memory growth during long sessions by periodically resetting the tree-sitter parser - Fixed potential rendering issues caused by stale yoga layout references - Improved performance in non-interactive mode (`-p`) by skipping unnecessary API calls during startup - Improved performance by caching authentication failures for HTTP and SSE MCP servers, avoiding repeated connection attempts to servers requiring auth - Fixed unbounded memory growth during long-running sessions caused by Yoga WASM linear memory never shrinking - SDK model info now includes `supportsEffort`, `supportedEffortLevels`, and `supportsAdaptiveThinking` fields so consumers can discover model capabilities. - Added `ConfigChange` hook event that fires when configuration files change during a session, enabling enterprise security auditing and optional blocking of settings changes. - Improved startup performance by caching MCP auth failures to avoid redundant connection attempts - Improved startup performance by reducing HTTP calls for analytics token counting - Improved startup performance by batching MCP tool token counting into a single API call - Fixed `disableAllHooks` setting to respect managed settings hierarchy — non-managed settings can no longer disable managed hooks set by policy (#26637) - Fixed `--resume` session picker showing raw XML tags for sessions that start with commands like `/clear`. Now correctly falls through to the session ID fallback. - Improved permission prompts for path safety and working directory blocks to show the reason for the restriction instead of a bare prompt with no context
v2.1.47大规模崩溃修复和内存优化
- FileWriteTool 保留有意的尾部空行,修复 Windows 渲染 bug
- VS Code 计划预览自动更新,评审就绪后启用评论
- 修复 40+ 个 bug:内存泄漏、Hook 执行、Unicode 处理等
- MCP 工具性能改进:索引预热、会话缓存、后台刷新
## 2.1.47
- Fixed FileWriteTool line counting to preserve intentional trailing blank lines instead of stripping them with `trimEnd()`.
- Fixed Windows terminal rendering bugs caused by `os.EOL` (`\r\n`) in display code — line counts now show correct values instead of always showing 1 on Windows.
- Improved VS Code plan preview: auto-updates as Claude iterates, enables commenting only when the plan is ready for review, and keeps the preview open when rejecting so Claude can revise.
- Fixed a bug where bold and colored text in markdown output could shift to the wrong characters on Windows due to `\r\n` line endings.
- Fixed compaction failing when conversation contains many PDF documents by stripping document blocks alongside images before sending to the compaction API (anthropics/claude-code#26188)
- Improved memory usage in long-running sessions by releasing API stream buffers, agent context, and skill state after use
- Improved startup performance by deferring SessionStart hook execution, reducing time-to-interactive by ~500ms.
- Fixed an issue where bash tool output was silently discarded on Windows when using MSYS2 or Cygwin shells.
- Improved performance of `@` file mentions - file suggestions now appear faster by pre-warming the index on startup and using session-based caching with background refresh.
- Improved memory usage by trimming agent task message history after tasks complete
- Improved memory usage during long agent sessions by eliminating O(n²) message accumulation in progress updates
- Fixed the bash permission classifier to validate that returned match descriptions correspond to actual input rules, preventing hallucinated descriptions from incorrectly granting permissions
- Fixed user-defined agents only loading one file on NFS/FUSE filesystems that report zero inodes (anthropics/claude-code#26044)
- Fixed plugin agent skills silently failing to load when referenced by bare name instead of fully-qualified plugin name (anthropics/claude-code#25834)
- Search patterns in collapsed tool results are now displayed in quotes for clarity
- Windows: Fixed CWD tracking temp files never being cleaned up, causing them to accumulate indefinitely (anthropics/claude-code#17600)
- Use `ctrl+f` to kill all background agents instead of double-pressing ESC. Background agents now continue running when you press ESC to cancel the main thread, giving you more control over agent lifecycle.
- Fixed API 400 errors ("thinking blocks cannot be modified") that occurred in sessions with concurrent agents, caused by interleaved streaming content blocks preventing proper message merging.
- Simplified teammate navigation to use only Shift+Down (with wrapping) instead of both Shift+Up and Shift+Down.
- Fixed an issue where a single file write/edit error would abort all other parallel file write/edit operations. Independent file mutations now complete even when a sibling fails.
- Added `last_assistant_message` field to Stop and SubagentStop hook inputs, providing the final assistant response text so hooks can access it without parsing transcript files.
- Fixed custom session titles set via `/rename` being lost after resuming a conversation (anthropics/claude-code#23610)
- Fixed collapsed read/search hint text overflowing on narrow terminals by truncating from the start.
- Fixed an issue where bash commands with backslash-newline continuation lines (e.g., long commands split across multiple lines with `\`) would produce spurious empty arguments, potentially breaking command execution.
- Fixed built-in slash commands (`/help`, `/model`, `/compact`, etc.) being hidden from the autocomplete dropdown when many user skills are installed (anthropics/claude-code#22020)
- Fixed MCP servers not appearing in the MCP Management Dialog after deferred loading
- Fixed session name persisting in status bar after `/clear` command (anthropics/claude-code#26082)
- Fixed crash when a skill's `name` or `description` in SKILL.md frontmatter is a bare number (e.g., `name: 3000`) — the value is now properly coerced to a string (anthropics/claude-code#25837)
- Fixed /resume silently dropping sessions when the first message exceeds 16KB or uses array-format content (anthropics/claude-code#25721)
- Added `chat:newline` keybinding action for configurable multi-line input (anthropics/claude-code#26075)
- Added `added_dirs` to the statusline JSON `workspace` section, exposing directories added via `/add-dir` to external scripts (anthropics/claude-code#26096)
- Fixed `claude doctor` misclassifying mise and asdf-managed installations as native installs (anthropics/claude-code#26033)
- Fixed zsh heredoc failing with "read-only file system" error in sandboxed commands (anthropics/claude-code#25990)
- Fixed agent progress indicator showing inflated tool use count (anthropics/claude-code#26023)
- Fixed image pasting not working on WSL2 systems where Windows copies images as BMP format (anthropics/claude-code#25935)
- Fixed background agent results returning raw transcript data instead of the agent's final answer (anthropics/claude-code#26012)
- Fixed Warp terminal incorrectly prompting for Shift+Enter setup when it supports it natively (anthropics/claude-code#25957)
- Fixed CJK wide characters causing misaligned timestamps and layout elements in the TUI (anthropics/claude-code#26084)
- Fixed custom agent `model` field in `.claude/agents/*.md` being ignored when spawning team teammates (anthropics/claude-code#26064)
- Fixed plan mode being lost after context compaction, causing the model to switch from planning to implementation mode (anthropics/claude-code#26061)
- Fixed `alwaysThinkingEnabled: true` in settings.json not enabling thinking mode on Bedrock and Vertex providers (anthropics/claude-code#26074)
- Fixed `tool_decision` OTel telemetry event not being emitted in headless/SDK mode (anthropics/claude-code#26059)
- Fixed session name being lost after context compaction — renamed sessions now preserve their custom title through compaction (anthropics/claude-code#26121)
- Increased initial session count in resume picker from 10 to 50 for faster session discovery (anthropics/claude-code#26123)
- Windows: fixed worktree session matching when drive letter casing differs (anthropics/claude-code#26123)
- Fixed `/resume <session-id>` failing to find sessions whose first message exceeds 16KB (anthropics/claude-code#25920)
- Fixed "Always allow" on multiline bash commands creating invalid permission patterns that corrupt settings (anthropics/claude-code#25909)
- Fixed React crash (error #31) when a skill's `argument-hint` in SKILL.md frontmatter uses YAML sequence syntax (e.g., `[topic: foo | bar]`) — the value is now properly coerced to a string (anthropics/claude-code#25826)
- Fixed crash when using `/fork` on sessions that used web search — null entries in search results from transcript deserialization are now handled gracefully (anthropics/claude-code#25811)
- Fixed read-only git commands triggering FSEvents file watcher loops on macOS by adding --no-optional-locks flag (anthropics/claude-code#25750)
- Fixed custom agents and skills not being discovered when running from a git worktree — project-level `.claude/agents/` and `.claude/skills/` from the main repository are now included (anthropics/claude-code#25816)
- Fixed non-interactive subcommands like `claude doctor` and `claude plugin validate` being blocked inside nested Claude sessions (anthropics/claude-code#25803)
- Windows: Fixed the same CLAUDE.md file being loaded twice when drive letter casing differs between paths (anthropics/claude-code#25756)
- Fixed inline code spans in markdown being incorrectly parsed as bash commands (anthropics/claude-code#25792)
- Fixed teammate spinners not respecting custom spinnerVerbs from settings (anthropics/claude-code#25748)
- Fixed shell commands permanently failing after a command deletes its own working directory (anthropics/claude-code#26136)
- Fixed hooks (PreToolUse, PostToolUse) silently failing to execute on Windows by using Git Bash instead of cmd.exe (anthropics/claude-code#25981)
- Fixed LSP `findReferences` and other location-based operations returning results from gitignored files (e.g., `node_modules/`, `venv/`) (anthropics/claude-code#26051)
- Moved config backup files from home directory root to `~/.claude/backups/` to reduce home directory clutter (anthropics/claude-code#26130)
- Fixed sessions with large first prompts (>16KB) disappearing from the /resume list (anthropics/claude-code#26140)
- Fixed shell functions with double-underscore prefixes (e.g., `__git_ps1`) not being preserved across shell sessions (anthropics/claude-code#25824)
- Fixed spinner showing "0 tokens" counter before any tokens have been received (anthropics/claude-code#26105)
- VSCode: Fixed conversation messages appearing dimmed while the AskUserQuestion dialog is open (anthropics/claude-code#26078)
- Fixed background tasks failing in git worktrees due to remote URL resolution reading from worktree-specific gitdir instead of the main repository config (anthropics/claude-code#26065)
- Fixed Right Alt key leaving visible `[25~` escape sequence residue in the input field on Windows/Git Bash terminals (anthropics/claude-code#25943)
- The `/rename` command now updates the terminal tab title by default (anthropics/claude-code#25789)
- Fixed Edit tool silently corrupting Unicode curly quotes (\u201c\u201d \u2018\u2019) by replacing them with straight quotes when making edits (anthropics/claude-code#26141)
- Fixed OSC 8 hyperlinks only being clickable on the first line when link text wraps across multiple terminal lines.v2.1.46修复macOS进程泄漏,支持MCP连接器
- 修复macOS断开连接后孤立进程问题
- 支持在Claude Code中使用claude.ai MCP连接器
## 2.1.46 - Fixed orphaned CC processes after terminal disconnect on macOS - Added support for using claude.ai MCP connectors in Claude Code
v2.1.45Sonnet 4.6支持和多项稳定性改进
- 支持Claude Sonnet 4.6模型
- 新增spinnerTipsOverride自定义提示设置
- 新增SDKRateLimitInfo/SDKRateLimitEvent类型用于速率限制信息
- 修复Agent Teams在Bedrock/Vertex/Foundry上的多个问题
## 2.1.45 - Added support for Claude Sonnet 4.6 - Added support for reading `enabledPlugins` and `extraKnownMarketplaces` from `--add-dir` directories - Added `spinnerTipsOverride` setting to customize spinner tips — configure `tips` with an array of custom tip strings, and optionally set `excludeDefault: true` to show only your custom tips instead of the built-in ones - Added `SDKRateLimitInfo` and `SDKRateLimitEvent` types to the SDK, enabling consumers to receive rate limit status updates including utilization, reset times, and overage information - Fixed Agent Teams teammates failing on Bedrock, Vertex, and Foundry by propagating API provider environment variables to tmux-spawned processes (anthropics/claude-code#23561) - Fixed sandbox "operation not permitted" errors when writing temporary files on macOS by using the correct per-user temp directory (anthropics/claude-code#21654) - Fixed Task tool (backgrounded agents) crashing with a `ReferenceError` on completion (anthropics/claude-code#22087) - Fixed autocomplete suggestions not being accepted on Enter when images are pasted in the input - Fixed skills invoked by subagents incorrectly appearing in main session context after compaction - Fixed excessive `.claude.json.backup` files accumulating on every startup - Fixed plugin-provided commands, agents, and hooks not being available immediately after installation without requiring a restart - Improved startup performance by removing eager loading of session history for stats caching - Improved memory usage for shell commands that produce large output — RSS no longer grows unboundedly with command output size - Improved collapsed read/search groups to show the current file or search pattern being processed beneath the summary line while active - [VSCode] Improved permission destination choice (project/user/session) to persist across sessions
v2.1.44修复路径长度和认证刷新问题
- 修复深层嵌套目录路径的ENAMETOOLONG错误
- 修复认证刷新错误
## 2.1.44 - Fixed ENAMETOOLONG errors for deeply-nested directory paths - Fixed auth refresh errors
v2.1.43认证超时和兼容性修复
- 修复AWS认证刷新无限挂起,增加3分钟超时
- 修复.claude/agents/目录markdown文件错误警告
- 修复Vertex/Bedrock上structured-outputs头条件发送
## 2.1.43 - Fixed AWS auth refresh hanging indefinitely by adding a 3-minute timeout - Fixed spurious warnings for non-agent markdown files in `.claude/agents/` directory - Fixed structured-outputs beta header being sent unconditionally on Vertex/Bedrock
v2.1.42启动性能和缓存命中率改进
- 改进启动性能,延迟Zod模式构造
- 提高提示缓存命中率,移除系统提示中的日期
- 修复/resume命令显示中断信息问题
## 2.1.42 - Improved startup performance by deferring Zod schema construction - Improved prompt cache hit rates by moving date out of system prompt - Added one-time Opus 4.6 effort callout for eligible users - Fixed /resume showing interrupt messages as session titles - Fixed image dimension limit errors to suggest /compact
v2.1.41Agent Teams修复和CLI认证命令支持
- 修复Agent Teams在Bedrock/Vertex/Foundry的模型标识符问题
- 新增claude auth login/status/logout CLI子命令
- 新增Windows ARM64原生二进制支持
- 修复MCP工具在流模式下的崩溃问题
## 2.1.41 - Added guard against launching Claude Code inside another Claude Code session - Fixed Agent Teams using wrong model identifier for Bedrock, Vertex, and Foundry customers - Fixed a crash when MCP tools return image content during streaming - Fixed /resume session previews showing raw XML tags instead of readable command names - Improved model error messages for Bedrock/Vertex/Foundry users with fallback suggestions - Fixed plugin browse showing misleading "Space to Toggle" hint for already-installed plugins - Fixed hook blocking errors (exit code 2) not showing stderr to the user - Added `speed` attribute to OTel events and trace spans for fast mode visibility - Added `claude auth login`, `claude auth status`, and `claude auth logout` CLI subcommands - Added Windows ARM64 (win32-arm64) native binary support - Improved `/rename` to auto-generate session name from conversation context when called without arguments - Improved narrow terminal layout for prompt footer - Fixed file resolution failing for @-mentions with anchor fragments (e.g., `@README.md#installation`) - Fixed FileReadTool blocking the process on FIFOs, `/dev/stdin`, and large files - Fixed background task notifications not being delivered in streaming Agent SDK mode - Fixed cursor jumping to end on each keystroke in classifier rule input - Fixed markdown link display text being dropped for raw URL - Fixed auto-compact failure error notifications being shown to users - Fixed permission wait time being included in subagent elapsed time display - Fixed proactive ticks firing while in plan mode - Fixed clear stale permission rules when settings change on disk - Fixed hook blocking errors showing stderr content in UI
v2.1.30-399 个版本 · 9 已摘要
v2.1.39终端渲染性能和稳定性提升
- 改进终端渲染性能
- 修复致命错误未显示问题
- 修复会话关闭后进程挂起
- 修复终端屏幕边界字符丢失
## 2.1.39 - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed - Fixed process hanging after session close - Fixed character loss at terminal screen boundary - Fixed blank lines in verbose transcript view
v2.1.38VS Code扩展和安全性改进
- 修复VS Code终端滚动回归和Tab键自动完成问题
- 修复流模式下工具间文本丢失问题
- 修复VS Code扩展重复会话问题
- 改进heredoc解析防止命令注入
## 2.1.38 - Fixed VS Code terminal scroll-to-top regression introduced in 2.1.37 - Fixed Tab key queueing slash commands instead of autocompleting - Fixed bash permission matching for commands using environment variable wrappers - Fixed text between tool uses disappearing when not using streaming - Fixed duplicate sessions when resuming in VS Code extension - Improved heredoc delimiter parsing to prevent command smuggling - Blocked writes to `.claude/skills` directory in sandbox mode
v2.1.37修复快速模式可用性问题
- 修复启用 /extra-usage 后 /fast 不能立即可用
## 2.1.37 - Fixed an issue where /fast was not immediately available after enabling /extra-usage
v2.1.36Opus 4.6 支持快速模式
- Opus 4.6 现在可用快速模式
## 2.1.36 - Fast mode is now available for Opus 4.6. Learn more at https://code.claude.com/docs/en/fast-mode
v2.1.34修复崩溃和权限问题
- 修复 agent teams 设置变更导致的崩溃
- 修复沙箱命令豁免可绕过 Bash 权限规则的问题
## 2.1.34 - Fixed a crash when agent teams setting changed between renders - Fixed a bug where commands excluded from sandboxing (via `sandbox.excludedCommands` or `dangerouslyDisableSandbox`) could bypass the Bash ask permission rule when `autoAllowBashIfSandboxed` was enabled
v2.1.33Agent 内存和 Teammate 功能完善
- Agent 支持持久化内存(user/project/local 作用域)
- 修复 Agent Teammate tmux 会话消息收发
- 新增 TeammateIdle/TaskCompleted Hook 事件
## 2.1.33 - Fixed agent teammate sessions in tmux to send and receive messages - Fixed warnings about agent teams not being available on your current plan - Added `TeammateIdle` and `TaskCompleted` hook events for multi-agent workflows - Added support for restricting which sub-agents can be spawned via `Task(agent_type)` syntax in agent "tools" frontmatter - Added `memory` frontmatter field support for agents, enabling persistent memory with `user`, `project`, or `local` scope - Added plugin name to skill descriptions and `/skills` menu for better discoverability - Fixed an issue where submitting a new message while the model was in extended thinking would interrupt the thinking phase - Fixed an API error that could occur when aborting mid-stream, where whitespace text combined with a thinking block would bypass normalization and produce an invalid request - Fixed API proxy compatibility issue where 404 errors on streaming endpoints no longer triggered non-streaming fallback - Fixed an issue where proxy settings configured via `settings.json` environment variables were not applied to WebFetch and other HTTP requests on the Node.js build - Fixed `/resume` session picker showing raw XML markup instead of clean titles for sessions started with slash commands - Improved error messages for API connection failures — now shows specific cause (e.g., ECONNREFUSED, SSL errors) instead of generic "Connection error" - Errors from invalid managed settings are now surfaced - VSCode: Added support for remote sessions, allowing OAuth users to browse and resume sessions from claude.ai - VSCode: Added git branch and message count to the session picker, with support for searching by branch name - VSCode: Fixed scroll-to-bottom under-scrolling on initial session load and session switch
v2.1.32Opus 4.6 和多 Agent 协作发布
- 发布 Claude Opus 4.6
- 新增 Agent Teams 多 agent 协作功能
- Claude 自动记录和召回内存
## 2.1.32
- Claude Opus 4.6 is now available!
- Added research preview agent teams feature for multi-agent collaboration (token-intensive feature, requires setting CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1)
- Claude now automatically records and recalls memories as it works
- Added "Summarize from here" to the message selector, allowing partial conversation summarization.
- Skills defined in `.claude/skills/` within additional directories (`--add-dir`) are now loaded automatically.
- Fixed `@` file completion showing incorrect relative paths when running from a subdirectory
- Updated --resume to re-use --agent value specified in previous conversation by default.
- Fixed: Bash tool no longer throws "Bad substitution" errors when heredocs contain JavaScript template literals like `${index + 1}`, which previously interrupted tool execution
- Skill character budget now scales with context window (2% of context), so users with larger context windows can see more skill descriptions without truncation
- Fixed Thai/Lao spacing vowels (สระ า, ำ) not rendering correctly in the input field
- VSCode: Fixed slash commands incorrectly being executed when pressing Enter with preceding text in the input field
- VSCode: Added spinner when loading past conversations listv2.1.31多项修复和会话恢复改进
- 修复 PDF 过大导致会话锁定问题
- 修复沙箱模式下 bash 误报只读文件系统错误
- 添加会话恢复提示
## 2.1.31 - Added session resume hint on exit, showing how to continue your conversation later - Added support for full-width (zenkaku) space input from Japanese IME in checkbox selection - Fixed PDF too large errors permanently locking up sessions, requiring users to start a new conversation - Fixed bash commands incorrectly reporting failure with "Read-only file system" errors when sandbox mode was enabled - Fixed a crash that made sessions unusable after entering plan mode when project config in `~/.claude.json` was missing default fields - Fixed `temperatureOverride` being silently ignored in the streaming API path, causing all streaming requests to use the default temperature (1) regardless of the configured override - Fixed LSP shutdown/exit compatibility with strict language servers that reject null params - Improved system prompts to more clearly guide the model toward using dedicated tools (Read, Edit, Glob, Grep) instead of bash equivalents (`cat`, `sed`, `grep`, `find`), reducing unnecessary bash command usage - Improved PDF and request size error messages to show actual limits (100 pages, 20MB) - Reduced layout jitter in the terminal when the spinner appears and disappears during streaming - Removed misleading Anthropic API pricing from model selector for third-party provider (Bedrock, Vertex, Foundry) users
v2.1.30Read 工具分页和 OAuth 增强
- Read 工具支持 pages 参数读取 PDF 指定页码
- 支持 OAuth 预配置客户端凭证
- 新增 /debug 命令
## 2.1.30 - Added `pages` parameter to the Read tool for PDFs, allowing specific page ranges to be read (e.g., `pages: "1-5"`). Large PDFs (>10 pages) now return a lightweight reference when `@` mentioned instead of being inlined into context. - Added pre-configured OAuth client credentials for MCP servers that don't support Dynamic Client Registration (e.g., Slack). Use `--client-id` and `--client-secret` with `claude mcp add`. - Added `/debug` for Claude to help troubleshoot the current session - Added support for additional `git log` and `git show` flags in read-only mode (e.g., `--topo-order`, `--cherry-pick`, `--format`, `--raw`) - Added token count, tool uses, and duration metrics to Task tool results - Added reduced motion mode to the config - Fixed phantom "(no content)" text blocks appearing in API conversation history, reducing token waste and potential model confusion - Fixed prompt cache not correctly invalidating when tool descriptions or input schemas changed, only when tool names changed - Fixed 400 errors that could occur after running `/login` when the conversation contained thinking blocks - Fixed a hang when resuming sessions with corrupted transcript files containing `parentUuid` cycles - Fixed rate limit message showing incorrect "/upgrade" suggestion for Max 20x users when extra-usage is unavailable - Fixed permission dialogs stealing focus while actively typing - Fixed subagents not being able to access SDK-provided MCP tools because they were not synced to the shared application state - Fixed a regression where Windows users with a `.bashrc` file could not run bash commands - Improved memory usage for `--resume` (68% reduction for users with many sessions) by replacing the session index with lightweight stat-based loading and progressive enrichment - Improved `TaskStop` tool to display the stopped command/task description in the result line instead of a generic "Task stopped" message - Changed `/model` to execute immediately instead of being queued - [VSCode] Added multiline input support to the "Other" text input in question dialogs (use Shift+Enter for new lines) - [VSCode] Fixed duplicate sessions appearing in the session list when starting a new conversation
v2.1.20-297 个版本 · 7 已摘要
v2.1.29启动性能修复
- 修复恢复含有 saved_hook_context 的会话时的启动性能问题
## 2.1.29 - Fixed startup performance issues when resuming sessions that have `saved_hook_context`
v2.1.27PR 会话自动链接,修复多项问题
- 增加 --from-pr 标志支持按 PR 号或 URL 恢复会话
- gh pr create 创建的会话现在自动链接到对应 PR
- 修复 Windows 上 .bashrc 导致 bash 命令执行失败
- 修复 VSCode 中 OAuth 令牌过期导致的 401 错误
## 2.1.27 - Added tool call failures and denials to debug logs - Fixed context management validation error for gateway users, ensuring `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1` avoids the error - Added `--from-pr` flag to resume sessions linked to a specific GitHub PR number or URL - Sessions are now automatically linked to PRs when created via `gh pr create` - Fixed /context command not displaying colored output - Fixed status bar duplicating background task indicator when PR status was shown - Windows: Fixed bash command execution failing for users with `.bashrc` files - Windows: Fixed console windows flashing when spawning child processes - VSCode: Fixed OAuth token expiration causing 401 errors after extended sessions
v2.1.25修复网关用户 beta 验证错误
- 修复 Bedrock 和 Vertex 网关用户的 beta 头验证错误,可设置环境变量避免
## 2.1.25 - Fixed beta header validation error for gateway users on Bedrock and Vertex, ensuring `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1` avoids the error
v2.1.23修复连接和缓存问题,改进性能
- 修复公司代理和 mTLS 连接问题
- 修复 prompt caching 作用域导致的 400 错误
- 改进终端渲染性能,优化屏幕数据布局
- 已合并 PR 现在显示紫色状态标识
## 2.1.23 - Added customizable spinner verbs setting (`spinnerVerbs`) - Fixed mTLS and proxy connectivity for users behind corporate proxies or using client certificates - Fixed per-user temp directory isolation to prevent permission conflicts on shared systems - Fixed a race condition that could cause 400 errors when prompt caching scope was enabled - Fixed pending async hooks not being cancelled when headless streaming sessions ended - Fixed tab completion not updating the input field when accepting a suggestion - Fixed ripgrep search timeouts silently returning empty results instead of reporting errors - Improved terminal rendering performance with optimized screen data layout - Changed Bash commands to show timeout duration alongside elapsed time - Changed merged pull requests to show a purple status indicator in the prompt footer - [IDE] Fixed model options displaying incorrect region strings for Bedrock users in headless mode
v2.1.22修复非交互模式结构化输出
- 修复 -p 非交互模式下结构化输出不工作的问题
## 2.1.22 - Fixed structured outputs for non-interactive (-p) mode
v2.1.21日文输入和 Python 虚拟环境支持
- 支持日文 IME 的全宽数字输入
- VSCode 扩展现在自动激活 Python 虚拟环境
- 修复 Windows VS Code 上文件搜索失效的问题
- 改进 Claude 优先使用文件操作工具
## 2.1.21 - Added support for full-width (zenkaku) number input from Japanese IME in option selection prompts - Fixed shell completion cache files being truncated on exit - Fixed API errors when resuming sessions that were interrupted during tool execution - Fixed auto-compact triggering too early on models with large output token limits - Fixed task IDs potentially being reused after deletion - Fixed file search not working in VS Code extension on Windows - Improved read/search progress indicators to show "Reading…" while in progress and "Read" when complete - Improved Claude to prefer file operation tools (Read, Edit, Write) over bash equivalents (cat, sed, awk) - [VSCode] Added automatic Python virtual environment activation, ensuring `python` and `pip` commands use the correct interpreter (configurable via `claudeCode.usePythonEnvironment` setting) - [VSCode] Fixed message action buttons having incorrect background colors
v2.1.20任务系统改进,修复众多 UI 问题
- 新增 PR 审查状态指示器,显示 PR 审查进展
- 改进任务系统,支持通过 TaskUpdate 删除任务
- 修复会话压缩问题,resume 时不再加载完整历史
- 修复代理忽略用户消息的问题
## 2.1.20
- Added arrow key history navigation in vim normal mode when cursor cannot move further
- Added external editor shortcut (Ctrl+G) to the help menu for better discoverability
- Added PR review status indicator to the prompt footer, showing the current branch's PR state (approved, changes requested, pending, or draft) as a colored dot with a clickable link
- Added support for loading `CLAUDE.md` files from additional directories specified via `--add-dir` flag (requires setting `CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1`)
- Added ability to delete tasks via the `TaskUpdate` tool
- Fixed session compaction issues that could cause resume to load full history instead of the compact summary
- Fixed agents sometimes ignoring user messages sent while actively working on a task
- Fixed wide character (emoji, CJK) rendering artifacts where trailing columns were not cleared when replaced by narrower characters
- Fixed JSON parsing errors when MCP tool responses contain special Unicode characters
- Fixed up/down arrow keys in multi-line and wrapped text input to prioritize cursor movement over history navigation
- Fixed draft prompt being lost when pressing UP arrow to navigate command history
- Fixed ghost text flickering when typing slash commands mid-input
- Fixed marketplace source removal not properly deleting settings
- Fixed duplicate output in some commands like `/context`
- Fixed task list sometimes showing outside the main conversation view
- Fixed syntax highlighting for diffs occurring within multiline constructs like Python docstrings
- Fixed crashes when cancelling tool use
- Improved `/sandbox` command UI to show dependency status with installation instructions when dependencies are missing
- Improved thinking status text with a subtle shimmer animation
- Improved task list to dynamically adjust visible items based on terminal height
- Improved fork conversation hint to show how to resume the original session
- Changed collapsed read/search groups to show present tense ("Reading", "Searching for") while in progress, and past tense ("Read", "Searched for") when complete
- Changed `ToolSearch` results to appear as a brief notification instead of inline in the conversation
- Changed the `/commit-push-pr` skill to automatically post PR URLs to Slack channels when configured via MCP tools
- Changed the `/copy` command to be available to all users
- Changed background agents to prompt for tool permissions before launching
- Changed permission rules like `Bash(*)` to be accepted and treated as equivalent to `Bash`
- Changed config backups to be timestamped and rotated (keeping 5 most recent) to prevent data lossv2.1.10-199 个版本 · 9 已摘要
v2.1.19任务系统推出,命令和会话改进
- 新增环境变量 CLAUDE_CODE_ENABLE_TASKS 支持旧任务系统
- 添加命令参数快捷语法 $0, $1 等
- 修复处理器无 AVX 指令导致的崩溃
- VSCode 为所有用户启用会话分叉和回放
破坏性变化
- 索引参数语法从 $ARGUMENTS.0 改为 $ARGUMENTS[0]
## 2.1.19 - Added env var `CLAUDE_CODE_ENABLE_TASKS`, set to `false` to keep the old system temporarily - Added shorthand `$0`, `$1`, etc. for accessing individual arguments in custom commands - Fixed crashes on processors without AVX instruction support - Fixed dangling Claude Code processes when terminal is closed by catching EIO errors from `process.exit()` and using SIGKILL as fallback - Fixed `/rename` and `/tag` not updating the correct session when resuming from a different directory (e.g., git worktrees) - Fixed resuming sessions by custom title not working when run from a different directory - Fixed pasted text content being lost when using prompt stash (Ctrl+S) and restore - Fixed agent list displaying "Sonnet (default)" instead of "Inherit (default)" for agents without an explicit model setting - Fixed backgrounded hook commands not returning early, potentially causing the session to wait on a process that was intentionally backgrounded - Fixed file write preview omitting empty lines - Changed skills without additional permissions or hooks to be allowed without requiring approval - Changed indexed argument syntax from `$ARGUMENTS.0` to `$ARGUMENTS[0]` (bracket syntax) - [SDK] Added replay of `queued_command` attachment messages as `SDKUserMessageReplay` events when `replayUserMessages` is enabled - [VSCode] Enabled session forking and rewind functionality for all users
v2.1.18支持自定义键盘快捷键
- 新增快捷键定制功能,可按上下文配置和创建按键组合
## 2.1.18 - Added customizable keyboard shortcuts. Configure keybindings per context, create chord sequences, and personalize your workflow. Run `/keybindings` to get started. Learn more at https://code.claude.com/docs/en/keybindings
v2.1.17修复无AVX处理器崩溃
- 修复不支持AVX指令处理器上的崩溃问题
## 2.1.17 - Fixed crashes on processors without AVX instruction support
v2.1.16新增任务管理和会话功能
- 新增任务管理系统,支持依赖追踪
- VSCode原生插件管理,OAuth用户可恢复远程会话
- 修复子agent使用过多导致的内存溢出崩溃
- 修复Windows侧边栏显示问题
## 2.1.16 - Added new task management system, including new capabilities like dependency tracking - [VSCode] Added native plugin management support - [VSCode] Added ability for OAuth users to browse and resume remote Claude sessions from the Sessions dialog - Fixed out-of-memory crashes when resuming sessions with heavy subagent usage - Fixed an issue where the "context remaining" warning was not hidden after running `/compact` - Fixed session titles on the resume screen not respecting the user's language setting - [IDE] Fixed a race condition on Windows where the Claude Code sidebar view container would not appear on start
v2.1.15优化UI性能并弃用npm安装
- 使用React Compiler优化UI渲染性能
- MCP stdio server超时导致UI冻结问题修复
- Context warning不消失问题修复
- 添加npm安装弃用通知
破坏性变化
- npm安装方式将被弃用,请使用claude install
## 2.1.15 - Added deprecation notification for npm installations - run `claude install` or see https://docs.anthropic.com/en/docs/claude-code/getting-started for more options - Improved UI rendering performance with React Compiler - Fixed the "Context left until auto-compact" warning not disappearing after running `/compact` - Fixed MCP stdio server timeout not killing child process, which could cause UI freezes
v2.1.14新增Bash补全和功能改进
- Bash模式新增历史命令自动补全,Tab键触发
- 插件列表支持搜索,支持固定到git commit SHA
- 修复context阻断限制过度导致用户被提前阻断
- 修复长会话stream资源泄漏导致的崩溃
## 2.1.14 - Added history-based autocomplete in bash mode (`!`) - type a partial command and press Tab to complete from your bash command history - Added search to installed plugins list - type to filter by name or description - Added support for pinning plugins to specific git commit SHAs, allowing marketplace entries to install exact versions - Fixed a regression where the context window blocking limit was calculated too aggressively, blocking users at ~65% context usage instead of the intended ~98% - Fixed memory issues that could cause crashes when running parallel subagents - Fixed memory leak in long-running sessions where stream resources were not cleaned up after shell commands completed - Fixed `@` symbol incorrectly triggering file autocomplete suggestions in bash mode - Fixed `@`-mention menu folder click behavior to navigate into directories instead of selecting them - Fixed `/feedback` command generating invalid GitHub issue URLs when description is very long - Fixed `/context` command to show the same token count and percentage as the status line in verbose mode - Fixed an issue where `/config`, `/context`, `/model`, and `/todos` command overlays could close unexpectedly - Fixed slash command autocomplete selecting wrong command when typing similar commands (e.g., `/context` vs `/compact`) - Fixed inconsistent back navigation in plugin marketplace when only one marketplace is configured - Fixed iTerm2 progress bar not clearing properly on exit, preventing lingering indicators and bell sounds - Improved backspace to delete pasted text as a single token instead of one character at a time - [VSCode] Added `/usage` command to display current plan usage
v2.1.12修复消息渲染bug
- 修复消息渲染错误
## 2.1.12 - Fixed message rendering bug
v2.1.11优化MCP连接请求
- 修复HTTP/SSE传输过多的MCP连接请求
## 2.1.11 - Fixed excessive MCP connection requests for HTTP/SSE transports
v2.1.10新增Setup hook和安全改进
- 新增Setup hook事件,支持--init标志触发仓库初始化
- 新增键盘快捷键c复制OAuth URL
- 修复包含JavaScript模板字符串的heredoc崩溃
- VSCode添加插件信任警告
## 2.1.10
- Added new `Setup` hook event that can be triggered via `--init`, `--init-only`, or `--maintenance` CLI flags for repository setup and maintenance operations
- Added keyboard shortcut 'c' to copy OAuth URL when browser doesn't open automatically during login
- Fixed a crash when running bash commands containing heredocs with JavaScript template literals like `${index + 1}`
- Improved startup to capture keystrokes typed before the REPL is fully ready
- Improved file suggestions to show as removable attachments instead of inserting text when accepted
- [VSCode] Added install count display to plugin listings
- [VSCode] Added trust warning when installing pluginsv2.1.0-98 个版本 · 8 已摘要
v2.1.9MCP配置和Tool use增强
- 新增auto:N语法配置MCP Tool搜索阈值
- 新增plansDirectory设置自定义计划文件位置
- PreToolUse hooks支持返回additionalContext
- 修复长会话parallel tool calls导致的API错误
## 2.1.9
- Added `auto:N` syntax for configuring the MCP tool search auto-enable threshold, where N is the context window percentage (0-100)
- Added `plansDirectory` setting to customize where plan files are stored
- Added external editor support (Ctrl+G) in AskUserQuestion "Other" input field
- Added session URL attribution to commits and PRs created from web sessions
- Added support for `PreToolUse` hooks to return `additionalContext` to the model
- Added `${CLAUDE_SESSION_ID}` string substitution for skills to access the current session ID
- Fixed long sessions with parallel tool calls failing with an API error about orphan tool_result blocks
- Fixed MCP server reconnection hanging when cached connection promise never resolves
- Fixed Ctrl+Z suspend not working in terminals using Kitty keyboard protocol (Ghostty, iTerm2, kitty, WezTerm)v2.1.7权限反馈和任务通知优化
- 权限提示支持反馈,权限规则安全性修复
- 任务通知直接显示代理最终响应,无需查看完整记录
- MCP 工具搜索自动模式默认启用,降低上下文占用
- Windows 修复多个 bash 命令和文件操作问题
## 2.1.7 - Added `showTurnDuration` setting to hide turn duration messages (e.g., "Cooked for 1m 6s") - Added ability to provide feedback when accepting permission prompts - Added inline display of agent's final response in task notifications, making it easier to see results without reading the full transcript file - Fixed security vulnerability where wildcard permission rules could match compound commands containing shell operators - Fixed false "file modified" errors on Windows when cloud sync tools, antivirus scanners, or Git touch file timestamps without changing content - Fixed orphaned tool_result errors when sibling tools fail during streaming execution - Fixed context window blocking limit being calculated using the full context window instead of the effective context window (which reserves space for max output tokens) - Fixed spinner briefly flashing when running local slash commands like `/model` or `/theme` - Fixed terminal title animation jitter by using fixed-width braille characters - Fixed plugins with git submodules not being fully initialized when installed - Fixed bash commands failing on Windows when temp directory paths contained characters like `t` or `n` that were misinterpreted as escape sequences - Improved typing responsiveness by reducing memory allocation overhead in terminal rendering - Enabled MCP tool search auto mode by default for all users. When MCP tool descriptions exceed 10% of the context window, they are automatically deferred and discovered via the MCPSearch tool instead of being loaded upfront. This reduces context usage for users with many MCP tools configured. Users can disable this by adding `MCPSearch` to `disallowedTools` in their settings. - Changed OAuth and API Console URLs from console.anthropic.com to platform.claude.com - [VSCode] Fixed `claudeProcessWrapper` setting passing the wrapper path instead of the Claude binary path
v2.1.6工具增强和权限安全修复
- /config 和 /doctor 新增搜索、更新信息显示功能
- /stats 支持日期范围过滤(7天/30天/全部)
- 修复通过 shell 续行符绕过权限的安全漏洞
- 自动发现嵌套 .claude/skills 目录中的技能
破坏性变化
- @-mention MCP 服务器启用/禁用改为使用 /mcp enable 命令
## 2.1.6 - Added search functionality to `/config` command for quickly filtering settings - Added Updates section to `/doctor` showing auto-update channel and available npm versions (stable/latest) - Added date range filtering to `/stats` command - press `r` to cycle between Last 7 days, Last 30 days, and All time - Added automatic discovery of skills from nested `.claude/skills` directories when working with files in subdirectories - Added `context_window.used_percentage` and `context_window.remaining_percentage` fields to status line input for easier context window display - Added an error display when the editor fails during Ctrl+G - Fixed permission bypass via shell line continuation that could allow blocked commands to execute - Fixed false "File has been unexpectedly modified" errors when file watchers touch files without changing content - Fixed text styling (bold, colors) getting progressively misaligned in multi-line responses - Fixed the feedback panel closing unexpectedly when typing 'n' in the description field - Fixed rate limit warning appearing at low usage after weekly reset (now requires 70% usage) - Fixed rate limit options menu incorrectly auto-opening when resuming a previous session - Fixed numpad keys outputting escape sequences instead of characters in Kitty keyboard protocol terminals - Fixed Option+Return not inserting newlines in Kitty keyboard protocol terminals - Fixed corrupted config backup files accumulating in the home directory (now only one backup is created per config file) - Fixed `mcp list` and `mcp get` commands leaving orphaned MCP server processes - Fixed visual artifacts in ink2 mode when nodes become hidden via `display:none` - Improved the external CLAUDE.md imports approval dialog to show which files are being imported and from where - Improved the `/tasks` dialog to go directly to task details when there's only one background task running - Improved @ autocomplete with icons for different suggestion types and single-line formatting - Updated "Help improve Claude" setting fetch to refresh OAuth and retry when it fails due to a stale OAuth token - Changed task notification display to cap at 3 lines with overflow summary when multiple background tasks complete simultaneously - Changed terminal title to "Claude Code" on startup for better window identification - Removed ability to @-mention MCP servers to enable/disable - use `/mcp enable <name>` instead - [VSCode] Fixed usage indicator not updating after manual compact
v2.1.5自定义临时目录支持
- 新增 CLAUDE_CODE_TMPDIR 环境变量支持自定义临时目录位置
## 2.1.5 - Added `CLAUDE_CODE_TMPDIR` environment variable to override the temp directory used for internal temp files, useful for environments with custom temp directory requirements
v2.1.4后台任务控制和改进
- 新增环境变量禁用后台任务功能
- 修复帮助改进 Claude 设置获取的 OAuth 刷新问题
## 2.1.4 - Added `CLAUDE_CODE_DISABLE_BACKGROUND_TASKS` environment variable to disable all background task functionality including auto-backgrounding and the Ctrl+B shortcut - Fixed "Help improve Claude" setting fetch to refresh OAuth and retry when it fails due to a stale OAuth token
v2.1.3Slash 命令合并和权限检测
- Slash 命令与技能合并,简化交互模型
- 权限规则可达性检测和自动修复建议
- 修复 /clear 后 Plan 文件残留问题
- VSCode 权限请求支持目标位置选择器
## 2.1.3 - Merged slash commands and skills, simplifying the mental model with no change in behavior - Added release channel (`stable` or `latest`) toggle to `/config` - Added detection and warnings for unreachable permission rules, with warnings in `/doctor` and after saving rules that include the source of each rule and actionable fix guidance - Fixed plan files persisting across `/clear` commands, now ensuring a fresh plan file is used after clearing a conversation - Fixed false skill duplicate detection on filesystems with large inodes (e.g., ExFAT) by using 64-bit precision for inode values - Fixed mismatch between background task count in status bar and items shown in tasks dialog - Fixed sub-agents using the wrong model during conversation compaction - Fixed web search in sub-agents using incorrect model - Fixed trust dialog acceptance when running from the home directory not enabling trust-requiring features like hooks during the session - Improved terminal rendering stability by preventing uncontrolled writes from corrupting cursor state - Improved slash command suggestion readability by truncating long descriptions to 2 lines - Changed tool hook execution timeout from 60 seconds to 10 minutes - [VSCode] Added clickable destination selector for permission requests, allowing you to choose where settings are saved (this project, all projects, shared with team, or session only)
v2.1.2安全修复和功能增强
- 修复 bash 命令处理漏洞和树表达式内存泄漏
- 支持 Windows 包管理器 (winget) 自动检测
- 修复拖放图像和二进制文件的处理问题
- Plan 模式 Shift+Tab 快速切换自动接受选项
破坏性变化
- Windows 托管设置路径从 ProgramData 迁移到 Program Files
## 2.1.2 - Added source path metadata to images dragged onto the terminal, helping Claude understand where images originated - Added clickable hyperlinks for file paths in tool output in terminals that support OSC 8 (like iTerm) - Added support for Windows Package Manager (winget) installations with automatic detection and update instructions - Added Shift+Tab keyboard shortcut in plan mode to quickly select "auto-accept edits" option - Added `FORCE_AUTOUPDATE_PLUGINS` environment variable to allow plugin autoupdate even when the main auto-updater is disabled - Added `agent_type` to SessionStart hook input, populated if `--agent` is specified - Fixed a command injection vulnerability in bash command processing where malformed input could execute arbitrary commands - Fixed a memory leak where tree-sitter parse trees were not being freed, causing WASM memory to grow unbounded over long sessions - Fixed binary files (images, PDFs, etc.) being accidentally included in memory when using `@include` directives in CLAUDE.md files - Fixed updates incorrectly claiming another installation is in progress - Fixed crash when socket files exist in watched directories (defense-in-depth for EOPNOTSUPP errors) - Fixed remote session URL and teleport being broken when using `/tasks` command - Fixed MCP tool names being exposed in analytics events by sanitizing user-specific server configurations - Improved Option-as-Meta hint on macOS to show terminal-specific instructions for native CSIu terminals like iTerm2, Kitty, and WezTerm - Improved error message when pasting images over SSH to suggest using `scp` instead of the unhelpful clipboard shortcut hint - Improved permission explainer to not flag routine dev workflows (git fetch/rebase, npm install, tests, PRs) as medium risk - Changed large bash command outputs to be saved to disk instead of truncated, allowing Claude to read the full content - Changed large tool outputs to be persisted to disk instead of truncated, providing full output access via file references - Changed `/plugins` installed tab to unify plugins and MCPs with scope-based grouping - Deprecated Windows managed settings path `C:\ProgramData\ClaudeCode\managed-settings.json` - administrators should migrate to `C:\Program Files\ClaudeCode\managed-settings.json` - [SDK] Changed minimum zod peer dependency to ^4.0.0 - [VSCode] Fixed usage display not updating after manual compact
v2.1.0技能热重载和 Vim 编辑支持
- 技能自动热重载,支持 fork 子代理和代理类型指定
- 新增语言设置,支持 Claude 响应语言自定义
- Shift+Enter 在多终端开箱即用,新增丰富 Vim 操作(文本对象、yank/paste)
- 统一 Ctrl+B 后台运行,MCP 列表变更通知和权限通配符支持
破坏性变化
- SDK: zod 最小版本要求升级至 ^4.0.0
## 2.1.0
- Added automatic skill hot-reload - skills created or modified in `~/.claude/skills` or `.claude/skills` are now immediately available without restarting the session
- Added support for running skills and slash commands in a forked sub-agent context using `context: fork` in skill frontmatter
- Added support for `agent` field in skills to specify agent type for execution
- Added `language` setting to configure Claude's response language (e.g., language: "japanese")
- Changed Shift+Enter to work out of the box in iTerm2, WezTerm, Ghostty, and Kitty without modifying terminal configs
- Added `respectGitignore` support in `settings.json` for per-project control over @-mention file picker behavior
- Added `IS_DEMO` environment variable to hide email and organization from the UI, useful for streaming or recording sessions
- Fixed security issue where sensitive data (OAuth tokens, API keys, passwords) could be exposed in debug logs
- Fixed files and skills not being properly discovered when resuming sessions with `-c` or `--resume`
- Fixed pasted content being lost when replaying prompts from history using up arrow or Ctrl+R search
- Fixed Esc key with queued prompts to only move them to input without canceling the running task
- Reduced permission prompts for complex bash commands
- Fixed command search to prioritize exact and prefix matches on command names over fuzzy matches in descriptions
- Fixed PreToolUse hooks to allow `updatedInput` when returning `ask` permission decision, enabling hooks to act as middleware while still requesting user consent
- Fixed plugin path resolution for file-based marketplace sources
- Fixed LSP tool being incorrectly enabled when no LSP servers were configured
- Fixed background tasks failing with "git repository not found" error for repositories with dots in their names
- Fixed Claude in Chrome support for WSL environments
- Fixed Windows native installer silently failing when executable creation fails
- Improved CLI help output to display options and subcommands in alphabetical order for easier navigation
- Added wildcard pattern matching for Bash tool permissions using `*` at any position in rules (e.g., `Bash(npm *)`, `Bash(* install)`, `Bash(git * main)`)
- Added unified Ctrl+B backgrounding for both bash commands and agents - pressing Ctrl+B now backgrounds all running foreground tasks simultaneously
- Added support for MCP `list_changed` notifications, allowing MCP servers to dynamically update their available tools, prompts, and resources without requiring reconnection
- Added `/teleport` and `/remote-env` slash commands for claude.ai subscribers, allowing them to resume and configure remote sessions
- Added support for disabling specific agents using `Task(AgentName)` syntax in settings.json permissions or the `--disallowedTools` CLI flag
- Added hooks support to agent frontmatter, allowing agents to define PreToolUse, PostToolUse, and Stop hooks scoped to the agent's lifecycle
- Added hooks support for skill and slash command frontmatter
- Added new Vim motions: `;` and `,` to repeat f/F/t/T motions, `y` operator for yank with `yy`/`Y`, `p`/`P` for paste, text objects (`iw`, `aw`, `iW`, `aW`, `i"`, `a"`, `i'`, `a'`, `i(`, `a(`, `i[`, `a[`, `i{`, `a{`), `>>` and `<<` for indent/dedent, and `J` to join lines
- Added `/plan` command shortcut to enable plan mode directly from the prompt
- Added slash command autocomplete support when `/` appears anywhere in input, not just at the beginning
- Added `--tools` flag support in interactive mode to restrict which built-in tools Claude can use during interactive sessions
- Added `CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS` environment variable to override the default file read token limit
- Added support for `once: true` config for hooks
- Added support for YAML-style lists in frontmatter `allowed-tools` field for cleaner skill declarations
- Added support for prompt and agent hook types from plugins (previously only command hooks were supported)
- Added Cmd+V support for image paste in iTerm2 (maps to Ctrl+V)
- Added left/right arrow key navigation for cycling through tabs in dialogs
- Added real-time thinking block display in Ctrl+O transcript mode
- Added filepath to full output in background bash task details dialog
- Added Skills as a separate category in the context visualization
- Fixed OAuth token refresh not triggering when server reports token expired but local expiration check disagrees
- Fixed session persistence getting stuck after transient server errors by recovering from 409 conflicts when the entry was actually stored
- Fixed session resume failures caused by orphaned tool results during concurrent tool execution
- Fixed a race condition where stale OAuth tokens could be read from the keychain cache during concurrent token refresh attempts
- Fixed AWS Bedrock subagents not inheriting EU/APAC cross-region inference model configuration, causing 403 errors when IAM permissions are scoped to specific regions
- Fixed API context overflow when background tasks produce large output by truncating to 30K chars with file path reference
- Fixed a hang when reading FIFO files by skipping symlink resolution for special file types
- Fixed terminal keyboard mode not being reset on exit in Ghostty, iTerm2, Kitty, and WezTerm
- Fixed Alt+B and Alt+F (word navigation) not working in iTerm2, Ghostty, Kitty, and WezTerm
- Fixed `${CLAUDE_PLUGIN_ROOT}` not being substituted in plugin `allowed-tools` frontmatter, which caused tools to incorrectly require approval
- Fixed files created by the Write tool using hardcoded 0o600 permissions instead of respecting the system umask
- Fixed commands with `$()` command substitution failing with parse errors
- Fixed multi-line bash commands with backslash continuations being incorrectly split and flagged for permissions
- Fixed bash command prefix extraction to correctly identify subcommands after global options (e.g., `git -C /path log` now correctly matches `Bash(git log:*)` rules)
- Fixed slash commands passed as CLI arguments (e.g., `claude /context`) not being executed properly
- Fixed pressing Enter after Tab-completing a slash command selecting a different command instead of submitting the completed one
- Fixed slash command argument hint flickering and inconsistent display when typing commands with arguments
- Fixed Claude sometimes redundantly invoking the Skill tool when running slash commands directly
- Fixed skill token estimates in `/context` to accurately reflect frontmatter-only loading
- Fixed subagents sometimes not inheriting the parent's model by default
- Fixed model picker showing incorrect selection for Bedrock/Vertex users using `--model haiku`
- Fixed duplicate Bash commands appearing in permission request option labels
- Fixed noisy output when background tasks complete - now shows clean completion message instead of raw output
- Fixed background task completion notifications to appear proactively with bullet point
- Fixed forked slash commands showing "AbortError" instead of "Interrupted" message when cancelled
- Fixed cursor disappearing after dismissing permission dialogs
- Fixed `/hooks` menu selecting wrong hook type when scrolling to a different option
- Fixed images in queued prompts showing as "[object Object]" when pressing Esc to cancel
- Fixed images being silently dropped when queueing messages while backgrounding a task
- Fixed large pasted images failing with "Image was too large" error
- Fixed extra blank lines in multiline prompts containing CJK characters (Japanese, Chinese, Korean)
- Fixed ultrathink keyword highlighting being applied to wrong characters when user prompt text wraps to multiple lines
- Fixed collapsed "Reading X files…" indicator incorrectly switching to past tense when thinking blocks appear mid-stream
- Fixed Bash read commands (like `ls` and `cat`) not being counted in collapsed read/search groups, causing groups to incorrectly show "Read 0 files"
- Fixed spinner token counter to properly accumulate tokens from subagents during execution
- Fixed memory leak in git diff parsing where sliced strings retained large parent strings
- Fixed race condition where LSP tool could return "no server available" during startup
- Fixed feedback submission hanging indefinitely when network requests timeout
- Fixed search mode in plugin discovery and log selector views exiting when pressing up arrow
- Fixed hook success message showing trailing colon when hook has no output
- Multiple optimizations to improve startup performance
- Improved terminal rendering performance when using native installer or Bun, especially for text with emoji, ANSI codes, and Unicode characters
- Improved performance when reading Jupyter notebooks with many cells
- Improved reliability for piped input like `cat refactor.md | claude`
- Improved reliability for AskQuestion tool
- Improved sed in-place edit commands to render as file edits with diff preview
- Improved Claude to automatically continue when response is cut off due to output token limit, instead of showing an error message
- Improved compaction reliability
- Improved subagents (Task tool) to continue working after permission denial, allowing them to try alternative approaches
- Improved skills to show progress while executing, displaying tool uses as they happen
- Improved skills from `/skills/` directories to be visible in the slash command menu by default (opt-out with `user-invocable: false` in frontmatter)
- Improved skill suggestions to prioritize recently and frequently used skills
- Improved spinner feedback when waiting for the first response token
- Improved token count display in spinner to include tokens from background agents
- Improved incremental output for async agents to give the main thread more control and visibility
- Improved permission prompt UX with Tab hint moved to footer, cleaner Yes/No input labels with contextual placeholders
- Improved the Claude in Chrome notification with shortened help text and persistent display until dismissed
- Improved macOS screenshot paste reliability with TIFF format support
- Improved `/stats` output
- Updated Atlassian MCP integration to use a more reliable default configuration (streamable HTTP)
- Changed "Interrupted" message color from red to grey for a less alarming appearance
- Removed permission prompt when entering plan mode - users can now enter plan mode without approval
- Removed underline styling from image reference links
- [SDK] Changed minimum zod peer dependency to ^4.0.0
- [VSCode] Added currently selected model name to the context menu
- [VSCode] Added descriptive labels on auto-accept permission button (e.g., "Yes, allow npm for this project" instead of "Yes, and don't ask again")
- [VSCode] Fixed paragraph breaks not rendering in markdown content
- [VSCode] Fixed scrolling in the extension inadvertently scrolling the parent iframe
- [Windows] Fixed issue with improper renderingv2.0.70-797 个版本 · 7 已摘要
v2.0.76macOS 代码签名警告修复
- 修复 Claude in Chrome 集成中 macOS 代码签名警告
## 2.0.76 - Fixed issue with macOS code-sign warning when using Claude in Chrome integration
v2.0.75修复多个小问题
- 修复了各种小bug
## 2.0.75 - Minor bugfixes
v2.0.74LSP工具和主题改进
- 添加LSP工具支持代码跳转、查找引用等功能
- 新增Kitty、Alacritty、Zed、Warp等终端配置支持
- 修复权限规则不应用于skill调用的工具
- 修复多个UI bug和macOS快捷键显示
## 2.0.74 - Added LSP (Language Server Protocol) tool for code intelligence features like go-to-definition, find references, and hover documentation - Added `/terminal-setup` support for Kitty, Alacritty, Zed, and Warp terminals - Added ctrl+t shortcut in `/theme` to toggle syntax highlighting on/off - Added syntax highlighting info to theme picker - Added guidance for macOS users when Alt shortcuts fail due to terminal configuration - Fixed skill `allowed-tools` not being applied to tools invoked by the skill - Fixed Opus 4.5 tip incorrectly showing when user was already using Opus - Fixed a potential crash when syntax highlighting isn't initialized correctly - Fixed visual bug in `/plugins discover` where list selection indicator showed while search box was focused - Fixed macOS keyboard shortcuts to display 'opt' instead of 'alt' - Improved `/context` command visualization with grouped skills and agents by source, slash commands, and sorted token count - [Windows] Fixed issue with improper rendering - [VSCode] Added gift tag pictogram for year-end promotion message
v2.0.73图片预览和插件搜索
- 支持点击[Image #N]链接打开图片预览
- 新增alt-y快捷键循环访问历史输入
- 插件发现界面支持名称/描述搜索过滤
- Session fork支持自定义Session ID
## 2.0.73 - Added clickable `[Image #N]` links that open attached images in the default viewer - Added alt-y yank-pop to cycle through kill ring history after ctrl-y yank - Added search filtering to the plugin discover screen (type to filter by name, description, or marketplace) - Added support for custom session IDs when forking sessions with `--session-id` combined with `--resume` or `--continue` and `--fork-session` - Fixed slow input history cycling and race condition that could overwrite text after message submission - Improved `/theme` command to open theme picker directly - Improved theme picker UI - Improved search UX across resume session, permissions, and plugins screens with a unified SearchBox component - [VSCode] Added tab icon badges showing pending permissions (blue) and unread completions (orange)
v2.0.72Chrome扩展和性能优化
- 新增Claude in Chrome扩展支持直接控制浏览器
- @文件建议性能提升3倍
- 修复输入历史循环卡顿和Ctrl+K粘贴问题
- 思考模式快捷键改为Alt+T避免误触
破坏性变化
- 思考模式快捷键从Tab改为Alt+T
## 2.0.72 - Added Claude in Chrome (Beta) feature that works with the Chrome extension (https://claude.ai/chrome) to let you control your browser directly from Claude Code - Reduced terminal flickering - Added scannable QR code to mobile app tip for quick app downloads - Added loading indicator when resuming conversations for better feedback - Fixed `/context` command not respecting custom system prompts in non-interactive mode - Fixed order of consecutive Ctrl+K lines when pasting with Ctrl+Y - Improved @ mention file suggestion speed (~3× faster in git repositories) - Improved file suggestion performance in repos with `.ignore` or `.rgignore` files - Improved settings validation errors to be more prominent - Changed thinking toggle from Tab to Alt+T to avoid accidental triggers
v2.0.71提示词建议和权限规则改进
- 新增/config切换提示词建议功能
- /settings现在是/config的别名
- 修复权限规则对glob模式(*.txt)的错误拒绝
- MCP服务器现在支持Bedrock环境变量
## 2.0.71 - Added /config toggle to enable/disable prompt suggestions - Added `/settings` as an alias for the `/config` command - Fixed @ file reference suggestions incorrectly triggering when cursor is in the middle of a path - Fixed MCP servers from `.mcp.json` not loading when using `--dangerously-skip-permissions` - Fixed permission rules incorrectly rejecting valid bash commands containing shell glob patterns (e.g., `ls *.txt`, `for f in *.png`) - Bedrock: Environment variable `ANTHROPIC_BEDROCK_BASE_URL` is now respected for token counting and inference profile listing - New syntax highlighting engine for native build
v2.0.70提示词建议和内存优化
- Enter键可直接接受和提交提示词建议
- MCP工具权限支持mcp__server__*通配符语法
- 内存使用减少3倍,改进大对话性能
- 统计信息截图清晰度提升
破坏性变化
- 移除#快速备忘条目快捷键
## 2.0.70 - Added Enter key to accept and submit prompt suggestions immediately (tab still accepts for editing) - Added wildcard syntax `mcp__server__*` for MCP tool permissions to allow or deny all tools from a server - Added auto-update toggle for plugin marketplaces, allowing per-marketplace control over automatic updates - Added `current_usage` field to status line input, enabling accurate context window percentage calculations - Fixed input being cleared when processing queued commands while the user was typing - Fixed prompt suggestions replacing typed input when pressing Tab - Fixed diff view not updating when terminal is resized - Improved memory usage by 3x for large conversations - Improved resolution of stats screenshots copied to clipboard (Ctrl+S) for crisper images - Removed # shortcut for quick memory entry (tell Claude to edit your CLAUDE.md instead) - Fix thinking mode toggle in /config not persisting correctly - Improve UI for file creation permission dialog
v2.0.60-698 个版本 · 8 已摘要
v2.0.69修复多个小问题
- 修复了各种小bug
## 2.0.69 - Minor bugfixes
v2.0.68IME支持和CJK文本处理
- 修复中日韩输入法IME光标位置显示不正确
- 修复禁用的MCP工具对模型错误可见的问题
- 改进CJK文本中Option+Arrow单词导航
- 支持企业托管设置(需联系Anthropic)
## 2.0.68 - Fixed IME (Input Method Editor) support for languages like Chinese, Japanese, and Korean by correctly positioning the composition window at the cursor - Fixed a bug where disallowed MCP tools were visible to the model - Fixed an issue where steering messages could be lost while a subagent is working - Fixed Option+Arrow word navigation treating entire CJK (Chinese, Japanese, Korean) text sequences as a single word instead of navigating by word boundaries - Improved plan mode exit UX: show simplified yes/no dialog when exiting with empty or missing plan instead of throwing an error - Add support for enterprise managed settings. Contact your Anthropic account team to enable this feature.
v2.0.67Thinking 模式默认启用,多项 bug 修复
- Opus 4.5 默认启用 Thinking 模式
- /permissions 新增搜索功能,支持快捷键过滤工具
- 修复非拉丁文字输入问题(阿拉伯语、中文、泰语等)
- 修复 MCP servers 在非交互模式下卡在 pending 状态
## 2.0.67 - Thinking mode is now enabled by default for Opus 4.5 - Thinking mode configuration has moved to /config - Added search functionality to `/permissions` command with `/` keyboard shortcut for filtering rules by tool name - Show reason why autoupdater is disabled in `/doctor` - Fixed false "Another process is currently updating Claude" error when running `claude update` while another instance is already on the latest version - Fixed MCP servers from `.mcp.json` being stuck in pending state when running in non-interactive mode (`-p` flag or piped input) - Fixed scroll position resetting after deleting a permission rule in `/permissions` - Fixed word deletion (opt+delete) and word navigation (opt+arrow) not working correctly with non-Latin text such as Cyrillic, Greek, Arabic, Hebrew, Thai, and Chinese - Fixed `claude install --force` not bypassing stale lock files - Fixed consecutive @~/ file references in CLAUDE.md being incorrectly parsed due to markdown strikethrough interference - Windows: Fixed plugin MCP servers failing due to colons in log directory paths
v2.0.65快捷键切换模型,新增配置选项
- 新增 Alt+P/Option+P 快捷键在输入时切换模型
- 新增 CLAUDE_CODE_SHELL 环境变量控制 shell 检测
- 状态行显示当前上下文窗口信息
- 改进 Read tool 通过字节内容而非扩展名识别图片格式
## 2.0.65 - Added ability to switch models while writing a prompt using alt+p (linux, windows), option+p (macos). - Added context window information to status line input - Added `fileSuggestion` setting for custom `@` file search commands - Added `CLAUDE_CODE_SHELL` environment variable to override automatic shell detection (useful when login shell differs from actual working shell) - Fixed prompt not being saved to history when aborting a query with Escape - Fixed Read tool image handling to identify format from bytes instead of file extension
v2.0.64Agents 异步运行,命名会话功能
- Agents 和 bash 命令支持后台异步运行并可发送消息唤醒
- /rename 命名会话,/resume <name> 恢复会话
- 支持 .claude/rules/ 目录存储自定义规则
- /stats 提供使用统计、趋势图表和连续使用天数
## 2.0.64 - Made auto-compacting instant - Agents and bash commands can run asynchronously and send messages to wake up the main agent - /stats now provides users with interesting CC stats, such as favorite model, usage graph, usage streak - Added named session support: use `/rename` to name sessions, `/resume <name>` in REPL or `claude --resume <name>` from the terminal to resume them - Added support for .claude/rules/`. See https://code.claude.com/docs/en/memory for details. - Added image dimension metadata when images are resized, enabling accurate coordinate mappings for large images - Fixed auto-loading .env when using native installer - Fixed `--system-prompt` being ignored when using `--continue` or `--resume` flags - Improved `/resume` screen with grouped forked sessions and keyboard shortcuts for preview (P) and rename (R) - VSCode: Added copy-to-clipboard button on code blocks and bash tool inputs - VSCode: Fixed extension not working on Windows ARM64 by falling back to x64 binary via emulation - Bedrock: Improve efficiency of token counting - Bedrock: Add support for `aws login` AWS Management Console credentials - Unshipped AgentOutputTool and BashOutputTool, in favor of a new unified TaskOutputTool
v2.0.62推荐选项优化,新增署名自定义
- 多选问题显示'推荐'标签,推荐项置顶显示
- 新增 attribution 设置自定义 commit 和 PR 署名信息
- 修复符号链接目录中斜杠命令重复显示问题
- 修复权限规则删除后滚动位置重置问题
## 2.0.62 - Added "(Recommended)" indicator for multiple-choice questions, with the recommended option moved to the top of the list - Added `attribution` setting to customize commit and PR bylines (deprecates `includeCoAuthoredBy`) - Fixed duplicate slash commands appearing when ~/.claude is symlinked to a project directory - Fixed slash command selection not working when multiple commands share the same name - Fixed an issue where skill files inside symlinked skill directories could become circular symlinks - Fixed running versions getting removed because lock file incorrectly going stale - Fixed IDE diff tab not closing when rejecting file changes
v2.0.61撤销 VSCode 多终端支持
- 撤销之前版本的 VSCode 多终端客户端连接支持
破坏性变化
- 移除 VSCode 多终端客户端支持功能
## 2.0.61 - Reverted VSCode support for multiple terminal clients due to responsiveness issues.
v2.0.60后台 Agent,MCP 快速切换
- 新增后台 Agent 支持,agents 在后台持续运行
- 新增 --disable-slash-commands 标志禁用所有斜杠命令
- /mcp 新增 enable/disable 快速切换所有服务器
- Commit message 添加模型名称标识
## 2.0.60 - Added background agent support. Agents run in the background while you work - Added --disable-slash-commands CLI flag to disable all slash commands - Added model name to "Co-Authored-By" commit messages - Enabled "/mcp enable [server-name]" or "/mcp disable [server-name]" to quickly toggle all servers - Updated Fetch to skip summarization for pre-approved websites - VSCode: Added support for multiple terminal clients connecting to the IDE server simultaneously
v2.0.50-599 个版本 · 9 已摘要
v2.0.59Agent 配置选项增强
- 新增 --agent 标志覆盖当前会话的 agent 设置
- 新增 agent 配置项自定义系统提示和工具限制
- 修复 VSCode .claude.json 配置文件读取路径问题
## 2.0.59 - Added --agent CLI flag to override the agent setting for the current session - Added `agent` setting to configure main thread with a specific agent's system prompt, tool restrictions, and model - VS Code: Fixed .claude.json config file being read from incorrect location
v2.0.58Pro 用户可用 Opus 4.5
- Pro 用户可正式使用 Opus 4.5 模型
- 修复计时器显示错误(11m 60s 显示为 12m 0s)
- Windows 管理设置优先使用 Program Files 目录
## 2.0.58 - Pro users now have access to Opus 4.5 as part of their subscription! - Fixed timer duration showing "11m 60s" instead of "12m 0s" - Windows: Managed settings now prefer `C:\Program Files\ClaudeCode` if it exists. Support for `C:\ProgramData\ClaudeCode` will be removed in a future version.
v2.0.57支持计划反馈与流式消息
- 拒绝计划时可提供反馈说明改进方向
- VSCode 扩展支持实时流式消息显示
## 2.0.57 - Added feedback input when rejecting plans, allowing users to tell Claude what to change - VSCode: Added streaming message support for real-time response display
v2.0.56VSCode 右侧边栏与进度条设置
- VSCode 扩展支持右侧边栏显示(需 VS Code 1.97+)
- 新增终端进度条 (OSC 9;4) 开关设置
## 2.0.56 - Added setting to enable/disable terminal progress bar (OSC 9;4) - VSCode Extension: Added support for VS Code's secondary sidebar (VS Code 1.97+), allowing Claude Code to be displayed in the right sidebar while keeping the file explorer on the left. Requires setting sidebar as Preferred Location in the config.
v2.0.55修复默认代理与交互优化
- 代理 DNS 解析从默认启用改为可选
- 修复记忆位置选择器键盘导航卡顿问题
- 优化单选题流程,去掉多余审查屏幕
- 改进 @ 文件建议的模糊匹配性能
破坏性变化
- 需通过环境变量 CLAUDE_CODE_PROXY_RESOLVES_HOSTS=true 才能启用代理 DNS
## 2.0.55 - Fixed proxy DNS resolution being forced on by default. Now opt-in via `CLAUDE_CODE_PROXY_RESOLVES_HOSTS=true` environment variable - Fixed keyboard navigation becoming unresponsive when holding down arrow keys in memory location selector - Improved AskUserQuestion tool to auto-submit single-select questions on the last question, eliminating the extra review screen for simple question flows - Improved fuzzy matching for `@` file suggestions with faster, more accurate results
v2.0.54Hook 权限处理与通知优化
- Hook 支持处理「始终允许」权限建议并自动应用
- 修复 iTerm 过多通知问题
## 2.0.54 - Hooks: Enable PermissionRequest hooks to process 'always allow' suggestions and apply permission updates - Fix issue with excessive iTerm notifications
v2.0.52修复显示与粘贴问题
- 修复命令行启动时重复显示消息
- 修复 /usage 进度条方向(显示已用百分比)
- 修复 Linux Wayland 系统图片粘贴功能
- 允许 bash 命令中使用 $! 变量
## 2.0.52 - Fixed duplicate message display when starting Claude with a command line argument - Fixed `/usage` command progress bars to fill up as usage increases (instead of showing remaining percentage) - Fixed image pasting not working on Linux systems running Wayland (now falls back to wl-paste when xclip is unavailable) - Permit some uses of `$!` in bash commands
v2.0.51发布 Opus 4.5 与桌面应用
- 新增 Opus 4.5 模型,Pro 用户可购买额外使用量
- 发布 Claude Code 桌面应用版本
- Plan Mode 生成更精确的计划并完整执行
- 优化使用限额通知与 /usage 命令显示
## 2.0.51 - Added Opus 4.5! https://www.anthropic.com/news/claude-opus-4-5 - Introducing Claude Code for Desktop: https://claude.com/download - To give you room to try out our new model, we've updated usage limits for Claude Code users. See the Claude Opus 4.5 blog for full details - Pro users can now purchase extra usage for access to Opus 4.5 in Claude Code - Plan Mode now builds more precise plans and executes more thoroughly - Usage limit notifications now easier to understand - Switched `/usage` back to "% used" - Fixed handling of thinking errors - Fixed performance regression
v2.0.50修复 MCP 工具与显示优化
- 修复调用包含嵌套引用的 MCP 工具问题
- 改进超级思考(ultrathink)文本显示
- 改进 5 小时会话限制警告提示清晰度
## 2.0.50 - Fixed bug preventing calling MCP tools that have nested references in their input schemas - Silenced a noisy but harmless error during upgrades - Improved ultrathink text display - Improved clarity of 5-hour session limit warning message
v2.0.40-497 个版本 · 7 已摘要
v2.0.49新增 Ctrl-Y 粘贴与权限修复
- 新增 Ctrl-Y 快捷键支持粘贴删除的文本(readline 风格)
- 改进使用限额警告提示清晰度
- 修复子代理权限处理问题
## 2.0.49 - Added readline-style ctrl-y for pasting deleted text - Improved clarity of usage limit warning message - Fixed handling of subagent permissions
v2.0.47改进错误处理和修复多个问题
- 改进 claude --teleport 的错误信息和验证
- 改进 /usage 的错误处理
- 修复历史条目在退出时未记录的竞态条件
- 修复 Vertex AI 配置不从 settings.json 应用
## 2.0.47 - Improved error messages and validation for `claude --teleport` - Improved error handling in `/usage` - Fixed race condition with history entry not getting logged at exit - Fixed Vertex AI configuration not being applied from `settings.json`
v2.0.46修复图片媒体类型识别问题
- 修复无法从元数据检测格式时图片媒体类型报告不正确
## 2.0.46 - Fixed image files being reported with incorrect media type when format cannot be detected from metadata
v2.0.45新增 Microsoft Foundry 支持与权限Hook
- 新增 Microsoft Foundry 支持
- 新增 PermissionRequest Hook 自动审批工具权限请求
- Web 版可用 & 符号发送后台任务
## 2.0.45 - Added support for Microsoft Foundry! See https://code.claude.com/docs/en/azure-ai-foundry - Added `PermissionRequest` hook to automatically approve or deny tool permission requests with custom logic - Send background tasks to Claude Code on the web by starting a message with `&`
v2.0.43添加自定义代理字段与修复渲染
- 自定义代理新增 permissionMode 字段
- Hook 类型新增 tool_use_id 字段
- 声明子代理自动加载技能的 frontmatter 字段
- 新增 SubagentStart Hook 事件
## 2.0.43 - Added `permissionMode` field for custom agents - Added `tool_use_id` field to `PreToolUseHookInput` and `PostToolUseHookInput` types - Added skills frontmatter field to declare skills to auto-load for subagents - Added the `SubagentStart` hook event - Fixed nested `CLAUDE.md` files not loading when @-mentioning files - Fixed duplicate rendering of some messages in the UI - Fixed some visual flickers - Fixed NotebookEdit tool inserting cells at incorrect positions when cell IDs matched the pattern `cell-N`
v2.0.42SubagentStop Hook 新增字段
- SubagentStop Hook 新增 agent_id 和 agent_transcript_path 字段
## 2.0.42 - Added `agent_id` and `agent_transcript_path` fields to `SubagentStop` hooks.
v2.0.41Hook 参数扩展与多项修复优化
- Stop Hook 新增 model 参数指定自定义模型
- 修复斜杠命令双重加载导致的渲染问题
- 修复插件 Hook 超时时崩溃问题
- 插件新增共享和安装输出样式功能
## 2.0.41 - Added `model` parameter to prompt-based stop hooks, allowing users to specify a custom model for hook evaluation - Fixed slash commands from user settings being loaded twice, which could cause rendering issues - Fixed incorrect labeling of user settings vs project settings in command descriptions - Fixed crash when plugin command hooks timeout during execution - Fixed: Bedrock users no longer see duplicate Opus entries in the /model picker when using `--model haiku` - Fixed broken security documentation links in trust dialogs and onboarding - Fixed issue where pressing ESC to close the diff modal would also interrupt the model - ctrl-r history search landing on a slash command no longer cancels the search - SDK: Support custom timeouts for hooks - Allow more safe git commands to run without approval - Plugins: Added support for sharing and installing output styles - Teleporting a session from web will automatically set the upstream branch
v2.0.30-398 个版本 · 8 已摘要
v2.0.37优化空闲检测与 Hook 匹配
- 修复空闲计算逻辑用于通知
- Notification Hook 事件新增匹配器值
- Output Styles 新增 keep-coding-instructions 选项
## 2.0.37 - Fixed how idleness is computed for notifications - Hooks: Added matcher values for Notification hook events - Output Styles: Added `keep-coding-instructions` option to frontmatter
v2.0.36修复消息队列与自动更新问题
- 修复 DISABLE_AUTOUPDATER 环境变量不生效
- 修复队列消息被误执行为 bash 命令
- 修复输入消息被处理时丢失的问题
## 2.0.36 - Fixed: DISABLE_AUTOUPDATER environment variable now properly disables package manager update notifications - Fixed queued messages being incorrectly executed as bash commands - Fixed input being lost when typing while a queued message is processed
v2.0.35搜索优化和配置迁移
- 改进模糊搜索命令结果准确性
- VS Code 字体设置立即生效,支持 chat.fontSize 和 chat.fontFamily
- 新增 CLAUDE_CODE_EXIT_AFTER_STOP_DELAY 环境变量自动退出 SDK 模式
- 修复菜单导航在空值时卡住问题
破坏性变化
- ignorePatterns 从项目配置迁移到本地设置拒绝权限
## 2.0.35 - Improve fuzzy search results when searching commands - Improved VS Code extension to respect `chat.fontSize` and `chat.fontFamily` settings throughout the entire UI, and apply font changes immediately without requiring reload - Added `CLAUDE_CODE_EXIT_AFTER_STOP_DELAY` environment variable to automatically exit SDK mode after a specified idle duration, useful for automated workflows and scripts - Migrated `ignorePatterns` from project config to deny permissions in the localSettings. - Fixed menu navigation getting stuck on items with empty string or other falsy values (e.g., in the `/hooks` menu)
v2.0.34MCP OAuth 和内存性能修复
- VSCode 扩展可配置新对话初始权限模式
- 使用原生 Rust 模糊查找器提升文件路径建议性能
- 修复 OAuth MCP 服务器无限令牌刷新导致连接挂起
- 修复读写大文件时内存崩溃问题
## 2.0.34 - VSCode Extension: Added setting to configure the initial permission mode for new conversations - Improved file path suggestion performance with native Rust-based fuzzy finder - Fixed infinite token refresh loop that caused MCP servers with OAuth (e.g., Slack) to hang during connection - Fixed memory crash when reading or writing large files (especially base64-encoded images)
v2.0.33启动性能和工具兼容改进
- 原生二进制安装启动速度显著提升
- 修复 claude doctor 对 Homebrew/npm 安装检测准确性
- 修复 MCP serve 暴露不兼容输出模式工具问题
## 2.0.33 - Native binary installs now launch quicker. - Fixed `claude doctor` incorrectly detecting Homebrew vs npm-global installations by properly resolving symlinks - Fixed `claude mcp serve` exposing tools with incompatible outputSchemas
v2.0.32输出样式恢复和通告功能
- 根据社区反馈恢复输出样式功能
- 添加 companyAnnouncements 启动通告显示
- 修复 PostToolUse Hook 进度消息更新问题
## 2.0.32 - Un-deprecate output styles based on community feedback - Added `companyAnnouncements` setting for displaying announcements on startup - Fixed hook progress messages not updating correctly during PostToolUse hook execution
v2.0.31多平台快捷键和搜索改进
- Windows 快捷键改为 Shift+Tab 切换模式
- Vertex 添加网络搜索,VSCode 支持 respectGitIgnore 配置
- 修复子代理与 MCP 工具唯一性冲突、/compact 紧凑边界问题
- 修复插件卸载和搜索配置发现问题
## 2.0.31 - Windows: native installation uses shift+tab as shortcut for mode switching, instead of alt+m - Vertex: add support for Web Search on supported models - VSCode: Adding the respectGitIgnore configuration to include .gitignored files in file searches (defaults to true) - Fixed a bug with subagents and MCP servers related to "Tool names must be unique" error - Fixed issue causing `/compact` to fail with `prompt_too_long` by making it respect existing compact boundaries - Fixed plugin uninstall not removing plugins
v2.0.30安全增强和工具兼容性修复
- 添加 allowUnsandboxedCommands 和 disallowedTools 增强安全策略
- 启用 SSE MCP 服务器,修复子代理工具可用性问题
- 修复 /context、Explore 代理、Hook 执行等多个问题
- VSCode 恢复选择指示器,添加 respectGitIgnore 配置
破坏性变化
- 输出样式弃用,建议使用 --system-prompt-file 或 CLAUDE.md 代替
- 移除自定义 ripgrep 配置支持
## 2.0.30 - Added helpful hint to run `security unlock-keychain` when encountering API key errors on macOS with locked keychain - Added `allowUnsandboxedCommands` sandbox setting to disable the dangerouslyDisableSandbox escape hatch at policy level - Added `disallowedTools` field to custom agent definitions for explicit tool blocking - Added prompt-based stop hooks - VSCode: Added respectGitIgnore configuration to include .gitignored files in file searches (defaults to true) - Enabled SSE MCP servers on native build - Deprecated output styles. Review options in `/output-style` and use --system-prompt-file, --system-prompt, --append-system-prompt, CLAUDE.md, or plugins instead - Removed support for custom ripgrep configuration, resolving an issue where Search returns no results and config discovery fails - Fixed Explore agent creating unwanted .md investigation files during codebase exploration - Fixed a bug where `/context` would sometimes fail with "max_tokens must be greater than thinking.budget_tokens" error message - Fixed `--mcp-config` flag to correctly override file-based MCP configurations - Fixed bug that saved session permissions to local settings - Fixed MCP tools not being available to sub-agents - Fixed hooks and plugins not executing when using --dangerously-skip-permissions flag - Fixed delay when navigating through typeahead suggestions with arrow keys - VSCode: Restored selection indicator in input footer showing current file or code selection status
v2.0.20-297 个版本 · 7 已摘要
v2.0.28计划模式和子代理动态选择
- 新增 Plan 子代理,支持动态选择子代理使用的模型
- SDK 添加 --max-budget-usd 预算控制
- 插件支持分支标签语法(owner/repo#branch)
- 修复命令发现、权限提示和 terminal-setup 问题
破坏性变化
- 自定义命令发现不再尊重 .gitignore
## 2.0.28 - Plan mode: introduced new Plan subagent - Subagents: claude can now choose to resume subagents - Subagents: claude can dynamically choose the model used by its subagents - SDK: added --max-budget-usd flag - Discovery of custom slash commands, subagents, and output styles no longer respects .gitignore - Stop `/terminal-setup` from adding backslash to `Shift + Enter` in VS Code - Add branch and tag support for git-based plugins and marketplaces using fragment syntax (e.g., `owner/repo#branch`) - Fixed a bug where macOS permission prompts would show up upon initial launch when launching from home directory - Various other bug fixes
v2.0.27权限提示重设和目录选择修复
- 全新权限提示 UI 设计
- 会话恢复屏幕添加分支过滤和搜索
- 修复目录 @-mention 导致的错误
- VSCode 扩展配置和 Warmup 对话问题修复
## 2.0.27 - New UI for permission prompts - Added current branch filtering and search to session resume screen for easier navigation - Fixed directory @-mention causing "No assistant message found" error - VSCode Extension: Add config setting to include .gitignored files in file searches - VSCode Extension: Bug fixes for unrelated 'Warmup' conversations, and configuration/settings occasionally being reset to defaults
v2.0.25停止维护旧 SDK 入口点
- 旧 SDK 入口已弃用,请迁移至 @anthropic-ai/claude-agent-sdk
破坏性变化
- 旧 SDK 入口点已移除
## 2.0.25 - Removed legacy SDK entrypoint. Please migrate to @anthropic-ai/claude-agent-sdk for future SDK updates: https://platform.claude.com/docs/en/agent-sdk/migration-guide
v2.0.24新增沙箱模式与多平台优化
- 修复项目级 Skill 未正确加载的问题
- Claude Code Web 支持双向传送至 CLI
- Linux/Mac 上 BashTool 沙箱模式发布
- Bedrock 认证时显示 awsAuthRefresh 输出
## 2.0.24 - Fixed a bug where project-level skills were not loading when --setting-sources 'project' was specified - Claude Code Web: Support for Web -> CLI teleport - Sandbox: Releasing a sandbox mode for the BashTool on Linux & Mac - Bedrock: Display awsAuthRefresh output when auth is required
v2.0.22修复交互体验与企业 MCP 管理
- 修复滚动 Slash 命令时的布局抖动
- IDE 支持启用/禁用思考模式
- 修复并行工具调用导致的重复权限提示
- 支持企业托管 MCP 的允许/拒绝名单
## 2.0.22 - Fixed content layout shift when scrolling through slash commands - IDE: Add toggle to enable/disable thinking. - Fix bug causing duplicate permission prompts with parallel tool calls - Add support for enterprise managed MCP allowlist and denylist
v2.0.21新增交互式提问与 Haiku 4.5 支持
- MCP Tool 响应支持 structuredContent 字段
- 新增交互式提问 Tool
- Plan 模式中更频繁提出问题
- Pro 用户可选择 Haiku 4.5 模型
## 2.0.21 - Support MCP `structuredContent` field in tool responses - Added an interactive question tool - Claude will now ask you questions more often in plan mode - Added Haiku 4.5 as a model option for Pro users - Fixed an issue where queued commands don't have access to previous messages' output
v2.0.20引入 Claude Skills 功能
- 新增 Claude Skills 支持
## 2.0.20 - Added support for Claude Skills
v2.0.10-198 个版本 · 8 已摘要
v2.0.19长时运行命令自动后台化
- 长时运行 Bash 命令自动转入后台,可通过 BASH_DEFAULT_TIMEOUT_MS 自定义
- 修复 Print 模式不必要调用 Haiku 的问题
## 2.0.19 - Auto-background long-running bash commands instead of killing them. Customize with BASH_DEFAULT_TIMEOUT_MS - Fixed a bug where Haiku was unnecessarily called in print mode
v2.0.17Haiku 4.5 与 Explore 子代理发布
- Haiku 4.5 可选,Plan 模式默认用 Sonnet(SonnetPlan)
- 新增 Explore 子代理高效搜索代码库
- OTEL 支持 HTTP/HTTPS 代理配置
- 可禁用非必要流量如发布说明获取
破坏性变化
- Bedrock 和 Vertex 需手动升级 Haiku 版本
## 2.0.17 - Added Haiku 4.5 to model selector! - Haiku 4.5 automatically uses Sonnet in plan mode, and Haiku for execution (i.e. SonnetPlan by default) - 3P (Bedrock and Vertex) are not automatically upgraded yet. Manual upgrading can be done through setting `ANTHROPIC_DEFAULT_HAIKU_MODEL` - Introducing the Explore subagent. Powered by Haiku it'll search through your codebase efficiently to save context! - OTEL: support HTTP_PROXY and HTTPS_PROXY - `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` now disables release notes fetching
v2.0.15修复恢复会话时文件操作问题
- 修复会话恢复时新建文件需重新读取才能写入
- 修复 -p 模式中 @ 提及文件需重新读取
## 2.0.15 - Fixed bug with resuming where previously created files needed to be read again before writing - Fixed bug with `-p` mode where @-mentioned files needed to be read again before writing
v2.0.14优化MCP服务和权限检查
- 修复@提及MCP服务器来启用/禁用功能
- 改进bash环境变量的权限检查
- 修复ultrathink和thinking toggle
- 减少不必要的登录,改进UI渲染
## 2.0.14 - Fix @-mentioning MCP servers to toggle them on/off - Improve permission checks for bash with inline env vars - Fix ultrathink + thinking toggle - Reduce unnecessary logins - Document --system-prompt - Several improvements to rendering - Plugins UI polish
v2.0.13修复原生构建插件命令
- 修复原生构建环境下/plugin命令无法工作的问题
## 2.0.13 - Fixed `/plugin` not working on native build
v2.0.12发布插件系统生态
- 推出Plugin系统,支持自定义命令、Agent、Hook和MCP
- 提供/plugin install/enable/disable和validate管理命令
- 支持extraKnownMarketplaces仓库级配置,方便团队协作
- /doctor诊断和/config持久化功能
## 2.0.12 - **Plugin System Released**: Extend Claude Code with custom commands, agents, hooks, and MCP servers from marketplaces - `/plugin install`, `/plugin enable/disable`, `/plugin marketplace` commands for plugin management - Repository-level plugin configuration via `extraKnownMarketplaces` for team collaboration - `/plugin validate` command for validating plugin structure and configuration - Plugin announcement blog post at https://www.anthropic.com/news/claude-code-plugins - Plugin documentation available at https://code.claude.com/docs/en/plugins - Comprehensive error messages and diagnostics via `/doctor` command - Avoid flickering in `/model` selector - Improvements to `/help` - Avoid mentioning hooks in `/resume` summaries - Changes to the "verbose" setting in `/config` now persist across sessions
v2.0.11优化系统提示和IDE交互
- 减少系统提示1.4k tokens,降低使用成本
- 修复IDE快捷键和焦点问题
- 修复Opus备选速率限制错误显示
- 修复/add-dir命令默认标签页选择
## 2.0.11 - Reduced system prompt size by 1.4k tokens - IDE: Fixed keyboard shortcuts and focus issues for smoother interaction - Fixed Opus fallback rate limit errors appearing incorrectly - Fixed /add-dir command selecting wrong default tab
v2.0.10重写终端渲染和MCP管理
- 重写终端渲染器优化UI流畅度
- 支持@提及或/mcp命令启用/禁用MCP
- bash增加shell命令Tab自动完成
- PreToolUse Hook可修改Tool输入,Ctrl-G快速编辑
## 2.0.10 - Rewrote terminal renderer for buttery smooth UI - Enable/disable MCP servers by @mentioning, or in /mcp - Added tab completion for shell commands in bash mode - PreToolUse hooks can now modify tool inputs - Press Ctrl-G to edit your prompt in your system's configured text editor - Fixes for bash permission checks with environment variables in the command
v2.0.0-95 个版本 · 5 已摘要
v2.0.9修复bash后台运行
- 修复bash后台进程无法运行的回归问题
## 2.0.9 - Fix regression where bash backgrounding stopped working
v2.0.8更新模型并优化IDE主题
- 更新Bedrock默认Sonnet模型版本
- IDE支持文件/文件夹拖拽上传到聊天
- 修复thinking blocks计数问题
- 优化暗终端下亮主题的消息渲染
破坏性变化
- .claude.json中allowedTools、ignorePatterns、env、todoFeatureEnabled选项已移除,改用settings.json配置
## 2.0.8 - Update Bedrock default Sonnet model to `global.anthropic.claude-sonnet-4-5-20250929-v1:0` - IDE: Add drag-and-drop support for files and folders in chat - /context: Fix counting for thinking blocks - Improve message rendering for users with light themes on dark terminals - Remove deprecated .claude.json allowedTools, ignorePatterns, env, and todoFeatureEnabled config options (instead, configure these in your settings.json)
v2.0.5修复IME和OAuth问题
- 修复IDE中IME输入导致Enter/Tab意外提交消息
- 登录界面增加Open in Terminal链接
- 修复OAuth过期导致的401错误处理
- SDK增加SDKUserMessageReplay.isReplay防止消息重复
## 2.0.5 - IDE: Fix IME unintended message submission with Enter and Tab - IDE: Add "Open in Terminal" link in login screen - Fix unhandled OAuth expiration 401 API errors - SDK: Added SDKUserMessageReplay.isReplay to prevent duplicate messages
v2.0.1Bedrock/Vertex 配置修复与 UI 改进
- Bedrock 和 Vertex 跳过 Sonnet 4.5 默认模型设置
- 各项 bug 修复和 UI 改进
## 2.0.1 - Skip Sonnet 4.5 default model setting change for Bedrock and Vertex - Various bug fixes and presentation improvements
v2.0.0VS Code 原生扩展与功能全面升级
- 新增原生 VS Code 扩展
- /rewind 恢复对话状态,/usage 查看配额
- Tab 切换 thinking 模式(跨会话保存),Ctrl-R 历史搜索
- --agents 标志动态添加子代理
破坏性变化
- Claude Code SDK 正式更名为 Claude Agent SDK
## 2.0.0 - New native VS Code extension - Fresh coat of paint throughout the whole app - /rewind a conversation to undo code changes - /usage command to see plan limits - Tab to toggle thinking (sticky across sessions) - Ctrl-R to search history - Unshipped claude config command - Hooks: Reduced PostToolUse 'tool_use' ids were found without 'tool_result' blocks errors - SDK: The Claude Code SDK is now the Claude Agent SDK - Add subagents dynamically with `--agents` flag
v1.0.120-1294 个版本 · 4 已摘要
v1.0.126Bedrock/Vertex 支持扩展与 mTLS
- Bedrock 和 Vertex 启用 /context 命令
- HTTP OpenTelemetry 导出器添加 mTLS 支持
## 1.0.126 - Enable /context command for Bedrock and Vertex - Add mTLS support for HTTP-based OpenTelemetry exporters
v1.0.124修复安全漏洞,优化性能
- 新增 CLAUDE_BASH_NO_LOGIN 环境变量跳过登录 shell
- 修复 Bedrock/Vertex 环境变量评估问题
- 修复 Bash Tool 权限检查安全漏洞
- 改进 VSCode 扩展大文件性能
## 1.0.124 - Set `CLAUDE_BASH_NO_LOGIN` environment variable to 1 or true to to skip login shell for BashTool - Fix Bedrock and Vertex environment variables evaluating all strings as truthy - No longer inform Claude of the list of allowed tools when permission is denied - Fixed security vulnerability in Bash tool permission checks - Improved VSCode extension performance for large files
v1.0.123Bash 权限增强与 SlashCommand Tool
- Bash 权限规则支持输出重定向匹配
- 新增 SlashCommand Tool 支持调用斜杠命令
- 修复 thinking 模式误触发,改进渲染性能
- --debug 日志迁移到文件便于查阅
## 1.0.123 - Bash permission rules now support output redirections when matching (e.g., `Bash(python:*)` matches `python script.py > output.txt`) - Fixed thinking mode triggering on negation phrases like "don't think" - Fixed rendering performance degradation during token streaming - Added SlashCommand tool, which enables Claude to invoke your slash commands. https://code.claude.com/docs/en/slash-commands#SlashCommand-tool - Enhanced BashTool environment snapshot logging - Fixed a bug where resuming a conversation in headless mode would sometimes enable thinking unnecessarily - Migrated --debug logging to a file, to enable easy tailing & filtering
v1.0.120修复输入延迟与权限检查漏洞
- 修复输入延迟问题,特别是大提示词场景
- 改进 VSCode 扩展命令注册表和会话对话框
- 修复 IDE 兼容性,移除 worktree 检查
- 修复 Bash Tool 权限检查安全漏洞
## 1.0.120 - Fix input lag during typing, especially noticeable with large prompts - Improved VSCode extension command registry and sessions dialog user experience - Enhanced sessions dialog responsiveness and visual feedback - Fixed IDE compatibility issue by removing worktree support check - Fixed security vulnerability where Bash tool permission checks could be bypassed using prefix matching
v1.0.110-1197 个版本 · 7 已摘要
v1.0.119修复 Windows 冻结,支持动态头
- 修复 Windows 交互模式进程冻结
- MCP 服务器支持 headersHelper 动态头配置
- 修复 thinking 模式在无头会话中不工作
- 修复斜杠命令正确更新允许工具列表
## 1.0.119 - Fix Windows issue where process visually freezes on entering interactive mode - Support dynamic headers for MCP servers via headersHelper configuration - Fix thinking mode not working in headless sessions - Fix slash commands now properly update allowed tools instead of replacing them
v1.0.117新增历史搜索,修复输入延迟
- 新增 Ctrl-R 历史搜索功能(类似 bash/zsh)
- 修复输入延迟问题,特别是 Windows 平台
- acceptEdits 模式自动允许 sed 命令
- 修复 Windows PATH 比较大小写敏感问题
## 1.0.117 - Add Ctrl-R history search to recall previous commands like bash/zsh - Fix input lag while typing, especially on Windows - Add sed command to auto-allowed commands in acceptEdits mode - Fix Windows PATH comparison to be case-insensitive for drive letters - Add permissions management hint to /add-dir output
v1.0.115思维模式显示改进,新增临时禁用
- 思维模式界面显示效果增强
- 输入 /t 快速临时禁用思维模式
- 改进 glob 和 grep Tool 的路径验证
- Hook 输出显示压缩,减少视觉混乱
## 1.0.115 - Improve thinking mode display with enhanced visual effects - Type /t to temporarily disable thinking mode in your prompt - Improve path validation for glob and grep tools - Show condensed output for post-tool hooks to reduce visual clutter - Fix visual feedback when loading state completes - Improve UI consistency for permission request dialogs
v1.0.113快捷键调整,交互模式输入变更
- Ctrl+R 改为 Ctrl+O 切换记录本
- 交互模式下弃用管道输入
破坏性变化
- Ctrl+R 快捷键改为 Ctrl+O 切换记录本
## 1.0.113 - Deprecated piped input in interactive mode - Move Ctrl+R keybinding for toggling transcript to Ctrl+O
v1.0.112记录本增强,Hook 功能扩展
- 记录本模式显示生成每条消息的模型
- Hook 支持 SessionEnd 类型的 systemMessage
- 新增 spinnerTipsEnabled 设置禁用加载提示
- 修复 Claude Max 用户识别问题
## 1.0.112 - Transcript mode (Ctrl+R): Added the model used to generate each assistant message - Addressed issue where some Claude Max users were incorrectly recognized as Claude Pro users - Hooks: Added systemMessage support for SessionEnd hooks - Added `spinnerTipsEnabled` setting to disable spinner tips - IDE: Various improvements and bug fixes
v1.0.111模型验证增强,Bash 解析修复
- /model 命令现在验证模型名称
- 修复 Bash Tool 因错误 shell 语法导致的崩溃
## 1.0.111 - /model now validates provided model names - Fixed Bash tool crashes caused by malformed shell syntax parsing
v1.0.110终端支持扩展,MCP Token 自动刷新
- /terminal-setup 命令新增 WezTerm 支持
- MCP OAuth token 主动在过期前刷新
- 修复后台 Bash 进程可靠性问题
## 1.0.110 - /terminal-setup command now supports WezTerm - MCP: OAuth tokens now proactively refresh before expiration - Fixed reliability issues with background Bash processes
v1.0.100-1092 个版本 · 2 已摘要
v1.0.109SDK 支持部分消息流式传输
- SDK 通过 --include-partial-messages 标志支持部分消息流式传输
## 1.0.109 - SDK: Added partial message streaming support via `--include-partial-messages` CLI flag
v1.0.106Windows 路径权限格式修复
- 修复 Windows 路径权限匹配,统一使用 POSIX 格式
## 1.0.106 - Windows: Fixed path permission matching to consistently use POSIX format (e.g., `Read(//c/Users/...)`)
v1.0.90-994 个版本 · 4 已摘要
v1.0.97/doctor 新增权限规则验证
- /doctor 命令验证权限规则语法并提供改正建议
## 1.0.97 - Settings: /doctor now validates permission rule syntax and suggests corrections
v1.0.94内存编辑和 SDK 工具增强
- /memory 命令支持直接编辑所有导入的内存文件
- SDK 支持自定义工具作为回调
- Vertex 支持全局端点
- 新增 /todos 命令查看待办项
## 1.0.94 - Vertex: add support for global endpoints for supported models - /memory command now allows direct editing of all imported memory files - SDK: Add custom tools as callbacks - Added /todos command to list current todo items
v1.0.93Windows 图片粘贴和代理支持
- Windows 下 Alt+V 快捷键粘贴图片
- 支持 NO_PROXY 环境变量绕过指定主机的代理
## 1.0.93 - Windows: Add alt + v shortcut for pasting images from clipboard - Support NO_PROXY environment variable to bypass proxy for specified hostnames and IPs
v1.0.90设置实时生效
- 设置文件更改无需重启即可立即生效
## 1.0.90 - Settings file changes take effect immediately - no restart required
v1.0.80-898 个版本 · 8 已摘要
v1.0.88OAuth 修复和模型控制
- 修复 OAuth 认证不支持错误
- 状态行输入添加 exceeds_200k_tokens 显示
- 修复 /cost 命令的使用统计错误
- 环境变量控制 Sonnet/Opus 默认模型别名
破坏性变化
- Bedrock: Sonnet 默认模型更新为 Sonnet 4
## 1.0.88 - Fixed issue causing "OAuth authentication is currently not supported" - Status line input now includes `exceeds_200k_tokens` - Fixed incorrect usage tracking in /cost. - Introduced `ANTHROPIC_DEFAULT_SONNET_MODEL` and `ANTHROPIC_DEFAULT_OPUS_MODEL` for controlling model aliases opusplan, opus, and sonnet. - Bedrock: Updated default Sonnet model to Sonnet 4
v1.0.86上下文调试和 SDK 增强
- 新增 /context 命令自助调试上下文问题
- SDK 消息添加 UUID 支持
- SDK 新增 --replay-user-messages 选项
## 1.0.86 - Added /context to help users self-serve debug context issues - SDK: Added UUID support for all SDK messages - SDK: Added `--replay-user-messages` to replay user messages back to stdout
v1.0.85成本追踪和会话 Hook
- 状态行显示会话成本信息
- Hooks 引入 SessionEnd Hook
## 1.0.85 - Status line input now includes session cost info - Hooks: Introduced SessionEnd hook
v1.0.84稳定性改进和文件引导
- 修复网络不稳定时工具 ID 不匹配错误
- 修复实时引导偶尔被忽略的问题
- @-mention 将 ~/.claude/* 文件加入建议
- 默认使用内置 ripgrep
## 1.0.84 - Fix tool_use/tool_result id mismatch error when network is unstable - Fix Claude sometimes ignoring real-time steering when wrapping up a task - @-mention: Add ~/.claude/\* files to suggestions for easier agent, output style, and slash command editing - Use built-in ripgrep by default; to opt out of this behavior, set USE_BUILTIN_RIPGREP=0
v1.0.83文件路径和 UI 改进
- @-mention 支持路径中包含空格的文件
- 新的 shimmer 旋转加载动画
## 1.0.83 - @-mention: Support files with spaces in path - New shimmering spinner
v1.0.82SDK 新增取消请求支持
- SDK 支持请求取消和自定义搜索路径
- 设置文件验证防止无效字段
- 修复大文件自动读取导致的崩溃
## 1.0.82 - SDK: Add request cancellation support - SDK: New additionalDirectories option to search custom paths, improved slash command processing - Settings: Validation prevents invalid fields in .claude/settings.json files - MCP: Improve tool name consistency - Bash: Fix crash when Claude tries to automatically read large files
v1.0.81发布输出样式和教育模式
- 新增教育输出样式「解释」和「学习」
- 修复自定义 agent 加载问题
## 1.0.81 - Released output styles, including new built-in educational output styles "Explanatory" and "Learning". Docs: https://code.claude.com/docs/en/output-styles - Agents: Fix custom agent loading when agent files are unparsable
v1.0.80UI 优化色彩对比和加载动画
- 修复自定义子 agent 颜色对比度问题
- 改进 spinner 渲染效果
## 1.0.80 - UI improvements: Fix text contrast for custom subagent colors and spinner rendering issues
v1.0.70-795 个版本 · 5 已摘要
v1.0.77Bash 修复和 Opus Plan 优化
- 修复 heredoc 和多行字符串转义问题
- SDK 新增 session 支持和权限跟踪
- Opus 专用 Plan Mode,其他场景自动用 Sonnet
- 修复对话摘要的 token 限制错误
## 1.0.77 - Bash tool: Fix heredoc and multiline string escaping, improve stderr redirection handling - SDK: Add session support and permission denial tracking - Fix token limit errors in conversation summarization - Opus Plan Mode: New setting in `/model` to run Opus only in plan mode, Sonnet otherwise
v1.0.73MCP 多配置和平台适配改进
- MCP 支持多配置文件同时加载
- 按 Esc 可取消 OAuth 认证流程
- Bash 改进命令验证和减少误告警
- 新增 Alpine 和 musl 发行版支持
## 1.0.73 - MCP: Support multiple config files with `--mcp-config file1.json file2.json` - MCP: Press Esc to cancel OAuth authentication flows - Bash: Improved command validation and reduced false security warnings - UI: Enhanced spinner animations and status line visual hierarchy - Linux: Added support for Alpine and musl-based distributions (requires separate ripgrep installation)
v1.0.72新增工具权限确认功能
- 通过 /permissions 为特定工具设置权限确认
## 1.0.72 - Ask permissions: have Claude Code always ask for confirmation to use specific tools with /permissions
v1.0.71后台命令和自定义状态行
- Ctrl-b 运行后台 Bash 命令,支持开发服务器和日志跟踪
- 用 /statusline 自定义终端提示符显示
## 1.0.71 - Background commands: (Ctrl-b) to run any Bash command in the background so Claude can keep working (great for dev servers, tailing logs, etc.) - Customizable status line: add your terminal prompt to Claude Code with /statusline
v1.0.70性能优化和 Windows 功能修复
- 优化大上下文消息渲染性能
- 修复 Windows 文件搜索、ripgrep 和子 agent 功能
- 支持斜线命令参数中的 @-mentions
## 1.0.70 - Performance: Optimized message rendering for better performance with large contexts - Windows: Fixed native file search, ripgrep, and subagent functionality - Added support for @-mentions in slash command arguments
v1.0.60-698 个版本 · 8 已摘要
v1.0.69升级 Opus 至 4.1 版本
- Claude Opus 模型升级到 4.1 版本
## 1.0.69 - Upgraded Opus to version 4.1
v1.0.68修复模型名称与权限检查
- 修复 /pr-comments 等命令的错误模型名称
- Windows 权限检查改进,支持项目信任管理
- Windows 改进子进程生成,消除命令执行错误
- /doctor 命令增强,集成 CLAUDE.md 与 MCP Tool 调试支持,SDK 添加 canUseTool callback
破坏性变化
- Windows: .claude.json 中可能新增项目条目,需手动合并 history 字段
## 1.0.68 - Fix incorrect model names being used for certain commands like `/pr-comments` - Windows: improve permissions checks for allow / deny tools and project trust. This may create a new project entry in `.claude.json` - manually merge the history field if desired. - Windows: improve sub-process spawning to eliminate "No such file or directory" when running commands like pnpm - Enhanced /doctor command with CLAUDE.md and MCP tool context for self-serve debugging - SDK: Added canUseTool callback support for tool confirmation - Added `disableAllHooks` setting - Improved file suggestions performance in large repos
v1.0.65修复 IDE 连接稳定性
- 修复 IDE 连接稳定性和诊断错误处理
- 修复 Windows 无 .bashrc 文件时的 shell 环境设置
## 1.0.65 - IDE: Fixed connection stability issues and error handling for diagnostics - Windows: Fixed shell environment setup for users without .bashrc files
v1.0.64Agent 支持模型定制与增强
- Agent 支持自定义模型指定
- Hook JSON 输出新增 systemMessage 字段用于警告展示
- 文件搜索和 @-mention 建议现支持隐藏文件
## 1.0.64 - Agents: Added model customization support - you can now specify which model an agent should use - Agents: Fixed unintended access to the recursive agent tool - Hooks: Added systemMessage field to hook JSON output for displaying warnings and context - SDK: Fixed user input tracking across multi-turn conversations - Added hidden files to file search and @-mention suggestions
v1.0.63修复 Windows 文件搜索功能
- 修复 Windows 文件搜索、@agent mentions 和自定义 slash 命令
## 1.0.63 - Windows: Fixed file search, @agent mentions, and custom slash commands functionality
v1.0.62@-mention Agent 与 SessionStart Hook
- @-mention 自定义 Agent,支持 typeahead 自动完成
- 新增 SessionStart Hook 用于会话初始化
- /add-dir 命令支持目录路径 typeahead
## 1.0.62 - Added @-mention support with typeahead for custom agents. @<your-custom-agent> to invoke it - Hooks: Added SessionStart hook for new session initialization - /add-dir command now supports typeahead for directory paths - Improved network connectivity check reliability
v1.0.61Transcript 模式与设置改进
- Transcript 模式改为 Esc 退出而非中断
- Settings 添加 --settings 标志从 JSON 文件加载配置
- 支持 symlink 设置文件路径解析
- 添加 CLAUDE_CODE_SHELL_PREFIX 用于包装 Shell 命令
## 1.0.61 - Transcript mode (Ctrl+R): Changed Esc to exit transcript mode rather than interrupt - Settings: Added `--settings` flag to load settings from a JSON file - Settings: Fixed resolution of settings files paths that are symlinks - OTEL: Fixed reporting of wrong organization after authentication changes - Slash commands: Fixed permissions checking for allowed-tools with Bash - IDE: Added support for pasting images in VSCode MacOS using ⌘+V - IDE: Added `CLAUDE_CODE_AUTO_CONNECT_IDE=false` for disabling IDE auto-connection - Added `CLAUDE_CODE_SHELL_PREFIX` for wrapping Claude and user-provided shell commands run by Claude Code
v1.0.60支持创建自定义子 Agent
- 创建自定义 subagent 用于专门任务,运行 /agents 开始使用
## 1.0.60 - You can now create custom subagents for specialized tasks! Run /agents to get started
v1.0.50-599 个版本 · 9 已摘要
v1.0.59SDK和Hooks增强
- SDK支持工具确认回调(canUseTool)
- Hooks公开权限决策接口
- UserPromptSubmit支持additionalContext参数
- 修复Max用户选Opus仍降级为Sonnet的问题
## 1.0.59 - SDK: Added tool confirmation support with canUseTool callback - SDK: Allow specifying env for spawned process - Hooks: Exposed PermissionDecision to hooks (including "ask") - Hooks: UserPromptSubmit now supports additionalContext in advanced JSON output - Fixed issue where some Max users that specified Opus would still see fallback to Sonnet
v1.0.58新增PDF支持和MCP优化
- 新增PDF文件读取功能
- MCP服务器健康状态显示改进
- Hooks添加CLAUDE_PROJECT_DIR环境变量
## 1.0.58 - Added support for reading PDFs - MCP: Improved server health status display in 'claude mcp list' - Hooks: Added CLAUDE_PROJECT_DIR env var for hook commands
v1.0.57斜杠命令支持模型指定
- 斜杠命令中支持指定AI模型
- 权限提示改进帮助Claude理解可用工具
- 修复bash输出在终端换行时的尾部换行问题
## 1.0.57 - Added support for specifying a model in slash commands - Improved permission messages to help Claude understand allowed tools - Fix: Remove trailing newlines from bash output in terminal wrapping
v1.0.56Windows快捷键和WSL检测修复
- Windows上启用shift+tab进行模式切换(需VT模式支持)
- 修复WSL IDE检测问题
- 修复awsRefreshHelper未捕获.aws目录变更的问题
## 1.0.56 - Windows: Enabled shift+tab for mode switching on versions of Node.js that support terminal VT mode - Fixes for WSL IDE detection - Fix an issue causing awsRefreshHelper changes to .aws directory not to be picked up
v1.0.55SDK和Windows稳定性改进
- 澄清Opus 4和Sonnet 4的知识截断日期
- Windows修复Ctrl+Z崩溃问题
- SDK增加错误日志捕获能力
- print模式支持--system-prompt-file覆盖系统提示
## 1.0.55 - Clarified knowledge cutoff for Opus 4 and Sonnet 4 models - Windows: fixed Ctrl+Z crash - SDK: Added ability to capture error logging - Add --system-prompt-file option to override system prompt in print mode
v1.0.54Hooks和Windows功能完善
- Hooks新增UserPromptSubmit事件和工作目录支持
- 自定义斜杠命令支持argument-hint前言
- Windows OAuth改进(端口45454、浏览器URL)和模式切换改为alt+m
- Shell改用内存快照修复文件相关错误
## 1.0.54 - Hooks: Added UserPromptSubmit hook and the current working directory to hook inputs - Custom slash commands: Added argument-hint to frontmatter - Windows: OAuth uses port 45454 and properly constructs browser URL - Windows: mode switching now uses alt + m, and plan mode renders properly - Shell: Switch to in-memory shell snapshot to fix file-related errors
v1.0.53文件提及和AWS认证支持增强
- @提及文件截断提升至2000行
- 新增AWS认证助手脚本设置(awsAuthRefresh和awsCredentialExport)
## 1.0.53 - Updated @-mention file truncation from 100 lines to 2000 lines - Add helper script settings for AWS token refresh: awsAuthRefresh (for foreground operations like aws sso login) and awsCredentialExport (for background operation with STS-like response).
v1.0.52MCP服务器指令支持
- 新增MCP服务器指令支持
## 1.0.52 - Added support for MCP server instructions
v1.0.51新增 Windows 支持与 Bedrock API 集成
- Windows 原生支持(需要 Git for Windows)
- 支持通过 AWS_BEARER_TOKEN_BEDROCK 环境变量配置 Bedrock API 密钥
- /doctor 命令可帮助识别和修复无效的设置文件
- 修复了带空格的用户目录在 Shell 快照中的处理问题
## 1.0.51 - Added support for native Windows (requires Git for Windows) - Added support for Bedrock API keys through environment variable AWS_BEARER_TOKEN_BEDROCK - Settings: /doctor can now help you identify and fix invalid setting files - `--append-system-prompt` can now be used in interactive mode, not just --print/-p. - Increased auto-compact warning threshold from 60% to 80% - Fixed an issue with handling user directories with spaces for shell snapshots - OTEL resource now includes os.type, os.version, host.arch, and wsl.version (if running on Windows Subsystem for Linux) - Custom slash commands: Fixed user-level commands in subdirectories - Plan mode: Fixed issue where rejected plan from sub-task would get discarded
v1.0.40-497 个版本 · 7 已摘要
v1.0.48Bash 工具进度显示与 Shell 快照位置调整
- 修复 v1.0.45 导致的应用启动冻结问题
- Bash 工具基于最后 5 行输出显示进度消息
- Shell 快照位置从 /tmp 改至 ~/.claude 以提高可靠性
- 新增 PreCompact Hook,Vim 模式新增快捷键
## 1.0.48 - Fixed a bug in v1.0.45 where the app would sometimes freeze on launch - Added progress messages to Bash tool based on the last 5 lines of command output - Added expanding variables support for MCP server configuration - Moved shell snapshots from /tmp to ~/.claude for more reliable Bash tool calls - Improved IDE extension path handling when Claude Code runs in WSL - Hooks: Added a PreCompact hook - Vim mode: Added c, f/F, t/T
v1.0.45Grep 工具重新设计与配置文件安全性增强
- Grep 工具重新设计,新增工具输入参数和功能
- 禁用 Notebook 文件的 IDE diffs,修复超时错误
- 通过原子写入增强配置文件安全性
- 提示输入撤销快捷键改为 Ctrl+\_
破坏性变化
- 提示输入撤销快捷键从 Ctrl+U 改为 Ctrl+\_
## 1.0.45 - Redesigned Search (Grep) tool with new tool input parameters and features - Disabled IDE diffs for notebook files, fixing "Timeout waiting after 1000ms" error - Fixed config file corruption issue by enforcing atomic writes - Updated prompt input undo to Ctrl+\_ to avoid breaking existing Ctrl+U behavior, matching zsh's undo shortcut - Stop Hooks: Fixed transcript path after /clear and fixed triggering when loop ends with tool call - Custom slash commands: Restored namespacing in command names based on subdirectories. For example, .claude/commands/frontend/component.md is now /frontend:component, not /component.
v1.0.44新增导出命令与快捷键调整
- 新增 /export 命令用于快速分享对话
- MCP 现支持 resource_link 工具结果和工具注解显示
- Ctrl+Z 改为挂起 Claude Code,提示输入撤销改为 Ctrl+U
破坏性变化
- Ctrl+Z 快捷键用途改变(从撤销改为挂起)
## 1.0.44 - New /export command lets you quickly export a conversation for sharing - MCP: resource_link tool results are now supported - MCP: tool annotations and tool titles now display in /mcp view - Changed Ctrl+Z to suspend Claude Code. Resume by running `fg`. Prompt input undo is now Ctrl+U.
v1.0.43主题选择器性能修复与错误处理增强
- 修复主题选择器过度保存导致的性能问题
- Hooks 添加 EPIPE 系统错误处理
## 1.0.43 - Fixed a bug where the theme selector was saving excessively - Hooks: Added EPIPE system error handling
v1.0.42路径展开支持改进
- /add-dir 命令新增 tilde(~)展开支持
## 1.0.42 - Added tilde (`~`) expansion support to `/add-dir` command
v1.0.41Hook 功能扩展与 MCP 工具显示修复
- Stop Hook 触发分离为 Stop 和 SubagentStop,支持单独超时配置
- Hook 输入新增 hook_event_name 字段用于识别事件类型
- 修复 MCP 工具在列表中重复显示的问题
- Bash 工具 tool_decision 事件新增 JSON 格式的工具参数
## 1.0.41 - Hooks: Split Stop hook triggering into Stop and SubagentStop - Hooks: Enabled optional timeout configuration for each command - Hooks: Added "hook_event_name" to hook input - Fixed a bug where MCP tools would display twice in tool list - New tool parameters JSON for Bash tool in `tool_decision` event
v1.0.40API 连接证书错误修复
- 修复设置 NODE_EXTRA_CA_CERTS 时导致的 API 连接失败问题
## 1.0.40 - Fixed a bug causing API connection errors with UNABLE_TO_GET_ISSUER_CERT_LOCALLY if `NODE_EXTRA_CA_CERTS` was set
v1.0.30-3910 个版本 · 10 已摘要
v1.0.39OpenTelemetry 添加活跃时间指标
- 新增 Active Time 指标用于 OpenTelemetry 日志统计
## 1.0.39 - New Active Time metric in OpenTelemetry logging
v1.0.38正式发布 Hooks 功能
- 发布 Hook 功能,支持自动化工作流触发
## 1.0.38 - Released hooks. Special thanks to community input in https://github.com/anthropics/claude-code/issues/712. Docs: https://code.claude.com/docs/en/hooks
v1.0.37移除代理授权头设置
破坏性变化
- 移除通过 ANTHROPIC_AUTH_TOKEN 或 apiKeyHelper 设置 Proxy-Authorization 头的能力
## 1.0.37 - Remove ability to set `Proxy-Authorization` header via ANTHROPIC_AUTH_TOKEN or apiKeyHelper
v1.0.36网页搜索增强与 MCP 修复
- 网页搜索现在支持时间感知,考虑当前日期
- 修复 stdio MCP 服务器退出时未正确终止的问题
## 1.0.36 - Web search now takes today's date into context - Fixed a bug where stdio MCP servers were not terminating properly on exit
v1.0.35支持 MCP OAuth 服务发现
- 新增 MCP OAuth Authorization Server 自动发现支持
## 1.0.35 - Added support for MCP OAuth Authorization Server discovery
v1.0.34修复内存泄漏问题
- 修复导致 MaxListenersExceededWarning 的内存泄漏
## 1.0.34 - Fixed a memory leak causing a MaxListenersExceededWarning message to appear
v1.0.33日志增强与编辑撤销功能
- 日志功能新增 Session ID 支持
- 提示输入支持撤销功能(Ctrl+Z 和 vim u 命令)
- 优化计划模式
## 1.0.33 - Improved logging functionality with session ID support - Added prompt input undo functionality (Ctrl+Z and vim 'u' command) - Improvements to plan mode
v1.0.32litellm 配置与登录优化
- 更新 litellm loopback 配置
- 新增 forceLoginMethod 设置用于跳过登录选择屏幕
## 1.0.32 - Updated loopback config for litellm - Added forceLoginMethod setting to bypass login selection screen
v1.0.31修复无效JSON配置重置问题
- 修复 ~/.claude.json 包含无效 JSON 时被重置的问题
## 1.0.31 - Fixed a bug where ~/.claude.json would get reset when file contained invalid JSON
v1.0.30支持自定义斜杠命令和增强文件操作
- 自定义斜杠命令:运行 bash 输出、@-mention 文件、启用思考模式
- 改进文件路径自动完成,支持文件名匹配
- Ctrl-r 模式添加时间戳,修复 Ctrl-c 处理
- 增强 jq 正则表达式支持复杂过滤
## 1.0.30 - Custom slash commands: Run bash output, @-mention files, enable thinking with thinking keywords - Improved file path autocomplete with filename matching - Added timestamps in Ctrl-r mode and fixed Ctrl-c handling - Enhanced jq regex support for complex filters with pipes and select
v1.0.20-298 个版本 · 8 已摘要
v1.0.29改进CJK字符导航和渲染支持
- 改进光标导航和渲染中的 CJK 字符支持
## 1.0.29 - Improved CJK character support in cursor navigation and rendering
v1.0.28多项修复和性能优化
- 修复斜杠命令在历史导航中的选择器显示
- 上传前自动调整图片大小,避免 API 限制
- 添加 XDG_CONFIG_HOME 配置目录支持
- 性能优化和 OpenTelemetry 日志增强
## 1.0.28 - Slash commands: Fix selector display during history navigation - Resizes images before upload to prevent API size limit errors - Added XDG_CONFIG_HOME support to configuration directory - Performance optimizations for memory usage - New attributes (terminal.type, language) in OpenTelemetry logging
v1.0.27MCP 服务器能力扩展
- 支持流式 HTTP MCP 服务器
- 远程 MCP 服务器(SSE 和 HTTP)支持 OAuth
- MCP 资源支持 @-mention
- /resume 命令支持对话间切换
## 1.0.27 - Streamable HTTP MCP servers are now supported - Remote MCP servers (SSE and HTTP) now support OAuth - MCP resources can now be @-mentioned - /resume slash command to switch conversations within Claude Code
v1.0.25斜杠命令和搜索可靠性改进
- 斜杠命令改进:"project" 和 "user" 前缀移至描述
- 改进斜杠命令发现的可靠性
- 改进 Ghostty 支持
- 提升网络搜索可靠性
## 1.0.25 - Slash commands: moved "project" and "user" prefixes to descriptions - Slash commands: improved reliability for command discovery - Improved support for Ghostty - Improved web search reliability
v1.0.24改进MCP输出和设置合并
- 改进 /mcp 命令输出
- 修复设置数组被覆盖而非合并的问题
## 1.0.24 - Improved /mcp output - Fixed a bug where settings arrays got overwritten instead of merged
v1.0.23发布TypeScript和Python SDK
- 发布 TypeScript SDK:import @anthropic-ai/claude-code
- 发布 Python SDK:pip install claude-code-sdk
## 1.0.23 - Released TypeScript SDK: import @anthropic-ai/claude-code to get started - Released Python SDK: pip install claude-code-sdk to get started
v1.0.22SDK 成本字段重命名
- total_cost 重命名为 total_cost_usd
破坏性变化
- SDK 接口变化,total_cost 字段已移除
## 1.0.22 - SDK: Renamed `total_cost` to `total_cost_usd`
v1.0.21文件编辑与 MCP 稳定性改进
- 改进制表符缩进文件编辑
- 修复 tool_use 未匹配 tool_result 错误
- 修复 MCP 进程退出后泄漏
## 1.0.21 - Improved editing of files with tab-based indentation - Fix for tool_use without matching tool_result errors - Fixed a bug where stdio MCP server processes would linger after quitting Claude Code
v1.0.10-194 个版本 · 4 已摘要
v1.0.18CLI 和 MCP 功能大幅增强
- 新增 --add-dir 参数支持多工作目录
- 支持无需 -p 标志的流式输入
- MCP 认证改进与 SSE 自动重连
- 启动和会话性能优化
## 1.0.18 - Added --add-dir CLI argument for specifying additional working directories - Added streaming input support without require -p flag - Improved startup performance and session storage performance - Added CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR environment variable to freeze working directory for bash commands - Added detailed MCP server tools display (/mcp) - MCP authentication and permission improvements - Added auto-reconnection for MCP SSE connections on disconnect - Fixed issue where pasted content was lost when dialogs appeared
v1.0.17-p 模式和稳定性提升
- -p 模式现发送子任务消息(parent_tool_use_id)
- 修复 VS Code diff 工具重复调用崩溃
- 更新进程名称为 claude
## 1.0.17 - We now emit messages from sub-tasks in -p mode (look for the parent_tool_use_id property) - Fixed crashes when the VS Code diff tool is invoked multiple times quickly - MCP server list UI improvements - Update Claude Code process title to display "claude" instead of "node"
v1.0.11订阅和认证支持扩展
- 支持 Claude Pro 订阅
- 新增 /upgrade 命令切换到 Claude Max
- 改进 API 密钥和外部令牌认证 UI
## 1.0.11 - Claude Code can now also be used with a Claude Pro subscription - Added /upgrade for smoother switching to Claude Max plans - Improved UI for authentication from API keys and Bedrock/Vertex/external auth tokens - Improved shell configuration error handling - Improved todo list handling during compaction
v1.0.10Markdown 表格和性能优化
- 新增 Markdown 表格支持
- 流式性能提升
## 1.0.10 - Added markdown table support - Improved streaming performance
v1.0.0-96 个版本 · 6 已摘要
v1.0.8区域配置和超时处理修复
- 修复 Vertex AI 地区回退配置
- 修复 MCP_TIMEOUT/MCP_TOOL_TIMEOUT 边界情况
- 修复搜索工具不必要的权限请求
- 支持非英文语言思考触发
## 1.0.8 - Fixed Vertex AI region fallback when using CLOUD_ML_REGION - Increased default otel interval from 1s -> 5s - Fixed edge cases where MCP_TIMEOUT and MCP_TOOL_TIMEOUT weren't being respected - Fixed a regression where search tools unnecessarily asked for permissions - Added support for triggering thinking non-English languages - Improved compacting UI
v1.0.7配置系统和权限管理重构
- /allowed-tools 重命名为 /permissions
- 配置迁移至 settings.json
- 弃用旧的 claude 配置命令
破坏性变化
- /allowed-tools 命令改名为 /permissions
- 配置从 .claude.json 迁移至 settings.json
## 1.0.7 - Renamed /allowed-tools -> /permissions - Migrated allowedTools and ignorePatterns from .claude.json -> settings.json - Deprecated claude config commands in favor of editing settings.json - Fixed a bug where --dangerously-skip-permissions sometimes didn't work in --print mode - Improved error handling for /install-github-app - Bugfixes, UI polish, and tool reliability improvements
v1.0.6编辑可靠性和权限提示优化
- 改进制表符缩进文件的编辑可靠性
- 减少不必要的工具权限提示
- 添加符号链接在 @file 类型提示中的支持
## 1.0.6 - Improved edit reliability for tab-indented files - Respect CLAUDE_CONFIG_DIR everywhere - Reduced unnecessary tool permission prompts - Added support for symlinks in @file typeahead - Bugfixes, UI polish, and tool reliability improvements
v1.0.4MCP 工具错误解析修复
- 修复 MCP 工具错误解析不正确的问题
## 1.0.4 - Fixed a bug where MCP tool errors weren't being parsed correctly
v1.0.1新增思考模式控制和模型显示优化
- 新增 DISABLE_INTERLEAVED_THINKING 环境变量禁用交错思考
- 改进模型引用显示提供商特定名称
- 更新文档链接和 OAuth 流程说明
## 1.0.1 - Added `DISABLE_INTERLEAVED_THINKING` to give users the option to opt out of interleaved thinking. - Improved model references to show provider-specific names (Sonnet 3.7 for Bedrock, Sonnet 4 for Console) - Updated documentation links and OAuth process descriptions
v1.0.0Claude Code 正式版发布
- Claude Code 正式上线
- 引入 Sonnet 4 和 Opus 4 模型
## 1.0.0 - Claude Code is now generally available - Introducing Sonnet 4 and Opus 4 models
v0.2.120-1291 个版本 · 1 已摘要
v0.2.125Bedrock ARN 格式和日志命令更新
- Bedrock ARN 不再需要转义斜杠
- 日志调试改用 ANTHROPIC_LOG=debug
破坏性变化
- Bedrock ARN 格式:斜杠从 %2F 改为 /
- DEBUG=true 已移除,改用 ANTHROPIC_LOG=debug
## 0.2.125 - Breaking change: Bedrock ARN passed to `ANTHROPIC_MODEL` or `ANTHROPIC_SMALL_FAST_MODEL` should no longer contain an escaped slash (specify `/` instead of `%2F`) - Removed `DEBUG=true` in favor of `ANTHROPIC_LOG=debug`, to log all requests
v0.2.110-1191 个版本 · 1 已摘要
v0.2.117JSON 输出格式更新和调试配置扩展
- 新增 settings.cleanupPeriodDays 配置项
- 新增 CLAUDE_CODE_API_KEY_HELPER_TTL_MS 环境变量
- 新增 --debug 模式
破坏性变化
- --print JSON 输出格式变更为嵌套消息对象
## 0.2.117 - Breaking change: --print JSON output now returns nested message objects, for forwards-compatibility as we introduce new metadata fields - Introduced settings.cleanupPeriodDays - Introduced CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var - Introduced --debug mode
v0.2.100-1096 个版本 · 6 已摘要
v0.2.108实时消息指导和超时配置新增
- 支持在工作时发送消息进行实时引导
- 新增 BASH_DEFAULT_TIMEOUT_MS 和 BASH_MAX_TIMEOUT_MS 超时配置
- 修复 -p 模式下思考功能不工作的问题
破坏性变化
- MCP 向导界面已弃用,改用其他 MCP 命令
## 0.2.108 - You can now send messages to Claude while it works to steer Claude in real-time - Introduced BASH_DEFAULT_TIMEOUT_MS and BASH_MAX_TIMEOUT_MS env vars - Fixed a bug where thinking was not working in -p mode - Fixed a regression in /cost reporting - Deprecated MCP wizard interface in favor of other MCP commands - Lots of other bugfixes and improvements
v0.2.107CLAUDE.md 支持导入其他文件
- CLAUDE.md 现可导入其他文件,使用 @path/to/file.md 语法
## 0.2.107 - CLAUDE.md files can now import other files. Add @path/to/file.md to ./CLAUDE.md to load additional files on launch
v0.2.106MCP 配置增强与权限提示修复
- MCP SSE 服务器配置支持自定义 Header
- 修复 MCP 权限提示显示不一致的问题
## 0.2.106 - MCP SSE server configs can now specify custom headers - Fixed a bug where MCP permission prompt didn't always show correctly
v0.2.105网络搜索功能上线
- 支持网络搜索功能
- status 命令聚合系统与账户状态
- 新增 Vim 单词移动快捷键
- 优化启动、任务工具和文件编辑延迟
## 0.2.105 - Claude can now search the web - Moved system & account status to /status - Added word movement keybindings for Vim - Improved latency for startup, todo tool, and file edits
v0.2.102思考可靠性与大块内容粘贴
- 提升思考触发可靠性
- 提升图片和文件夹 @mention 可靠性
- 支持单次提示粘贴多个大块内容
## 0.2.102 - Improved thinking triggering reliability - Improved @mention reliability for images and folders - You can now paste multiple large chunks into one prompt
v0.2.100堆栈溢出修复与数据库可选化
- 修复堆栈溢出导致的崩溃
- 数据库存储可选化,缺少 DB 时禁用 --continue 和 --resume
破坏性变化
- 缺少数据库支持将禁用会话续继功能
## 0.2.100 - Fixed a crash caused by a stack overflow error - Made db storage optional; missing db support disables --continue and --resume
v0.2.90-993 个版本 · 3 已摘要
v0.2.98自动压缩重复运行修复
- 修复自动压缩运行两次的问题
## 0.2.98 - Fixed an issue where auto-compact was running twice
v0.2.96支持 Claude Max 订阅
- 现已支持 Claude Max 订阅使用
## 0.2.96 - Claude Code can now also be used with a Claude Max subscription (https://claude.ai/upgrade)
v0.2.93会话续继与任务列表功能
- 支持 claude --continue 和 --resume 续继会话
- 新增待办列表功能助力任务追踪
## 0.2.93 - Resume conversations from where you left off from with "claude --continue" and "claude --resume" - Claude now has access to a Todo list that helps it stay on track and be more organized
v0.2.80-891 个版本 · 1 已摘要
v0.2.82工具命名规范化与禁用开关
- 新增 --disallowedTools 参数支持
- 工具命名统一化:LSTool → LS、View → Read 等
破坏性变化
- 工具命名变更:LSTool、View 等已重命名
## 0.2.82 - Added support for --disallowedTools - Renamed tools for consistency: LSTool -> LS, View -> Read, etc.
v0.2.70-794 个版本 · 4 已摘要
v0.2.75消息队列与文件上下文功能
- 工作中按Enter排队输入多条消息
- 拖拽或粘贴图片直接到提示
- @提及文件添加上下文
- 一次性运行MCP服务器,改进文件名补全
## 0.2.75 - Hit Enter to queue up additional messages while Claude is working - Drag in or copy/paste image files directly into the prompt - @-mention files to directly add them to context - Run one-off MCP servers with `claude --mcp-config <path-to-file>` - Improved performance for filename auto-complete
v0.2.74Task工具功能扩展
- Task工具支持文件写入和bash命令执行
- 动态API密钥支持刷新,5分钟有效期
## 0.2.74 - Added support for refreshing dynamically generated API keys (via apiKeyHelper), with a 5 minute TTL - Task tool can now perform writes and run bash commands
v0.2.72提示器信息增强
- 提示器显示已加载tokens和工具使用统计
## 0.2.72 - Updated spinner to indicate tokens loaded and tool usage
v0.2.70网络能力和交互改进
- Claude可使用curl等网络命令
- 支持并行运行多个网络查询
- Auto-accept模式可按ESC立即中断
## 0.2.70 - Network commands like curl are now available for Claude to use - Claude can now run multiple web queries in parallel - Pressing ESC once immediately interrupts Claude in Auto-accept mode
v0.2.60-695 个版本 · 5 已摘要
v0.2.69UI和输出显示修复
- 修复Select组件UI故障
- 改进终端输出文本截断逻辑
## 0.2.69 - Fixed UI glitches with improved Select component behavior - Enhanced terminal output display with better text truncation logic
v0.2.67权限规则持久化
- 共享项目权限规则支持保存到.claude/settings.json
## 0.2.67 - Shared project permission rules can be saved in .claude/settings.json
v0.2.66Print模式和粘贴功能修复
- Print模式支持--output-format=stream-json流式输出
- 修复粘贴意外触发memory或bash模式
## 0.2.66 - Print mode (-p) now supports streaming output via --output-format=stream-json - Fixed issue where pasting could trigger memory or bash mode unexpectedly
v0.2.63MCP工具加载问题修复
- 修复MCP工具重复加载导致的调用错误
## 0.2.63 - Fixed an issue where MCP tools were loaded twice, which caused tool call errors
v0.2.61菜单快捷键支持
- 菜单导航支持 vim 风格 (j/k) 和 bash/emacs 快捷键 (Ctrl+n/p)
- 增强图像检测,提升粘贴功能可靠性
- 修复 ESC 键导致对话历史选择器崩溃
## 0.2.61 - Navigate menus with vim-style keys (j/k) or bash/emacs shortcuts (Ctrl+n/p) for faster interaction - Enhanced image detection for more reliable clipboard paste functionality - Fixed an issue where ESC key could crash the conversation history selector
v0.2.50-594 个版本 · 4 已摘要
v0.2.59图片粘贴功能
- 支持直接复制粘贴图片到提示词
- 改进 bash 和 fetch 工具的进度指示
- 修复非交互模式 (-p) 的问题
## 0.2.59 - Copy+paste images directly into your prompt - Improved progress indicators for bash and fetch tools - Bugfixes for non-interactive mode (-p)
v0.2.54Memory快捷操作
- 输入 '#' 快速添加内容到 Memory
- 按 Ctrl+r 查看长工具结果的完整输出
- 增加 MCP SSE 传输支持
## 0.2.54 - Quickly add to Memory by starting your message with '#' - Press ctrl+r to see full output for long tool results - Added support for MCP SSE transport
v0.2.53网页获取工具
- 新增 Web fetch 工具,可查看粘贴的 URL
## 0.2.53 - New web fetch tool lets Claude view URLs that you paste in - Fixed a bug with JPEG detection
v0.2.50MCP项目级作用域
- 新增 MCP "project" 作用域,支持在 .mcp.json 中配置 MCP 服务器
## 0.2.50 - New MCP "project" scope now allows you to add MCP servers to .mcp.json files and commit them to your repository
v0.2.40-494 个版本 · 4 已摘要
v0.2.49MCP作用域重命名
- MCP 作用域重命名:"project" 改为 "local","global" 改为 "user"
破坏性变化
- 现有 MCP 配置中的作用域名称需要更新
## 0.2.49 - Previous MCP server scopes have been renamed: previous "project" scope is now "local" and "global" scope is now "user"
v0.2.47自动补全和压缩
- Tab 键自动补全文件和文件夹名称
- Shift+Tab 切换文件编辑自动接受
- 自动对话压缩实现无限对话长度
## 0.2.47 - Press Tab to auto-complete file and folder names - Press Shift + Tab to toggle auto-accept for file edits - Automatic conversation compaction for infinite conversation length (toggle with /config)
v0.2.44思考模式计划
- 输入 'think'、'think harder' 或 'ultrathink' 触发思考模式制定计划
## 0.2.44 - Ask Claude to make a plan with thinking mode: just say 'think' or 'think harder' or even 'ultrathink'
v0.2.41MCP 服务器启动性能改进
- 支持通过 MCP_TIMEOUT 环境变量配置服务器启动超时
- MCP 服务器启动不再阻塞应用启动
## 0.2.41 - MCP server startup timeout can now be configured via MCP_TIMEOUT environment variable - MCP server startup no longer blocks the app from starting up
v0.2.30-396 个版本 · 6 已摘要
v0.2.37/release-notes 命令和配置增强
- 新增 /release-notes 命令随时查看发布说明
- claude config add/remove 支持逗号或空格分隔的多个值
## 0.2.37 - New /release-notes command lets you view release notes at any time - `claude config add/remove` commands now accept multiple values separated by commas or spaces
v0.2.36MCP 服务器配置更灵活
- 支持从 Claude Desktop 导入 MCP 服务器
- 支持使用 JSON 字符串添加 MCP 服务器
## 0.2.36 - Import MCP servers from Claude Desktop with `claude mcp add-from-claude-desktop` - Add MCP servers as JSON strings with `claude mcp add-json <n> <json>`
v0.2.34支持 Vim 快捷键绑定
- 文本输入支持 Vim 快捷键,通过 /vim 或 /config 启用
## 0.2.34 - Vim bindings for text input - enable with /vim or /config
v0.2.32MCP 交互式配置向导
- 新增交互式 MCP 配置向导:运行 claude mcp add
- 修复 PersistentShell 相关问题
## 0.2.32 - Interactive MCP setup wizard: Run "claude mcp add" to add MCP servers with a step-by-step interface - Fix for some PersistentShell issues
v0.2.31自定义命令和 MCP 调试支持
- .claude/commands/ 中的 Markdown 文件可作为自定义斜杠命令
- 新增 --mcp-debug 标志用于调试 MCP 服务器错误
## 0.2.31 - Custom slash commands: Markdown files in .claude/commands/ directories now appear as custom slash commands to insert prompts into your conversation - MCP debug mode: Run with --mcp-debug flag to get more information about MCP server errors
v0.2.30ANSI 主题和命令参数修复
- 新增 ANSI 颜色主题以改进终端兼容性
- 修复斜杠命令参数传递问题
- Mac 版本:API 密钥现存储到 macOS Keychain
## 0.2.30 - Added ANSI color theme for better terminal compatibility - Fixed issue where slash command arguments weren't being sent properly - (Mac-only) API keys are now stored in macOS Keychain
v0.2.20-292 个版本 · 2 已摘要
v0.2.26工具权限管理和 Diff 显示优化
- 新增 /approved-tools 命令管理工具权限
- 词级 diff 显示提高代码可读性
- 斜杠命令支持模糊匹配
## 0.2.26 - New /approved-tools command for managing tool permissions - Word-level diff display for improved code readability - Fuzzy matching for slash commands
v0.2.21命令补全支持模糊匹配
- 输入 /commands 时支持模糊匹配,快速搜索并执行所需操作
## 0.2.21 - Fuzzy matching for /commands