Skip to main content

Module cache

Module cache 

Source

Structs§

SessionSnapshot
WorkspaceCache

Enums§

CursorIdentity
Stable cursor identity — survives session appear/disappear and expand-state changes.

Functions§

apply_cache
Pre-populate workspace with cached state before first live sync.
collect_session_names
Collect session names per worktree path — shared by snapshot write and restore fallback.
find_cursor_index
Resolve a saved CursorIdentity back to a flat-tree index.
load_session_snapshot
Load the session snapshot written by save_session_snapshot.
load_session_snapshot_with_meta
migrate_flags_to_tmux
One-time migration: write cached muted session names as tmux user options so they survive future cache writes and are visible to all instances. Idempotent and non-fatal.
save_cache
Persist session names, expand states, cursor position, active_tab, and command history. Returns an error string if the save fails (caller should surface it in TUI).
save_session_snapshot
Persist session names to Application Support — survives tmux crashes because it’s outside the cache and written whenever sessions change.