TerminalCompletionLearningCoordinator
Owns synchronous exact-command learning and optional fixed-path persistence.
One caller-owned worker hydrates the file once, observes last-value enablement, and checkpoints the latest dirty snapshot at a fixed interval. Recording and reset mutate memory synchronously and never wait for disk. Reset bypasses enablement and the checkpoint interval so persisted learning is replaced promptly. Shutdown awaits the final required write.
Constructors
Creates a lifecycle-bound learning owner for one fixed persistence path.
Functions
Stops accepting events and awaits the final dirty write when persistence is enabled.
Stops learning and awaits the worker without loading or saving pending state.
Records accepted or dismissed feedback for one exact suggested command.
Removes all completion learning and schedules immediate replacement of the persisted snapshot.
Enables or disables persistence for the fixed configured path.