Repository navigation
docs: document tools.disabled and tools.visible settings - #6641
Merged
Merged
Conversation
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.
This was referenced Jul 10, 2026
wenshao
approved these changes
Jul 10, 2026
wenshao
left a comment
Collaborator
There was a problem hiding this comment.
No issues found. LGTM! ✅
— qwen3.7-max via Qwen Code /review
wenshao
added this pull request to the merge queue
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Adds the missing settings-reference rows for
tools.disabledandtools.visibleindocs/users/configuration/settings.md.Why it's needed
Both settings are implemented and wired end to end (settings schema,
normalizeDisabledTools.ts, and theToolRegistryregistration gate, which has test coverage intool-registry.test.ts), but neither appears in the settings reference. Their deprecated siblingstools.core,tools.exclude, andtools.allowedare all documented, so users find the deprecated options and miss the live ones.This matters in practice:
tools.disabledalready 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(thetools.disabledandtools.visibleentries, includingMergeStrategy.UNION) and the registration behavior inpackages/core/src/tools/tool-registry.ts(isToolDisabledgate). Prettier was run via the repo pre-commit hook.Evidence (Before & After)
N/A (docs table rows only).
Tested on