add method
Records entry, skipping blank lines and consecutive duplicates, then
persists. Storage failures are swallowed so the interactive session is
never interrupted by a write error.
Implementation
@override
void add(String entry) {
if (_buffer.add(entry)) _persist();
}