AGENTS.md@packages/context-mode-settings-plugin/src/client · git:20261013.16b5494 · 2026-10-13 · sha256 ec55cc058f0d0834

AGENTS.md@packages/context-mode-settings-plugin/src/client git:20261013.16b5494A

Immutable. This exact content never changes and is served at /api/v1/blob/ec55cc058f0d0834.

# DOX — packages/context-mode-settings-plugin/src/client

Files in this directory. One row per source file. See change: add-context-mode-settings-plugin.

| File | Purpose |
|------|---------|
| `ContextModeSettings.tsx` | Slot component: thin wrapper with own `<Suspense>` around lazy `ContextModeSettingsForm` (keeps form out of cold index chunk). Suspense fallback `cms-loading` (`--text-secondary`). See change: retro-ux-plugin-settings-forms. |
| `ContextModeSettingsForm.tsx` | Grouped accordion form over `CONTEXT_SETTINGS`: DEFAULT badge, per-field reset, inline validation, new-sessions / exported-env-wins / storage-scope notices, raw JSON. Registers `plugin:context-mode-settings` draft source; commit rejects while invalid. Fields/groups/notices via runtime `NumberField`/`TextField`/`ToggleField`/`SettingsGroup`/`SettingsNotice`; status = `No changes` / warning pill `N unsaved changes`; no `--accent-*` text; roots `cms-root`/`cms-loading`. See change: retro-ux-plugin-settings-forms. |
| `context-api.ts` | `getSettings`/`putSettings` REST client. |
| `index.tsx` | Barrel: `ContextModeSettings` + `catalog`. |