scrollToPreviousCommand

Scrolls to the nearest previous shell command.

The component uses session-owned OSC 133 command metadata and reveals the command's prompt-start line when present, otherwise its command start line. This method may be called from any thread; component state is updated asynchronously on the EDT.