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
{{ message }}
Repository navigation
mecatui: live-reload operator settings (keymap) without restart #456
mecatui reads the operator-tier keymap: overrides from ~/.config/mecatl/settings.yaml exactly once at startup — applyKeyOverridesToDeps in cmd/mecatui/main.go runs before tea.NewProgram, bakes the result into ui.Deps.KeyOverrides, and ui.New applies it at construction (model.go). There is no re-read path: no fsnotify watch, no /reload palette command, no signal handler. An operator who edits settings.yaml must quit and relaunch mecatui to pick up a keybinding change.
Why it's worth fixing
Keybinding remapping is an iterative, taste-driven activity — an operator trying to find a comfortable home for Agents/Effort (e.g. to free ctrl+a/ctrl+e for line editing, see #455) will want to try a chord, feel it, and adjust. A full restart per iteration is friction that discourages the very configurability the feature offers.
Possible shapes (design TBD)
A /reload palette command that re-reads settings.yaml, re-validates the keymap, and swaps m.keys in place (rebuilding help markings).
An fsnotify watch on the settings file that does the same automatically on save.
Either must handle: an invalid edited file (keep the last-good keymap + surface a loud warning, don't crash or drop bindings), and chords whose action is mid-overlay (e.g. remapping CancelChild while the agents overlay is open).
Scope note
The validator (keymap.Parse/keymap.Validate) and the override application (applyKeyOverrides) already exist and are pure — the work is the reload trigger + safe in-place swap + a warning surface, not new keymap machinery. See #455 for the documentation side of the keymap feature.
Design note from the surface work (#555): the modal/surface interface holds its shared ambient deps (theme/keys/marks/caps) on the surface state, built once at Open, and we deliberately treat them as immutable-after-startup. When live-reload lands, the surface layer will need a 'deps updated' fan-out (a DepsChanged event or a re-derive at Render) so an open modal picks up new theme/keys/caps without losing its view state. Banked as a surface-migration follow-up; see docs/design/surface-migration-plan.md decision 8.
Activity
docs+fix(mecatui): document keymap overrides, live help-overlay bindi…
feat(mecatui): split client keymap settings into ~/.config/mecatui/se…
refactor(mecatui): surface deps-on-state + no-Resize interface (#555 …
jbeda commentedon Aug 19, 2026
Design note from the surface work (#555): the modal/surface interface holds its shared ambient deps (theme/keys/marks/caps) on the surface state, built once at Open, and we deliberately treat them as immutable-after-startup. When live-reload lands, the surface layer will need a 'deps updated' fan-out (a DepsChanged event or a re-derive at Render) so an open modal picks up new theme/keys/caps without losing its view state. Banked as a surface-migration follow-up; see docs/design/surface-migration-plan.md decision 8.
refactor(mecatui): surface deps-on-state + no-Resize interface (#555 …