Skip to content

docs: document tools.disabled and tools.visible settings - #6641

Merged
wenshao merged 1 commit into
QwenLM:mainfrom
Nas01010101:docs/document-tools-disabled
Jul 10, 2026
Merged

wenshao merged 1 commit into
QwenLM:mainfrom
Nas01010101:docs/document-tools-disabled

Conversation

@Nas01010101

Copy link
Copy Markdown
Contributor

What this PR does

Adds the missing settings-reference rows for tools.disabled and tools.visible in docs/users/configuration/settings.md.

Why it's needed

Both settings are implemented and wired end to end (settings schema, normalizeDisabledTools.ts, and the ToolRegistry registration gate, which has test coverage in tool-registry.test.ts), but neither appears in the settings reference. Their deprecated siblings tools.core, tools.exclude, and tools.allowed are all documented, so users find the deprecated options and miss the live ones.

This matters in practice: tools.disabled already answers a recurring request. For example, #5970 asked for "an option to disable Plan Mode" so the model can never switch into plan mode on its own, and {"tools": {"disabled": ["enter_plan_mode"]}} does exactly that today. It just was not discoverable.

Reviewer Test Plan

How to verify

Docs-only change. Confirm the two new rows match the source of truth in packages/cli/src/config/settingsSchema.ts (the tools.disabled and tools.visible entries, including MergeStrategy.UNION) and the registration behavior in packages/core/src/tools/tool-registry.ts (isToolDisabled gate). Prettier was run via the repo pre-commit hook.

Evidence (Before & After)

N/A (docs table rows only).

Tested on

OS Status
🍏 macOS ✅
🪟 Windows N/A
🐧 Linux N/A

Both settings are implemented and wired end to end (settingsSchema.ts,
normalizeDisabledTools.ts, ToolRegistry registration gate) but were
missing from the settings reference, while their deprecated siblings
tools.core / tools.exclude / tools.allowed are documented.

In particular, tools.disabled already answers a recurring user request:
disabling enter_plan_mode entirely so the model can never switch into
plan mode on its own (QwenLM#5970). Documenting it makes that option
discoverable.

@wenshao wenshao left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found. LGTM! ✅

— qwen3.7-max via Qwen Code /review

@wenshao
wenshao added this pull request to the merge queue Jul 10, 2026
Merged via the queue into QwenLM:main with commit 32ddd7a Jul 10, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants