Opens a write stream for the provided file path and wires callbacks for lifecycle events.
Closes the active auto-save stream if present.
whether a notification should be sent to the Webview.
Writes a single line to the active auto-save stream and reports failures to the caller.
Coordinates creation, writing, and disposal of the auto-save stream.