Repository navigation
docs(unstable-v2): require unique configId and groupId values - #2889
Merged
Merged
Conversation
The config options page called `configId` a "unique identifier" with no requirement and no scope, and gave `groupId` no uniqueness rule at all. `session/set_config_option` addresses an option by `configId` alone, so a list with duplicates is ambiguous. - Say that `configId` MUST be unique within `configOptions`. - Say that each `groupId` MUST be unique within the option. - State both in the schema descriptions.
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.
Summary
Select values, command names and permission options each carry an explicit MUST be unique. The config options page had none for the two IDs it defines:
configIdwas "Unique identifier for this configuration option", with no requirement and no scope.groupIdhad no uniqueness rule.session/set_config_optionaddresses an option byconfigIdalone, so a list with duplicates is ambiguous.Changes
configId: MUST be unique withinconfigOptions.groupId: eachgroupIdMUST be unique within the option.SessionConfigOption.configIdandSessionConfigSelectGroup.groupIdstate the same rules. This regeneratesschema/v2/schema.json,schema/v2/schema.unstable.jsonand bothschema.mdxpages. Only description text changes.The page changes are in the stable page and its
draft/copy.Both IDs were already described as unique identifiers, so this states the scope and the keyword and adds no new behavior.
Implementations
Checked on 2026-11-19 against the default branch of each repository.
configIdthat matches, so a second option with the same ID cannot be reached.nameand does not readgroupId.Checks
cargo fmtand the spell check pass.