Skip to main content

Module session_start

Module session_start 

Source
Expand description

ski session-start — the SessionStart path. Two jobs, both best-effort:

  1. Incremental reindex so a session always sees newly added or edited skills (reuses unchanged embeddings; only the delta is re-embedded).
  2. Re-arm on compaction: when the session restarts from a compacted summary (source == "compact"), forget what was loaded so the relevant skills inject again into the fresh context.

Fail open: any error is swallowed; never blocks session start.

Functions§

run
Run for host. host scopes the reindex to that host’s skill library and its own index file (see crate::config::Config::for_host); the session re-arm is host-agnostic (session ids are unique across hosts).