Skip to content

docs(unstable-v2): require unique configId and groupId values - #2889

Merged
benbrandt merged 1 commit into
mainfrom
docs/v2-config-id-uniqueness
Nov 19, 2026
Merged

benbrandt merged 1 commit into
mainfrom
docs/v2-config-id-uniqueness

Conversation

@benbrandt

Copy link
Copy Markdown
Member

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:

  • configId was "Unique identifier for this configuration option", with no requirement and no scope.
  • groupId had no uniqueness rule.

session/set_config_option addresses an option by configId alone, so a list with duplicates is ambiguous.

Changes

  • configId: MUST be unique within configOptions.
  • groupId: each groupId MUST be unique within the option.
  • Schema descriptions: SessionConfigOption.configId and SessionConfigSelectGroup.groupId state the same rules. This regenerates schema/v2/schema.json, schema/v2/schema.unstable.json and both schema.mdx pages. 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.

  • Zed finds a config option by the first configId that matches, so a second option with the same ID cannot be reached.
  • Zed shows a group's name and does not read groupId.

Checks

  • Clippy, the tests, rustdoc, Prettier, cargo fmt and the spell check pass.
  • Regenerating the schema a second time gives no diff.
  • All links and anchors in the changed pages resolve.

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.
@benbrandt
benbrandt requested a review from a team as a code owner November 19, 2026 14:48
@benbrandt
benbrandt enabled auto-merge (squash) November 19, 2026 14:49
@benbrandt
benbrandt merged commit a30eeed into main Nov 19, 2026
13 checks passed
@benbrandt
benbrandt deleted the docs/v2-config-id-uniqueness branch November 19, 2026 14:53
@acp-release-bot acp-release-bot Bot mentioned this pull request Nov 19, 2026
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.

1 participant