H4: string and path settings controls, live completion and tooltip settings

- Settings dialog: every string setting gets a text field with in-place
  hints (quotes or spaces around a path, control characters, length);
  keys ending in path/executable also get "Browse…" through the dialog
  plugin's native picker (new desktop IPC pick_file). git.executable
  from M4.1 gets the control without UI changes.
- settings.open {section?, query?} for agents and live checks.
- New keys editor.completion.autoPopup, editor.completion.delayMs and
  editor.hover.delayMs; the assist module reads them live through
  CodeMirror compartments.
- Tests: engine settings test, control/engine key lists, Vitest for the
  controls and the live wiring. Docs: architecture, ui-parity, parity
  Settings row, gaps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-10-25 13:10:19 +01:00
parent b0f8550aeb
commit 197d5b7d27
19 changed files with 1149 additions and 41 deletions

View file

@ -26,7 +26,7 @@ import { setTokenOverride } from "../theme";
export type SettingValue = string | number | boolean | null;
/** Types of settings the dialog has a control for. */
export type SettingType = "enum" | "int" | "bool";
export type SettingType = "enum" | "int" | "bool" | "string";
/** A setting as `settings.list` describes it. */
export interface SettingDef {
@ -98,7 +98,7 @@ function toSettingDef(raw: unknown): SettingDef | null {
typeof labelKey !== "string" ||
typeof descriptionKey !== "string" ||
typeof section !== "string" ||
(type !== "enum" && type !== "int" && type !== "bool")
(type !== "enum" && type !== "int" && type !== "bool" && type !== "string")
) {
return null;
}
@ -377,7 +377,7 @@ export const useSettingsStore = defineStore("settings", () => {
/**
* Records an error found before asking the engine (a number field with
* text that is no whole number).
* text that is no whole number, a string field with a refused text).
*
* @param key - the setting.
* @param message - the error text.