Claude Code v2.1.181 ships config syntax, sandbox Apple Events, and 30+ fixes
Claude Code `v2.1.181` adds `/config key=value` prompt syntax, an `CLAUDE_CLIENT_PRESENCE_FILE` env var for suppressing mobile push notifications, `sandbox.allowAppleEvents` on macOS, a Bun `1.4` runtime upgrade, and resolves over 30 bugs including startup regressions, file truncation on network drives, and unbounded subagent nesting.
Score breakdown
The release resolves a startup regression from `2.1.169`, file-corruption bugs on network and cloud-synced drives, and unbounded subagent nesting — all of which directly affected reliability in common development environments.
- 01New `/config key=value` prompt syntax sets any setting in interactive, `-p`, and Remote Control modes
- 02New `CLAUDE_CLIENT_PRESENCE_FILE` env var suppresses mobile push notifications when a marker file is present
- 03New `sandbox.allowAppleEvents` opt-in setting lets sandboxed commands send Apple Events on macOS
Claude Code `v2.1.181`, released on 2026-06-17 by ashwin-ant, introduces four notable additions. The `/config key=value` syntax (e.g., `/config thinking=false`) allows any setting to be changed directly from the prompt across interactive, `-p`, and Remote Control modes. A new `sandbox.allowAppleEvents` opt-in setting enables sandboxed commands to send Apple Events on macOS, and a new `CLAUDE_CLIENT_PRESENCE_FILE` environment variable — pointed at a marker file — suppresses mobile push notifications while the user is at the machine. The bundled Bun runtime was upgraded to `1.4`. UX improvements include line-by-line streaming of long paragraphs, auto-retry on API connection drops mid-thinking, subagent panel polish (idle agents auto-hide after 30 seconds, the list caps at 5 rows with scroll hints), and an updated MCP OAuth browser page that auto-closes on success.
The fix list is extensive. Startup-related fixes address a ~120ms-per-launch regression introduced in `2.1.169`, up-to-15-second blank terminal hangs on degraded networks, a `TypeError: Cannot read properties of null` crash from corrupted `.claude.json` entries, and a macOS TUI freeze (Ctrl+C unresponsive) when Spotlight is reindexing. File-system fixes resolve Write/Edit producing 0-byte or truncated files on network drives and cloud-synced folders, `ENOENT` errors when `~/.claude/settings.json` is a relative symlink under a symlinked `~/.claude`, and an `EEXIST` error on Windows/OneDrive when the agents directory already exists. Subagent fixes include foreground subagents now respecting the same 5-level depth limit as background subagents, corrected elapsed-time display for subagent "Thinking" durations, and subagents blocked on nested agents now showing "waiting" instead of a ticking timer. Additional fixes cover prompt caching on custom `ANTHROPIC_BASE_URL` and Foundry, AWS `awsCredentialExport` credential refresh loops, `/recap` and conversation forks using the wrong model after a switch, clipboard handling on Linux and in fullscreen mode, and several timezone and rendering issues.
Key facts
- 01New `/config key=value` prompt syntax sets any setting in interactive, `-p`, and Remote Control modes
- 02New `CLAUDE_CLIENT_PRESENCE_FILE` env var suppresses mobile push notifications when a marker file is present
- 03New `sandbox.allowAppleEvents` opt-in setting lets sandboxed commands send Apple Events on macOS
- 04Bundled Bun runtime upgraded to `1.4`
- 05Fixed ~120ms-per-launch startup regression introduced in `2.1.169`
- 06Fixed Write/Edit producing 0-byte or truncated files on network drives and cloud-synced folders
- 07Fixed foreground subagents spawning unbounded nested chains; they now respect the 5-level depth limit
Topics
Summary and scoring are generated automatically from the original article. We always link back to the publisher and never republish images or paywalled content. Last processed Jun 18, 2026 · 10:40 UTC. How this works →