Claude Code v2.1.22 Release Notes
Claude Code v2.1.22 fixes structured outputs for non-interactive mode, improving reliability for automated workflows and batch processing.
The Claude Code development team has released version 2.1.22, delivering an important fix that enhances the reliability of structured outputs when running in non-interactive mode. This targeted update addresses a key issue affecting users who rely on Claude Code for automated workflows and batch processing.
What’s New
Fixed Structured Outputs for Non-Interactive Mode
This release resolves an issue where structured outputs weren’t working correctly when Claude Code was run in non-interactive mode using the -p flag. This fix is particularly important for:
- Automated Scripts: Users running Claude Code in CI/CD pipelines or automated deployment scripts
- Batch Processing: Applications that process multiple requests without user interaction
- API Integrations: Services that integrate Claude Code into larger automation workflows
- Command-Line Tools: Scripts that rely on structured output formats for parsing and processing
The fix ensures that structured outputs maintain their expected format and reliability regardless of whether Claude Code is run interactively or in batch mode.
How to Update
To update to Claude Code v2.1.22:
- Check your current version with
claude-code --version - Update using your preferred package manager or download method
- Verify the installation with
claude-code --versionto confirm you’re running v2.1.22 - Test your non-interactive workflows to ensure the structured output fix resolves any previous issues