fix(docs): fix mode count and update plan example in approval-mode docs

- Fix "three distinct permission modes" → "four" (Plan was always listed)
- Update refactor example to use /plan command instead of /approval-mode
- Fix grammar in example description

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
wenshao 2026-04-06 18:31:52 +08:00
parent ee8fcc9230
commit 2e089cce71

View file

@ -1,6 +1,6 @@
# Approval Mode
Qwen Code offers three distinct permission modes that allow you to flexibly control how AI interacts with your code and system based on task complexity and risk level.
Qwen Code offers four distinct permission modes that allow you to flexibly control how AI interacts with your code and system based on task complexity and risk level.
## Permission Modes Comparison
@ -47,10 +47,10 @@ The `/plan` command provides a quick shortcut for entering and exiting Plan Mode
```bash
/plan # Enter plan mode
/plan refactor the auth module # Enter plan mode and start planning
/plan execute # Exit plan mode and start executing
/plan execute # Exit plan mode, restore previous mode
```
When you exit plan mode with `/plan execute`, your previous approval mode is automatically restored (e.g., if you were in Auto-Edit before entering Plan Mode, you'll return to Auto-Edit).
When you exit Plan Mode with `/plan execute`, your previous approval mode is automatically restored (e.g., if you were in Auto-Edit before entering Plan Mode, you'll return to Auto-Edit).
**Start a new session in Plan Mode**
@ -71,14 +71,10 @@ qwen --prompt "What is machine learning?"
### Example: Planning a complex refactor
```bash
/approval-mode plan
/plan I need to refactor our authentication system to use OAuth2. Create a detailed migration plan.
```
```
I need to refactor our authentication system to use OAuth2. Create a detailed migration plan.
```
Qwen Code analyzes the current implementation and create a comprehensive plan. Refine with follow-ups:
Qwen Code enters Plan Mode and analyzes the current implementation to create a comprehensive plan. Refine with follow-ups:
```
What about backward compatibility?
@ -247,7 +243,7 @@ qwen --prompt "Run the test suite, fix all failing tests, then commit changes"
### Keyboard Shortcut Switching
During a Qwen Code session, use **Shift+Tab** (or **Tab** on Windows) to quickly cycle through the three modes:
During a Qwen Code session, use **Shift+Tab** (or **Tab** on Windows) to quickly cycle through the four modes:
```
Default Mode → Auto-Edit Mode → YOLO Mode → Plan Mode → Default Mode