Skip to main content

record_session_event

Function record_session_event 

Source
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.