pub fn clear_session(
fs: &impl Fs,
paths: &StorePaths,
doc_id: &str,
) -> Result<(), SessionError>Expand description
Discard all Tier-1 session state for doc_id (called on workspace close).
Idempotent: a no-op if no session exists. Durable Tier-2 history is unaffected.