configurables ui#229
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The Tuning section is a new home for behavior knobs that grow over time as
more Configurable structs are migrated. Starts with the same two settings
(max iterations, max build attempts) that were previously hidden inside
the AI Models tab — moved here because they're not about models.
The Backup & Restore section adds:
- Export settings.json — opens a save dialog and writes a filtered copy
of the plugin-store. By default legacy plain-text API keys
(openrouterApiKey, openaiApiKey, vllmApiKey) are stripped. A checkbox
opts into including them for full backups.
- Import settings.json — opens an open dialog, validates the file as a
JSON object, then REPLACES the entire store with the file contents.
A confirmation dialog warns that absent keys (including API keys, if
the export was sanitized) will be cleared.
Both sections are gated by developerMode, inherited from the Developer
tab itself.
Backend:
- commands/settings_io.rs with settings_export(include_secrets: bool)
and settings_import() Tauri commands, both gated on developer mode
- shared_types/settings_io.rs with ExportResult / ImportResult (specta
generates the matching TS types automatically)
Frontend:
- ai-models-tab.tsx: Evolution Limits subsection removed; max iterations
and max build attempts props dropped
- settings-dialog.tsx: matching cleanup of unused form fields and the
form.Field wrappers that fed AiModelsTab
- developer-tab.tsx: two new sections; loads tuning values via direct
tauriAPI.ui.getPrefs() rather than the form, keeping the storybook
story self-contained
- Snapshots updated for ai-models-tab and developer-tab
Closes: nixmac-cqb
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
📋 PR Overview
🔬 Coverage
|

Summary
Test Plan
Docs