qwen-code/docs
DennisYu07 855a2b3d69
feat(auto-mode): add classifyAllShell setting to route all shell commands through classifier (#6040)
* feat(auto-mode): add classifyAllShell setting to route all shell commands through classifier

When autoMode.classifyAllShell is true, every shell command (including
read-only ones that would normally be auto-approved) is routed through
the auto-mode LLM classifier for safety review. Default false preserves
existing behavior.

Closes #6039

* fix(core): add classifyAllShell check to autoApproveCompatiblePendingTools

The third forceAutoReviewForAllow computation site in
autoApproveCompatiblePendingTools was missing the
shouldClassifyAllShellForAutoMode OR-branch, allowing shell commands
to bypass the classifier when classifyAllShell is enabled.

Addresses qwen-code-ci-bot critical review on PR #6040.

* fix(core): use optional chaining in shouldClassifyAllShellForAutoMode

Prevents TypeError when config.getAutoModeSettings() returns undefined
in tests or edge cases where AutoModeSettings is not initialized.

* docs(auto-mode): document classifyAllShell setting

Add new section explaining the classifyAllShell option, a tip in the
'How it works' overview, and a commented-out example in the approval-mode
configuration reference.

* fix(test): add missing getAutoModeSettings mock in AUTO denial counter reset test
2026-07-01 16:23:24 +08:00
..
design feat(daemon,sdk): resumable /acp session stream (Last-Event-ID) + opt-in SDK transports export (#5852) 2026-06-30 02:07:48 +00:00
developers feat(cli): Add daemon-managed channel worker for serve --channel (#6031) 2026-07-01 01:40:54 +00:00
e2e-tests feat(worktree): Phase D — startup --worktree flag + symlinkDirectories + PR refs (#4381) 2026-05-27 17:04:51 +08:00
plans feat(core)!: redesign auto-compaction thresholds with three-tier ladder (#4345) 2026-05-25 21:11:08 +08:00
superpowers feat(channel): add channel loop support (#6073) 2026-07-01 05:07:21 +00:00
users feat(auto-mode): add classifyAllShell setting to route all shell commands through classifier (#6040) 2026-07-01 16:23:24 +08:00
verification/abort-controller-refactor fix(core): stop AbortSignal listener leak in long sessions (MaxListenersExceededWarning) (#4366) 2026-05-26 14:21:49 +08:00
_meta.ts feat: refactor docs 2025-12-05 10:51:57 +08:00
declarative-agents-port.md feat(core): port declarative-agent mcpServers + hooks (CC 2.1.168 parity follow-up) (#4996) 2026-06-12 14:15:51 +08:00
index.md fix: lint issues 2025-12-19 15:52:11 +08:00
yaml-parser-replacement.md feat(core): port declarative-agent mcpServers + hooks (CC 2.1.168 parity follow-up) (#4996) 2026-06-12 14:15:51 +08:00