Implements real-time shell command history capture from terminal sessions,
persisting up to 1000 entries with host and session metadata.
Integrates shell history into the UI with lazy-loading, snippet creation from
history, and improves host selection UX by reusing a shared panel component.
Enables users to review, reuse, and organize previously executed commands,
enhancing productivity and traceability across sessions.