Claude Code v2.1.81 fixes authentication and voice mode; adds bare mode for scripts
New Features
Bare Mode for Scripted Calls: The new --bare flag enables streamlined scripted -p calls by skipping hooks, LSP, plugin sync, and skill directory walks. This mode requires ANTHROPIC_API_KEY or an apiKeyHelper via --settings, with OAuth and keychain auth disabled and auto-memory fully disabled.
Channel-Based Permission Relay: Added --channels permission relay feature that allows channel servers declaring the permission capability to forward tool approval prompts to your phone, improving the approval workflow for distributed setups.
MCP OAuth Enhancements: Updated MCP OAuth to support Client ID Metadata Document (CIMD / SEP-991) for servers without Dynamic Client Registration, expanding compatibility with MCP server implementations.
Key Fixes
- Concurrent Session Auth: Fixed multiple concurrent Claude Code sessions requiring repeated re-authentication when one session refreshes its OAuth token
- Voice Mode Recovery: Fixed voice mode audio not recovering when the server silently drops the WebSocket connection, and resolved WebSocket failures caused by Cloudflare bot detection
- Error Reporting: Fixed voice mode silently swallowing retry failures and showing misleading "check your network" messages instead of actual errors
- Beta Header Handling: Fixed
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASnot suppressing the structured-outputs beta header, which was causing 400 errors on proxy gateways - Plugin & Permissions: Fixed plugin hooks blocking prompt submission when the plugin directory is deleted mid-session, and reduced unnecessary permission prompts for Bash commands containing dashes in strings
- Session Management: Improved worktree handling by resuming sessions that switch back to their original worktree; fixed Remote Control sessions showing generic titles
- Windows Compatibility: Fixed a crash on Node.js 18 and restored Windows PATH inheritance for Bash tool when using Git Bash (regression from v2.1.78)
UX Improvements
- Improved MCP read/search tool calls to collapse into a single "Queried {server}" line, expandable with Ctrl+O
- Enhanced
!bash mode discoverability with Claude now suggesting it when interactive commands are needed - Improved plugin freshness with ref-tracked plugins now re-cloning on every load to pick up upstream changes
- Changed plan mode to hide the "clear context" option by default (restorable via
"showClearContextOnPlanAccept": true) - Disabled line-by-line response streaming on Windows and WSL due to rendering issues