mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-08-08 16:25:10 +00:00
* feat(cli): change default approval mode from default to auto The default approval mode required manual confirmation for every tool call, producing dozens of confirmation prompts per task. Auto mode uses a three-layer filter (workspace edits, read-only allowlist, LLM classifier) to auto-approve safe operations while still guarding risky ones. Untrusted folders are still forced to default mode for safety. Closes #6898 * fix(cli): keep manual approval in safe and bare modes Restricted modes (safe/bare) strip permissions, allowlists, MCP servers and hooks to provide a maximally restrictive session. The new AUTO default fallback was silently downgrading them to the LLM classifier, contradicting their lockdown intent. Restore DEFAULT (manual approval) for these modes while keeping AUTO as the default for normal sessions. Explicit --approval-mode and --yolo flags still take effect, since they are resolved before the fallback. * chore(cli): regenerate settings schema for auto default Regenerate the VS Code settings schema so the tools.approvalMode default matches the new auto value (fixes the "settings schema is up-to-date" CI check). Also add coverage for the serve-mode approval fallback when no approval mode is configured. * test(cli): update SettingsDialog snapshots for auto approval default The settings schema now defaults tools.approvalMode to auto, so the SettingsDialog renders "Auto" instead of "Ask permissions" for the Tool Approval Mode field. Regenerate the affected snapshots (10 updated). * test(core): pin DEFAULT baseline in agent-override tests These tests exercise createApprovalModeOverride isolation and the DEFAULT→AUTO rule strip/restore transitions, so they implicitly relied on the Config constructor defaulting to DEFAULT. Now that the default is AUTO, pin the baseline explicitly so the tests no longer depend on the constructor default. --------- Co-authored-by: pomelo.lcw <pomelo.lcw@alibaba-inc.com> |
||
|---|---|---|
| .. | ||
| channels | ||
| _meta.ts | ||
| approval-mode.md | ||
| arena.md | ||
| auto-mode.md | ||
| code-review.md | ||
| commands.md | ||
| computer-use.md | ||
| dual-output.md | ||
| followup-suggestions.md | ||
| headless.md | ||
| hooks.md | ||
| language.md | ||
| lsp.md | ||
| markdown-rendering.md | ||
| mcp.md | ||
| memory.md | ||
| sandbox.md | ||
| scheduled-tasks.md | ||
| skills.md | ||
| status-line.md | ||
| structured-output.md | ||
| sub-agents.md | ||
| tips.md | ||
| token-caching.md | ||
| tool-use-summaries.md | ||
| worktree.md | ||