Change8

v2.1.126

Claude Code
5 features21 fixes5 improvementsbedrockclimcpsdkvertexvscode

Summary

This release introduces a powerful new `claude project purge` command for cleaning up project state and enhances model discovery by supporting Anthropic-compatible gateways in the model picker. Several critical bugs related to OAuth timeouts, image pasting, and stream idle errors have been resolved, improving overall stability and login reliability.

New Features

  • Added `claude project purge [path]` command to delete all Claude Code state for a project, supporting dry-run, interactive, and all-project deletion.
  • Enabled listing of models from a gateway's `/v1/models` endpoint in the `/model` picker when `ANTHROPIC_BASE_URL` is set to an Anthropic-compatible gateway.
  • Enabled bypassing permission prompts for writes to protected paths like `.claude/`, `.git/`, and `.vscode/` using the `--dangerously-skip-permissions` flag.
  • Enabled `claude auth login` to accept the OAuth code pasted directly into the terminal when browser callbacks fail (e.g., in WSL2, SSH, or containers).
  • Enabled Claude to treat PowerShell as the primary shell instead of defaulting to Bash when the PowerShell tool is enabled on Windows.

Bug Fixes

  • Fixed crash when pasting an image larger than 2000px by automatically downscaling images on paste and retrying requests for oversized images in history.
  • Fixed login screen being shown instead of guidance when encountering "OAuth not allowed for organization" errors; now directs users to contact their admin.
  • Fixed OAuth login failing due to timeouts on slow/proxied connections, IPv6-only devcontainers, and when the browser callback cannot reach localhost.
  • Fixed a rare race condition where a concurrent credential write could incorrectly clear a valid OAuth refresh token.
  • Fixed API retry countdown sticking at "0s" instead of continuing to count down between attempts.
  • Fixed "Stream idle timeout" error occurring after waking a 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 finished thinking but displayed no output after a sequence of empty turns.
  • Fixed overly fast trackpad scrolling behavior within Cursor and VS Code 1.92–1.104 integrated terminals.
  • Fixed claude.ai MCP connectors being suppressed by manual servers stuck in a needs-auth state.
  • Fixed Japanese, Korean, and Chinese text rendering as garbled characters on Windows when using no-flicker mode.
  • Fixed `Ctrl+L` clearing the prompt input; it now correctly forces a screen redraw, matching readline behavior.
  • Fixed deferred tools (like WebSearch) not being available to skills using `context: fork` or other subagents on their initial turn.
  • Fixed plan-mode tools being unavailable in interactive sessions launched with `--channels`.
  • Fixed `/plugin` Uninstall command incorrectly reporting "Enabled" instead of "Uninstalled".
  • Fixed `/remote-control` retries appearing stuck on "connecting..."; each retry now displays its result.
  • Fixed Remote Control failure notification not showing the error reason for initial connection failures.
  • Fixed Windows clipboard writes exposing copied content in process command-line arguments visible to EDR/SIEM telemetry, and fixed issues with selections larger than 22KB not reaching the clipboard.
  • Fixed PowerShell tool mis-flagging bare `--` (e.g., `git diff -- file`) as the stop-parsing token `--%`.
  • Fixed Agent SDK hang when the model emitted a malformed tool name in a parallel tool call batch.
  • Fixed Security issue where `allowManagedDomainsOnly` / `allowManagedReadPathsOnly` were ignored when a higher-priority managed-settings source lacked a `sandbox` block.

Improvements

  • The spinner now turns red when a permission check stalls in Auto mode, clearly indicating a blockage instead of appearing to run normally.
  • Removed the per-file malware-assessment reminder in the Read tool that caused spurious refusals or commentary on legacy models.
  • Bounded the total size of file-modified reminders when a linter modifies many files simultaneously.
  • The `claude_code.skill_activated` OpenTelemetry event now includes an `invocation_trigger` attribute detailing how the skill was activated.
  • Improved detection of installed PowerShell 7 versions on Windows across various installation methods (Microsoft Store, MSI without PATH, .NET global tool).

Claude Code Documentation

Claude Code v2.1.126 - What's New - Change8