Claude Code v2.1.181: New config syntax, macOS fixes, improved UI
This patch for Claude Code introduces a new in-prompt configuration syntax and enhances user experience with improved streaming and auto-retry mechanisms. It also addresses several critical bugs, particularly on macOS, related to Apple Events and startup performance. Users interacting with Claude Code will benefit from these stability and usability improvements, with no specific version prerequisites.
- →New `/config key=value` syntax for prompt-based settings
- →Opt-in `sandbox.allowAppleEvents` for macOS users
- →Suppress mobile push notifications with `CLAUDE_CLIENT_PRESENCE_FILE`
- →Improved long paragraph streaming and auto-retry
- →Refined subagent panel and OAuth browser page
Features (3) ›
- New `/config key=value` syntax for prompt-based settings
Users can now set any configuration option directly within the prompt using the `/config key=value` syntax, such as `/config thinking=false`. This feature is available in interactive mode, with the `-p` flag, and in Remote Control.
- Opt-in `sandbox.allowAppleEvents` for macOS users
A new `sandbox.allowAppleEvents` setting allows sandboxed commands to send Apple Events on macOS. This is an opt-in feature designed to enhance functionality for macOS users.
- Suppress mobile push notifications with `CLAUDE_CLIENT_PRESENCE_FILE`
The `CLAUDE_CLIENT_PRESENCE_FILE` environment variable allows users to suppress mobile push notifications by pointing to a marker file. This helps manage notifications while actively using the machine.
Enhancements (2) ›
- Improved long paragraph streaming and auto-retry
Claude Code now improves streaming of long paragraphs by displaying text line-by-line rather than waiting for a full line break. API connection drops during thinking are also automatically retried, preventing "Connection closed while thinking" errors.
- Refined subagent panel and OAuth browser page
The subagent panel now auto-hides idle agents after 30 seconds, limits rows to five with scroll hints, and displays keyboard hints. The MCP OAuth browser page has been updated to match Claude Code's visual style and closes automatically on success.
Fixes (1) ›
- Resolved macOS issues including Apple Events entitlement and startup speed
Multiple macOS-specific bugs have been fixed, including issues with `open`, `osascript`, and browser-based auth flows (error -600) by adding the Apple Events entitlement. A startup regression impacting fresh environments has also been resolved, preventing unnecessary delays for managed-settings fetches.
https://github.com/anthropics/claude-code/releases/tag/v2.1.181