- Move headless configuration to beginning of swarmCommand function
- Fix issue where headless mode was falling back to basic executor
- Ensure stream-json format is used for Claude compatibility
- Clean up debug console.log statements
- Support CI/CD and Docker environments with proper non-interactive flags
- Implement github-cli-safe.js with proper handling of special characters
- Use temporary files for body content to avoid shell interpretation
- Add timeout protection and proper process cleanup
- Prevent command substitution, backtick execution, and path errors
Fixes the 2-minute timeout issues when using gh commands with:
- Backticks in code examples
- Command substitution syntax like
- Directory paths and special shell characters
All GitHub CLI operations now safely handle complex content without
triggering shell interpretation or hanging processes.