Claude Code v2.1.236: New Default Model Env Var, Sandbox Fixes, and More

✍️ OpenClawRadar📅 Published: August 20, 2026🔗 Source
Ad

Claude Code v2.1.236 is out, focusing on developer workflow improvements and critical bug fixes. Key additions include a new environment variable for default model selection, cross-session idle notifications, and tighter macOS sandbox behavior.

New ANTHROPIC_DEFAULT_MODEL Environment Variable

You can now set ANTHROPIC_DEFAULT_MODEL to define the starting model for new sessions. Unlike ANTHROPIC_MODEL, a /model selection overrides this default and persists across restarts. This gives teams more flexible control over model defaults per environment without locking users in.

Cross-Session Idle Notifications

The SendMessage API now supports notify_when_idle on macOS and Linux. It lets a Claude Code session request another local session to send a one-shot notice when it next goes idle. This is opt-in and requires no polling, useful for orchestrating background tasks that depend on another session's state.

Sandbox Improvements on macOS

On macOS, wildcard read-deny rules (e.g., **/.env) now correctly take precedence inside allowed read regions. The rules also cover directory contents and can't be bypassed by renaming the file. This strengthens security for sandboxed file access.

Ad

Notable Fixes

This release fixes several regressions from 2.1.229 onward, including:

  • Clipboard copy, background housekeeping, background sessions, and local MCP logs breaking when the working directory was deleted.
  • Fullscreen renderer failing permanently after a single bad start—now falls back to the classic renderer.
  • /model picker rendering taller than the terminal—now scrolls within the window height.
  • SendMessage calls being rejected due to a malformed closing tag.
  • Unhandled promise rejections when subprocesses like powershell.exe fail on WSL with Windows interop disabled (2.1.234 regression).

Improved Auto Mode and Other Enhancements

Auto mode now treats Monitor allow rules like Bash commands when active, and the classifier uses consistent defaults across Bedrock, Vertex AI, Foundry, and telemetry-disabled setups. Git status checks can no longer be fooled by status.showUntrackedFiles=no. Other changes:

  • /goal sessions now check in after 30 minutes (then 1h, 2h) when idle behind background work.
  • /usage shows usage-credits spend for Team/Enterprise members.
  • SIGTERM in print/SDK mode no longer records interrupted turns or synthetic tool denials.
  • Slash-command typos report errors instead of fuzzy matching.
  • Session recaps capped at 400 characters to prevent runaway output.

📖 Read the full source: GitHub Claude-Code

Ad

👀 See Also