Skip to main content

Module active_session

Module active_session 

Source
Expand description

Read/write the active-session pointer file.

~/.vibesurfer/active-session holds one line: the id of the most recently-opened session. The CLI reads it on startup; vs session-open writes it; vs session-close clears it. --session on any command overrides.

Functionsยง

clear
Clear the active session (delete the file). Idempotent.
read
Read the active session id, or None if the file is missing.
write
Write id as the active session.