pub fn record_session_event(
session: Option<&Session>,
cwd: &Path,
event_type: impl AsRef<str>,
payload: Value,
) -> Result<SessionAppendOutcome>Expand description
Append a session event for paths where persistence is part of user-visible behavior.
Use this for CLI-managed user input, diagnostics, explicit session creation/resume flows, and other user-visible append paths where failures should be returned to the caller.