Skip to main content

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

This opens the bug report form with system information pre-filled.

With Description

This includes your description in the bug report title.

What It Does

When you run /bug, the command:
  1. Collects System Info: Gathers diagnostic information
  2. Opens Browser: Launches your default browser
  3. Pre-fills Form: Populates the GitHub issue template
  4. Protects Privacy: Only includes non-sensitive data

Collected Information

The bug command automatically includes:

System Information

Configuration

Runtime Details

Recent Errors (if any)

No code, API keys, or conversation content is included in bug reports. Only system and configuration information is collected.

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:
Placeholders:
  • {title}: Bug description from command
  • {info}: System information

Good Bug Reports

Include Reproduction Steps

Then in the form:

Include Error Messages

Include the full error:
Error: Failed to compress chat history at compressCommand (/usr/local/lib/node_modules/@qwen/cli/dist/commands/compress.js:45:11) at async runCommand (/usr/local/lib/node_modules/@qwen/cli/dist/cli.js:123:5)

Include Context

Provide 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:
  1. Visit GitHub Issues
  2. Click “New Issue”
  3. Select “Bug Report” template
  4. Fill in all sections
  5. Submit

Discussion Forums

For questions rather than bugs:
  1. Visit GitHub Discussions
  2. Create a new discussion
  3. Choose “Q&A” category

Community Support

Get help from the community:

Debug Mode

For more detailed bug reports, run in debug mode:
This provides:
  • Verbose logging
  • Detailed error traces
  • Performance metrics
  • Internal state information
Copy relevant debug output and include in your bug report.

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:
  1. Watch the Issue: Get notifications on updates
  2. Respond to Questions: The team may ask for clarification
  3. Test Fixes: Try beta versions with bug fixes
  4. Confirm Resolution: Report if the fix works

Troubleshooting

Browser Doesn’t Open

If the browser fails to open:
Copy the URL and open it manually.

Custom Browser

Set your preferred browser:

WSL/Remote Systems

On WSL or remote systems:

Best Practices

Provide clear, specific descriptions:❌ Bad: /bug "It doesn't work"
✅ Good: /bug "Edit tool fails with 'EACCES' on Windows when editing package.json"
The bug command includes versions automatically, but mention if you tried multiple:
Find the smallest example that reproduces the issue:
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