Repository navigation
feat(settings): describe every setting as JSON for editors - #211
Merged
Merged
Conversation
- Clients like the VS Code extension had no machine-readable way to list the global settings, so nothing outside a terminal could edit them - SettingsCatalog holds each key's kind, range, choices, default and how to read it; settings show --json lists them, and settings set --json returns the updated setting or the CLI's error as an envelope - The catalog's range and choice checks now run for every key, so what a client shows is what the CLI enforces; this adds the 0-2 temperature and 0-1 topP limits the help text already promised - provider.modelId can no longer be cleared, since an empty model ID never works - settings set with no key now lists the keys and exits 0, as its help always said, instead of failing on a missing argument
This was referenced Nov 9, 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.
Why
Clients like the VS Code extension had no machine-readable way to list fuseraft's global settings. Temperature, the memory and sub-agent models, chat limits, timeouts and the rest could only be changed with
fuseraft settings setin a terminal. This adds what an editor needs; the extension's settings panel builds on it in fuseraft/fuseraft-vscode.Changes
SettingsCatalog: one list of every settable key with its kind (text,bool,integer,number,choice,list), description, default, range, choices, whether""clears it, and how to read it from the config. It replacesSettingsSetCommand's description-only key list.fuseraft settings show --jsonlists every setting as a new Setting wire type.fuseraft settings set <key> <value> --jsonprints the updated setting asitem, or the CLI's error as an error envelope. Nothing is saved on an error.sampling.temperatureand 0–1sampling.topPlimits the help text already promised, and minimums of 1 forsampling.maxOutputTokensandrepl.contextBudget.provider.modelIdcan no longer be cleared, since an empty model ID never works.fuseraft settings setwith no key now lists the keys and exits 0, as its help said. It used to fail with a missing-argument error.settings set's key listing now shows each key's type, range and default, taken from the catalog.Testing
SettingsCatalogTests: every catalog key sets and reads back throughsettings set, every clearable key clears back to unset, defaults lie within their ranges, plus out-of-range, unknown-key, bad-choice and can't-clear cases.SettingsJsonTests: theshowandsetenvelopes, an error envelope that writes nothing, and the API key refusal.settings setreloading the panel.