mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
When Bun runs under AI agent environments (Claude Code, Cursor, Replit, etc.), the elide-lines feature can confuse the assistant by hiding output. This change automatically disables elide-lines when AI agents are detected. The implementation uses the existing `Output.isAIAgent()` function which checks for: - AGENT=1 environment variable - CLAUDECODE environment variable (Claude Code) - REPL_ID environment variable (Replit) Users can still manually override this behavior by explicitly setting --elide-lines with any value. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>