Skip to main content

evict_zero_turn_completed_store

Function evict_zero_turn_completed_store 

Source
pub fn evict_zero_turn_completed_store(
    workspace: &Path,
    session_id: &str,
) -> Result<bool, SessionStoreError>
Expand description

Delete a 0-turn completed session store immediately (close-path hygiene).

Empty shells (thread.started + thread.completed only) never held work the user can resume; keeping them pollutes .vtcode/sessions/ and hides real sessions. No-op when the store has turns, is still active, is pinned, is live in another process, or the id is not a validated direct child. Returns whether the store was removed.