Repository navigation
fix(console): a stored settings select, radio or multiselect value the setting no longer offers reads as "no longer available" - #37536
Merged
objectstack-fleet[bot] merged 7 commits intoNov 26, 2026
Conversation
…ons reads as no longer available Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
…ept; how to remove them by hand Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
…ns reads as no longer available Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
…t options reads as no longer available Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
Contributor
Author
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head ec4e914 · area s2-ai · 2026-11-26T12:41ZL1 checklist
Tier: S. Landing: ready + auto-merge by this stroke. Generated by Claude Code |
objectstack-fleet
Bot
deleted the
claude/issue-37480-settings-retired-option
branch
November 26, 2026 13:03
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.
Requested by Sales · project thread
Fixes #37480
Clause-②: no
Metadata-protocol: none
Ruling record for the card's second half: comment 7190223182 on #37480 (the maintainer chose B, 「维持现状,只写文档」: stored rows stay, the manual removal path is documented). No server code changes.
维护者速读
What changes
SettingsField.tsx, the closedselectarm withoutvalueDomain): when the stored value is non-empty and not among the field's currentoptions, the list gets one disabled item for that code, labelled with the new locale keyconsole.settingsView.selectValueRetired(VALUE (no longer available)). Radix shows the selected item's text, so the trigger now names the stored code instead of reading blank. Picking a current option is an ordinary declared-key write; the retired item cannot be picked back. Values among the options and an unset value render as before.radioarm of the same file): the same condition adds one disabledRadioGroupItemfor the stored code, first in the group and checked (the group's value is the stored code), labelled with the same key. Chosen over a read-only line beside the group so the group itself says what is stored; the current options stay enabled.multiselectarm): each stored array member outsideoptionsgets one checked checkbox, first in the grid, labelled with the same key. Measured save behaviour: ticking a current option builds the next array from the whole stored array (unchanged from before), so the retired member stays in what is saved, exactly as it did while it was invisible; the server refuses a write of that key while the array holds a value outside the options (invalid_option,settings-service.tsoption check overselect/radio/multiselect), as it already did. So the retired checkbox is deliberately NOT disabled: unticking it removes the member from the array (the way to make the field saveable again), and once removed it leaves the list and cannot be ticked back. A disabled checkbox would have left the field unsaveable with no way out.console.settingsView.selectValueRetiredin all eleven@object-ui/i18npacks (real translations). The Console's settings strings live inui/packages/i18n/src/locales/*, so that is where the key goes (the claim's "Console locale bundles").content/docs/protocol/kernel/config-resolution.mdx, new### Retired keys and optionsunder Secrets): rows stored for a removed key or option are kept, unused, never deleted; an encrypted key'ssys_secretrow stays; Setup shows a non-option value as "no longer available"; removal by hand is deleting the key's row fromsys_platform_setting(global-scope manifest) orsys_setting, plus thesys_secretrow itsvalue_encnames. This is the ruling's documentation half; it touches none of PR fix(settings)!: retire @objectstack/knowledge-ragflow and the Knowledge page's RAGFlow adapter option #37477's files..changeset/37480-settings-retired-option.md(@object-ui/console,@object-ui/i18n, patch).Read first:
ui/apps/console/src/pages/settings/SettingsField.tsx(theretiredcomputation and the extraSelectItem/RadioGroupItem/ retired checkboxes), then the new test.Two-minute check:
cd ui/apps/console && pnpm exec vitest run --root ../.. --project @object-ui/console src/pages/settings/__tests__/SettingsField.retiredOption-37480.test.tsx— expect 10 passed.Tests
ui/apps/console/src/pages/settings/__tests__/SettingsField.retiredOption-37480.test.tsxrenders the realSettingsField: storedragflowoutside the options readsragflow (no longer available)under en and the zh-pack text under zh-CN; controls: a stored value among the options reads its label with no retired item, and no value still reads the placeholder. Radio: storedragflowgives a checked, disabled radio namedragflow (no longer available)whileDifystays enabled and unchecked; control: storeddifychecks its own item, two radios, no retired item. Multiselect: stored['ragflow','dify']shows a checkedragflow (no longer available)checkbox beside a checkedDify; tickingDifyover stored['ragflow']sends['ragflow','dify'](pins the unchanged keep-on-save); unticking the retired one sends['dify']; control: members all among the options draw only the two option checkboxes.retiredcondition forced false on disk, the two select named-state cases fail and the controls pass; with the radio arm's forced false, only the radio named-state case fails (1 failed, 5 passed); with the multiselect arm's forced false, its named-state and untick cases fail (2 failed, 8 passed) while the keep-on-save pin passes, as it pins existing behaviour; each restored withgit checkout HEAD --.Acceptance notes
radioarm is in scope (the card's done-when covers every control that shows a stored option value) and gets the same named state in this PR. Themultiselectarm gets the named state too, untickable for the reason under What changes. Clearing a retired member server-side is not in this PR (ruling 7190223182 keeps stored rows).sys_secretrow from a settings door) is decided as "keep, document" by the ruling above.Verification
Head
ec4e9149bb. Local, targeted (the full farm is CI's):Console settings tests
vitest run --project @object-ui/console src/pages/settings/(lock VERDICT command-exit 0): Test Files 45 passed (45), Tests 498 passed (498).i18n package
pnpm --filter @object-ui/i18n type-check: exit 0.pnpm --filter @object-ui/i18n test: Test Files 111 passed (111), Tests 2028 passed, 13 skipped.Derived gate families
dispatch-gates.mjs --commandsderived set run locally; per-command exit codes are in the report comment on the card.check:skill-examplesclient-SDK surface: NOT MEASURED locally (PREREQUISITE NOT MET, client-react dist has no declarations; this diff adds no TypeScript example). Consoletype-checkis left to CI'sType Check UI(needs every@object-uipackage built).🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96