Overview
The/bug command opens your browser to submit a bug report with automatically collected system information. This helps the Qwen Code team diagnose and fix issues more efficiently.
Usage
Basic Usage
With Description
What It Does
When you run/bug, the command:
- Collects System Info: Gathers diagnostic information
- Opens Browser: Launches your default browser
- Pre-fills Form: Populates the GitHub issue template
- Protects Privacy: Only includes non-sensitive data
Collected Information
The bug command automatically includes:System Information
Configuration
Runtime Details
Recent Errors (if any)
Bug Report Process
Step 1: Run the Command
Step 2: Browser Opens
Your browser opens to:Step 3: Complete the Form
The form is pre-filled with:- Title: Your description (if provided)
- System Information: Automatically collected data
- Steps to Reproduce: Empty for you to fill
- Expected Behavior: Empty for you to fill
- Actual Behavior: Empty for you to fill
Step 4: Add Details
Enhance the report with:- Detailed steps to reproduce
- Expected vs actual behavior
- Screenshots if relevant
- Error messages from terminal
Step 5: Submit
Click Submit new issue to create the bug report.Custom Bug Report URL
Configure a custom bug reporting endpoint:{title}: Bug description from command{info}: System information
Good Bug Reports
Include Reproduction Steps
Include Error Messages
Include Context
Common Issues to Report
Crashes
Tool Failures
Authentication Issues
Performance Problems
UI Glitches
Privacy and Security
What’s Included
✅ Operating system and version✅ Node.js version
✅ CLI version
✅ Configuration settings (model, provider)
✅ Error types and stack traces
✅ Session metadata (duration, token counts)
What’s Excluded
❌ API keys or credentials❌ Conversation history
❌ File contents
❌ Personal information
❌ Project source code
❌ Environment variables
Review Before Submitting
Always review the collected information:Alternative Reporting Methods
Manual GitHub Issue
Create an issue directly:- Visit GitHub Issues
- Click “New Issue”
- Select “Bug Report” template
- Fill in all sections
- Submit
Discussion Forums
For questions rather than bugs:- Visit GitHub Discussions
- Create a new discussion
- Choose “Q&A” category
Community Support
Get help from the community:- Discord: Join the server
- Twitter: @QwenLM
Debug Mode
For more detailed bug reports, run in debug mode:- Verbose logging
- Detailed error traces
- Performance metrics
- Internal state information
System Information Details
The/bug command collects:
Operating System
Runtime Environment
Terminal Information
Configuration
Feature Requests
For feature requests, use a different template:Follow-Up
After submitting:- Watch the Issue: Get notifications on updates
- Respond to Questions: The team may ask for clarification
- Test Fixes: Try beta versions with bug fixes
- Confirm Resolution: Report if the fix works
Troubleshooting
Browser Doesn’t Open
If the browser fails to open:Custom Browser
Set your preferred browser:WSL/Remote Systems
On WSL or remote systems:Best Practices
Be Specific
Be Specific
Provide clear, specific descriptions:❌ Bad:
✅ Good:
/bug "It doesn't work"✅ Good:
/bug "Edit tool fails with 'EACCES' on Windows when editing package.json"Include Versions
Include Versions
The bug command includes versions automatically, but mention if you tried multiple:
Minimal Reproduction
Minimal Reproduction
Find the smallest example that reproduces the issue:
Search First
Search First
Before reporting, search existing issues:Your issue might already be reported.
See Also
Help Command
Get help and documentation
Debug Mode
Advanced debugging techniques
Community
Get help from the community
Contributing
Contribute to Qwen Code
