You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The edit half of the config panel: the operator edits the raw fleets.toml in a
CodeMirror TOML editor and saves; the change validates, persists, and hot-reloads
without a restart. Completes declare(edit) → switch → observe → reconcile.
- studio-cp: `read_bindings_text` / `write_bindings_atomic` (temp+rename) /
`save_bindings_text` — validate the text parses BEFORE writing (a bad edit
never lands on disk) and store bytes verbatim, so comments/layout survive with
no format-preserving lib. Unit tests: round-trip, reject-invalid-without-write,
missing-file-is-empty.
- oab-mcp: `fleet_config` now also returns the raw `text`; new write tool
`fleet_config_write { text }` validates + writes + hot-reloads (bindings moved
behind an RwLock; the per-cluster resolved-config memo is cleared on write).
Catalog is 10 tools.
- src-tauri: `fleet_config_write` bridge command.
- console: CodeMirror 6 TOML editor (StreamLanguage + legacy TOML mode) mounted
imperatively in a section separate from the re-rendered panel, so switching
fleets never wipes an open edit. "Edit config" opens it; Save calls the write
tool and surfaces a parse error inline; Cancel discards. 1 new render test.
Slice C of the config panel, stacked on the A+B view/switch slice. Editing is
raw-text (operator chose a TOML editor over a structured form).
Co-authored-by: Orca (ecs-claude) <orca@ecs.local>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments